mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-10 00:05:27 +00:00
fix(psql): update pg client
This commit is contained in:
+2
-3
@@ -25,9 +25,8 @@ import { type Resource } from "./mod.ts"
|
||||
export function pgClient(
|
||||
db: Resource<"postgresql">
|
||||
) {
|
||||
db.database = db.dbname
|
||||
db.hostname = db.host
|
||||
return new Client(db)
|
||||
const databaseUrl = 'postgresql://' + db.user + ':' + db.password + '@' + db.host + ':' + db.port + '/' + db.dbname + '?sslmode=' + db.sslmode
|
||||
return new Client(databaseUrl)
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user