@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.js
CHANGED
|
@@ -1021,7 +1021,8 @@ var OlapTable = class extends TypedBase {
|
|
|
1021
1021
|
* @private
|
|
1022
1022
|
*/
|
|
1023
1023
|
createConfigHash(clickhouseConfig) {
|
|
1024
|
-
const
|
|
1024
|
+
const effectiveDatabase = this.config.database ?? clickhouseConfig.database;
|
|
1025
|
+
const configString = `${clickhouseConfig.host}:${clickhouseConfig.port}:${clickhouseConfig.username}:${clickhouseConfig.password}:${effectiveDatabase}:${clickhouseConfig.useSSL}`;
|
|
1025
1026
|
return (0, import_node_crypto.createHash)("sha256").update(configString).digest("hex").substring(0, 16);
|
|
1026
1027
|
}
|
|
1027
1028
|
/**
|
|
@@ -1046,10 +1047,11 @@ var OlapTable = class extends TypedBase {
|
|
|
1046
1047
|
} catch (error) {
|
|
1047
1048
|
}
|
|
1048
1049
|
}
|
|
1050
|
+
const effectiveDatabase = this.config.database ?? clickhouseConfig.database;
|
|
1049
1051
|
const client = getClickhouseClient2({
|
|
1050
1052
|
username: clickhouseConfig.username,
|
|
1051
1053
|
password: clickhouseConfig.password,
|
|
1052
|
-
database:
|
|
1054
|
+
database: effectiveDatabase,
|
|
1053
1055
|
useSSL: clickhouseConfig.useSSL ? "true" : "false",
|
|
1054
1056
|
host: clickhouseConfig.host,
|
|
1055
1057
|
port: clickhouseConfig.port
|