@514labs/moose-lib 0.6.271-ci-1-g2b350d57 → 0.6.272-ci-1-gdc968567
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
|
@@ -918,7 +918,8 @@ var OlapTable = class extends TypedBase {
|
|
|
918
918
|
* @private
|
|
919
919
|
*/
|
|
920
920
|
createConfigHash(clickhouseConfig) {
|
|
921
|
-
const
|
|
921
|
+
const effectiveDatabase = this.config.database ?? clickhouseConfig.database;
|
|
922
|
+
const configString = `${clickhouseConfig.host}:${clickhouseConfig.port}:${clickhouseConfig.username}:${clickhouseConfig.password}:${effectiveDatabase}:${clickhouseConfig.useSSL}`;
|
|
922
923
|
return createHash("sha256").update(configString).digest("hex").substring(0, 16);
|
|
923
924
|
}
|
|
924
925
|
/**
|
|
@@ -943,10 +944,11 @@ var OlapTable = class extends TypedBase {
|
|
|
943
944
|
} catch (error) {
|
|
944
945
|
}
|
|
945
946
|
}
|
|
947
|
+
const effectiveDatabase = this.config.database ?? clickhouseConfig.database;
|
|
946
948
|
const client = getClickhouseClient2({
|
|
947
949
|
username: clickhouseConfig.username,
|
|
948
950
|
password: clickhouseConfig.password,
|
|
949
|
-
database:
|
|
951
|
+
database: effectiveDatabase,
|
|
950
952
|
useSSL: clickhouseConfig.useSSL ? "true" : "false",
|
|
951
953
|
host: clickhouseConfig.host,
|
|
952
954
|
port: clickhouseConfig.port
|