@514labs/moose-lib 0.6.271 → 0.6.272
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/dmv2/index.js
CHANGED
|
@@ -850,7 +850,8 @@ var OlapTable = class extends TypedBase {
|
|
|
850
850
|
* @private
|
|
851
851
|
*/
|
|
852
852
|
createConfigHash(clickhouseConfig) {
|
|
853
|
-
const
|
|
853
|
+
const effectiveDatabase = this.config.database ?? clickhouseConfig.database;
|
|
854
|
+
const configString = `${clickhouseConfig.host}:${clickhouseConfig.port}:${clickhouseConfig.username}:${clickhouseConfig.password}:${effectiveDatabase}:${clickhouseConfig.useSSL}`;
|
|
854
855
|
return (0, import_node_crypto2.createHash)("sha256").update(configString).digest("hex").substring(0, 16);
|
|
855
856
|
}
|
|
856
857
|
/**
|
|
@@ -875,10 +876,11 @@ var OlapTable = class extends TypedBase {
|
|
|
875
876
|
} catch (error) {
|
|
876
877
|
}
|
|
877
878
|
}
|
|
879
|
+
const effectiveDatabase = this.config.database ?? clickhouseConfig.database;
|
|
878
880
|
const client = getClickhouseClient2({
|
|
879
881
|
username: clickhouseConfig.username,
|
|
880
882
|
password: clickhouseConfig.password,
|
|
881
|
-
database:
|
|
883
|
+
database: effectiveDatabase,
|
|
882
884
|
useSSL: clickhouseConfig.useSSL ? "true" : "false",
|
|
883
885
|
host: clickhouseConfig.host,
|
|
884
886
|
port: clickhouseConfig.port
|