diff --git a/postgres/conn.go b/postgres/conn.go index 1c24663..c10fe61 100644 --- a/postgres/conn.go +++ b/postgres/conn.go @@ -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