Begin migration to sqlc
This commit is contained in:
@ -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