@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.
package/dist/index.mjs CHANGED
@@ -918,7 +918,8 @@ var OlapTable = class extends TypedBase {
918
918
  * @private
919
919
  */
920
920
  createConfigHash(clickhouseConfig) {
921
- const configString = `${clickhouseConfig.host}:${clickhouseConfig.port}:${clickhouseConfig.username}:${clickhouseConfig.password}:${clickhouseConfig.database}:${clickhouseConfig.useSSL}`;
921
+ const effectiveDatabase = this.config.database ?? clickhouseConfig.database;
922
+ const configString = `${clickhouseConfig.host}:${clickhouseConfig.port}:${clickhouseConfig.username}:${clickhouseConfig.password}:${effectiveDatabase}:${clickhouseConfig.useSSL}`;
922
923
  return createHash("sha256").update(configString).digest("hex").substring(0, 16);
923
924
  }
924
925
  /**
@@ -943,10 +944,11 @@ var OlapTable = class extends TypedBase {
943
944
  } catch (error) {
944
945
  }
945
946
  }
947
+ const effectiveDatabase = this.config.database ?? clickhouseConfig.database;
946
948
  const client = getClickhouseClient2({
947
949
  username: clickhouseConfig.username,
948
950
  password: clickhouseConfig.password,
949
- database: clickhouseConfig.database,
951
+ database: effectiveDatabase,
950
952
  useSSL: clickhouseConfig.useSSL ? "true" : "false",
951
953
  host: clickhouseConfig.host,
952
954
  port: clickhouseConfig.port