@osaas/client-db
Advanced tools
Comparing version 0.5.0 to 0.5.1
@@ -154,4 +154,3 @@ "use strict"; | ||
case 'postgres': | ||
case 'mariadb': | ||
case 'clickhouse': { | ||
case 'mariadb': { | ||
const token = await ctx.getServiceAccessToken(exports.DatabaseTypeToServiceId[type]); | ||
@@ -171,2 +170,8 @@ const ports = await (0, client_core_1.getPortsForInstance)(ctx, exports.DatabaseTypeToServiceId[type], name, token); | ||
} | ||
case 'clickhouse': { | ||
const url = new URL(instance.url); | ||
url.username = opts.username || 'default'; | ||
url.password = opts.password || ''; | ||
return url.toString(); | ||
} | ||
default: | ||
@@ -173,0 +178,0 @@ throw new Error(`Unsupported database type: ${type}`); |
{ | ||
"name": "@osaas/client-db", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"description": "Open Source Cloud Client SDK database library", | ||
@@ -36,3 +36,3 @@ "author": "Eyevinn Open Source Cloud <osc@eyevinn.se>", | ||
}, | ||
"gitHead": "4413b4785d4361bf7e3d82908e9b81683d41eca9" | ||
"gitHead": "f2fd26e785fc80d629cab4916f3fd22e77726888" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
21155
297
0