@514labs/moose-lib 0.6.239-ci-3-g6e595e05 → 0.6.239-ci-3-ga812e148

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.
@@ -588,6 +588,9 @@ function createMaterializedView(options) {
588
588
  AS ${options.select}`.trim();
589
589
  }
590
590
 
591
+ // src/dmv2/internal.ts
592
+ import process2 from "process";
593
+
591
594
  // src/index.ts
592
595
  init_commons();
593
596
 
@@ -630,6 +633,7 @@ var DEFAULT_CSV_CONFIG = {
630
633
 
631
634
  // src/dmv2/internal.ts
632
635
  init_commons();
636
+ var isClientOnlyMode = process2.env.MOOSE_CLIENT_ONLY === "true";
633
637
  var moose_internal = {
634
638
  tables: /* @__PURE__ */ new Map(),
635
639
  streams: /* @__PURE__ */ new Map(),
@@ -793,7 +797,7 @@ var OlapTable = class extends TypedBase {
793
797
  this.name = name;
794
798
  const tables = getMooseInternal().tables;
795
799
  const registryKey = this.config.version ? `${name}_${this.config.version}` : name;
796
- if (tables.has(registryKey)) {
800
+ if (!isClientOnlyMode && tables.has(registryKey)) {
797
801
  throw new Error(
798
802
  `OlapTable with name ${name} and version ${config?.version ?? "unversioned"} already exists`
799
803
  );