fix: add databaseUrlFromResource to deno
This commit is contained in:
@@ -123,3 +123,8 @@ async function _transformLeaf(v: any): Promise<any> {
|
||||
return v
|
||||
}
|
||||
}
|
||||
|
||||
export async function databaseUrlFromResource(path: string): Promise<string> {
|
||||
const resource = await getResource(path)
|
||||
return `postgresql://${resource.user}:${resource.password}@${resource.host}:${resource.port}/${resource.database}?sslmode=${resource.sslmode}`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user