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