@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.
@@ -851,7 +851,8 @@ var OlapTable = class extends TypedBase {
851
851
  * @private
852
852
  */
853
853
  createConfigHash(clickhouseConfig) {
854
- const configString = `${clickhouseConfig.host}:${clickhouseConfig.port}:${clickhouseConfig.username}:${clickhouseConfig.password}:${clickhouseConfig.database}:${clickhouseConfig.useSSL}`;
854
+ const effectiveDatabase = this.config.database ?? clickhouseConfig.database;
855
+ const configString = `${clickhouseConfig.host}:${clickhouseConfig.port}:${clickhouseConfig.username}:${clickhouseConfig.password}:${effectiveDatabase}:${clickhouseConfig.useSSL}`;
855
856
  return (0, import_node_crypto2.createHash)("sha256").update(configString).digest("hex").substring(0, 16);
856
857
  }
857
858
  /**
@@ -876,10 +877,11 @@ var OlapTable = class extends TypedBase {
876
877
  } catch (error) {
877
878
  }
878
879
  }
880
+ const effectiveDatabase = this.config.database ?? clickhouseConfig.database;
879
881
  const client = getClickhouseClient2({
880
882
  username: clickhouseConfig.username,
881
883
  password: clickhouseConfig.password,
882
- database: clickhouseConfig.database,
884
+ database: effectiveDatabase,
883
885
  useSSL: clickhouseConfig.useSSL ? "true" : "false",
884
886
  host: clickhouseConfig.host,
885
887
  port: clickhouseConfig.port