@514labs/moose-lib 0.6.271 → 0.6.272-ci-32-g1ea9e11d
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browserCompatible.js +4 -2
- package/dist/browserCompatible.js.map +1 -1
- package/dist/browserCompatible.mjs +4 -2
- package/dist/browserCompatible.mjs.map +1 -1
- package/dist/dmv2/index.js +4 -2
- package/dist/dmv2/index.js.map +1 -1
- package/dist/dmv2/index.mjs +4 -2
- package/dist/dmv2/index.mjs.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -2
- package/dist/index.mjs.map +1 -1
- package/dist/moose-runner.js.map +1 -1
- package/dist/moose-runner.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -917,7 +917,8 @@ var OlapTable = class extends TypedBase {
|
|
|
917
917
|
* @private
|
|
918
918
|
*/
|
|
919
919
|
createConfigHash(clickhouseConfig) {
|
|
920
|
-
const
|
|
920
|
+
const effectiveDatabase = this.config.database ?? clickhouseConfig.database;
|
|
921
|
+
const configString = `${clickhouseConfig.host}:${clickhouseConfig.port}:${clickhouseConfig.username}:${clickhouseConfig.password}:${effectiveDatabase}:${clickhouseConfig.useSSL}`;
|
|
921
922
|
return createHash("sha256").update(configString).digest("hex").substring(0, 16);
|
|
922
923
|
}
|
|
923
924
|
/**
|
|
@@ -942,10 +943,11 @@ var OlapTable = class extends TypedBase {
|
|
|
942
943
|
} catch (error) {
|
|
943
944
|
}
|
|
944
945
|
}
|
|
946
|
+
const effectiveDatabase = this.config.database ?? clickhouseConfig.database;
|
|
945
947
|
const client = getClickhouseClient2({
|
|
946
948
|
username: clickhouseConfig.username,
|
|
947
949
|
password: clickhouseConfig.password,
|
|
948
|
-
database:
|
|
950
|
+
database: effectiveDatabase,
|
|
949
951
|
useSSL: clickhouseConfig.useSSL ? "true" : "false",
|
|
950
952
|
host: clickhouseConfig.host,
|
|
951
953
|
port: clickhouseConfig.port
|