Begin migration to sqlc
This commit is contained in:
1 parent
f019c47d21
commit
cf1bc70103
17 files changed
+427
-72
No files matched your search
@@ -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")
|
||||
|
||||
Reference in new issue
Block a user