@514labs/moose-lib 0.6.271 → 0.6.272-ci-32-g1ea9e11d

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