Use postgres schema instead of pgx

This commit is contained in:
Jan Bader 2021-11-08 22:29:35 +00:00
parent f40a05f92d
commit bda3d32cfc

View File

@ -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