@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
|
@@ -954,7 +954,8 @@ var OlapTable = class extends TypedBase {
|
|
|
954
954
|
* @private
|
|
955
955
|
*/
|
|
956
956
|
createConfigHash(clickhouseConfig) {
|
|
957
|
-
const
|
|
957
|
+
const effectiveDatabase = this.config.database ?? clickhouseConfig.database;
|
|
958
|
+
const configString = `${clickhouseConfig.host}:${clickhouseConfig.port}:${clickhouseConfig.username}:${clickhouseConfig.password}:${effectiveDatabase}:${clickhouseConfig.useSSL}`;
|
|
958
959
|
return (0, import_node_crypto2.createHash)("sha256").update(configString).digest("hex").substring(0, 16);
|
|
959
960
|
}
|
|
960
961
|
/**
|
|
@@ -979,10 +980,11 @@ var OlapTable = class extends TypedBase {
|
|
|
979
980
|
} catch (error) {
|
|
980
981
|
}
|
|
981
982
|
}
|
|
983
|
+
const effectiveDatabase = this.config.database ?? clickhouseConfig.database;
|
|
982
984
|
const client = getClickhouseClient2({
|
|
983
985
|
username: clickhouseConfig.username,
|
|
984
986
|
password: clickhouseConfig.password,
|
|
985
|
-
database:
|
|
987
|
+
database: effectiveDatabase,
|
|
986
988
|
useSSL: clickhouseConfig.useSSL ? "true" : "false",
|
|
987
989
|
host: clickhouseConfig.host,
|
|
988
990
|
port: clickhouseConfig.port
|