@514labs/moose-lib 0.6.270 → 0.6.271-ci-2-g0eebe1cc

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.
@@ -891,7 +891,8 @@ var OlapTable = class extends TypedBase {
891
891
  * @private
892
892
  */
893
893
  createConfigHash(clickhouseConfig) {
894
- const configString = `${clickhouseConfig.host}:${clickhouseConfig.port}:${clickhouseConfig.username}:${clickhouseConfig.password}:${clickhouseConfig.database}:${clickhouseConfig.useSSL}`;
894
+ const effectiveDatabase = this.config.database ?? clickhouseConfig.database;
895
+ const configString = `${clickhouseConfig.host}:${clickhouseConfig.port}:${clickhouseConfig.username}:${clickhouseConfig.password}:${effectiveDatabase}:${clickhouseConfig.useSSL}`;
895
896
  return createHash2("sha256").update(configString).digest("hex").substring(0, 16);
896
897
  }
897
898
  /**
@@ -916,10 +917,11 @@ var OlapTable = class extends TypedBase {
916
917
  } catch (error) {
917
918
  }
918
919
  }
920
+ const effectiveDatabase = this.config.database ?? clickhouseConfig.database;
919
921
  const client = getClickhouseClient2({
920
922
  username: clickhouseConfig.username,
921
923
  password: clickhouseConfig.password,
922
- database: clickhouseConfig.database,
924
+ database: effectiveDatabase,
923
925
  useSSL: clickhouseConfig.useSSL ? "true" : "false",
924
926
  host: clickhouseConfig.host,
925
927
  port: clickhouseConfig.port