@514labs/moose-lib 0.6.271 → 0.6.272

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.
@@ -954,7 +954,8 @@ var OlapTable = class extends TypedBase {
954
954
  * @private
955
955
  */
956
956
  createConfigHash(clickhouseConfig) {
957
- const configString = `${clickhouseConfig.host}:${clickhouseConfig.port}:${clickhouseConfig.username}:${clickhouseConfig.password}:${clickhouseConfig.database}:${clickhouseConfig.useSSL}`;
957
+ const effectiveDatabase = this.config.database ?? clickhouseConfig.database;
958
+ const configString = `${clickhouseConfig.host}:${clickhouseConfig.port}:${clickhouseConfig.username}:${clickhouseConfig.password}:${effectiveDatabase}:${clickhouseConfig.useSSL}`;
958
959
  return (0, import_node_crypto2.createHash)("sha256").update(configString).digest("hex").substring(0, 16);
959
960
  }
960
961
  /**
@@ -979,10 +980,11 @@ var OlapTable = class extends TypedBase {
979
980
  } catch (error) {
980
981
  }
981
982
  }
983
+ const effectiveDatabase = this.config.database ?? clickhouseConfig.database;
982
984
  const client = getClickhouseClient2({
983
985
  username: clickhouseConfig.username,
984
986
  password: clickhouseConfig.password,
985
- database: clickhouseConfig.database,
987
+ database: effectiveDatabase,
986
988
  useSSL: clickhouseConfig.useSSL ? "true" : "false",
987
989
  host: clickhouseConfig.host,
988
990
  port: clickhouseConfig.port