Use postgres schema instead of pgx
This commit is contained in:
parent
f40a05f92d
commit
bda3d32cfc
@ -14,7 +14,7 @@ var migrations embed.FS
|
||||
|
||||
// Connect to a database
|
||||
func Connect(server string, user string, password string, database string) (*Queries, error) {
|
||||
connString := fmt.Sprintf("pgx://%s:%s@%s/%s", user, password, server, database)
|
||||
connString := fmt.Sprintf("postgres://%s:%s@%s/%s", user, password, server, database)
|
||||
conn, err := sql.Open("pgx", connString)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
Loading…
x
Reference in New Issue
Block a user