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