mirror of
https://github.com/muety/wakapi.git
synced 2023-08-10 21:12:56 +03:00
fix: postgres connection (resolve #70)
This commit is contained in:
parent
8efc3854ab
commit
1224024913
@ -121,8 +121,7 @@ func (c *dbConfig) GetDialector() gorm.Dialector {
|
|||||||
})
|
})
|
||||||
case "postgres":
|
case "postgres":
|
||||||
return postgres.New(postgres.Config{
|
return postgres.New(postgres.Config{
|
||||||
DriverName: c.Dialect,
|
DSN: postgresConnectionString(c),
|
||||||
DSN: mysqlConnectionString(c),
|
|
||||||
})
|
})
|
||||||
case "sqlite3":
|
case "sqlite3":
|
||||||
return sqlite.Open(sqliteConnectionString(c))
|
return sqlite.Open(sqliteConnectionString(c))
|
||||||
|
Loading…
Reference in New Issue
Block a user