@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.
@@ -797,7 +797,8 @@ var OlapTable = class extends TypedBase {
797
797
  * @private
798
798
  */
799
799
  createConfigHash(clickhouseConfig) {
800
- const configString = `${clickhouseConfig.host}:${clickhouseConfig.port}:${clickhouseConfig.username}:${clickhouseConfig.password}:${clickhouseConfig.database}:${clickhouseConfig.useSSL}`;
800
+ const effectiveDatabase = this.config.database ?? clickhouseConfig.database;
801
+ const configString = `${clickhouseConfig.host}:${clickhouseConfig.port}:${clickhouseConfig.username}:${clickhouseConfig.password}:${effectiveDatabase}:${clickhouseConfig.useSSL}`;
801
802
  return createHash2("sha256").update(configString).digest("hex").substring(0, 16);
802
803
  }
803
804
  /**
@@ -822,10 +823,11 @@ var OlapTable = class extends TypedBase {
822
823
  } catch (error) {
823
824
  }
824
825
  }
826
+ const effectiveDatabase = this.config.database ?? clickhouseConfig.database;
825
827
  const client = getClickhouseClient2({
826
828
  username: clickhouseConfig.username,
827
829
  password: clickhouseConfig.password,
828
- database: clickhouseConfig.database,
830
+ database: effectiveDatabase,
829
831
  useSSL: clickhouseConfig.useSSL ? "true" : "false",
830
832
  host: clickhouseConfig.host,
831
833
  port: clickhouseConfig.port