small improvements
This commit is contained in:
parent
bb32802324
commit
5f2d6f00bc
10 changed files with 117 additions and 178 deletions
|
|
@ -4,13 +4,11 @@ import (
|
|||
"database/sql"
|
||||
"log"
|
||||
|
||||
"git.bronku.xyz/bronku/cake-order-tracker/models"
|
||||
_ "github.com/mattn/go-sqlite3"
|
||||
)
|
||||
|
||||
type Store struct {
|
||||
db *sql.DB
|
||||
cakes []models.Cake
|
||||
db *sql.DB
|
||||
}
|
||||
|
||||
func OpenStore(filename string) *Store {
|
||||
|
|
@ -23,11 +21,6 @@ func OpenStore(filename string) *Store {
|
|||
}
|
||||
|
||||
out.loadMigrations()
|
||||
out.cakes, err = out.loadCakes()
|
||||
log.Println(out.cakes)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
return &out
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue