@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/index.js CHANGED
@@ -1022,7 +1022,8 @@ var OlapTable = class extends TypedBase {
1022
1022
  * @private
1023
1023
  */
1024
1024
  createConfigHash(clickhouseConfig) {
1025
- const configString = `${clickhouseConfig.host}:${clickhouseConfig.port}:${clickhouseConfig.username}:${clickhouseConfig.password}:${clickhouseConfig.database}:${clickhouseConfig.useSSL}`;
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: clickhouseConfig.database,
1055
+ database: effectiveDatabase,
1054
1056
  useSSL: clickhouseConfig.useSSL ? "true" : "false",
1055
1057
  host: clickhouseConfig.host,
1056
1058
  port: clickhouseConfig.port