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