Begin migration to sqlc

This commit is contained in:
jacob1123 committed 2021-11-08 21:32:30 +00:00
1 parent f019c47d21
commit cf1bc70103
17 files changed
+427 -72

No files matched your search

+6 -1
View File
@@ -16,7 +16,12 @@ func main() {
}
bv := &bcrypt.Verifier{}
db := postgres.Connect(cfg.DatabaseHost, cfg.DatabaseUser, cfg.DatabasePassword, cfg.DatabaseName)
db, err := postgres.Connect(cfg.DatabaseHost, cfg.DatabaseUser, cfg.DatabasePassword, cfg.DatabaseName)
if err != nil {
panic("Failed connecting to DB")
}
id, err := ulid.NewGenerator()
if err != nil {
panic("Failed creating ID-Generator")