@voltro/database 0.87.0 → 0.88.0

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.
Files changed (170) hide show
  1. package/CHANGELOG.md +169 -6
  2. package/THIRD-PARTY-NOTICES.md +1 -1
  3. package/dist/actorSnapshot.js +1 -2
  4. package/dist/arrayCodec.js +1 -2
  5. package/dist/branchExecute.js +1 -2
  6. package/dist/branching.js +1 -2
  7. package/dist/bulkInsertLimits.js +16 -12
  8. package/dist/cdcOffsetsTables.js +1 -2
  9. package/dist/changeEvent.js +1 -2
  10. package/dist/changeIdentity.js +1 -2
  11. package/dist/changeListenerCeiling.js +1 -2
  12. package/dist/columnReference.js +1 -2
  13. package/dist/columns.js +1 -2
  14. package/dist/committedChanges.js +1 -2
  15. package/dist/connectionIdentity.js +1 -2
  16. package/dist/coreTables.js +1 -2
  17. package/dist/coreTablesRegistry.js +1 -2
  18. package/dist/dataTransfers.js +1 -2
  19. package/dist/dbCause.js +1 -2
  20. package/dist/dbMetrics.js +1 -2
  21. package/dist/decimalComparison.js +1 -2
  22. package/dist/derivedRowId.js +1 -2
  23. package/dist/dialect.js +1 -2
  24. package/dist/enumRenames.js +1 -2
  25. package/dist/expiresMixin.js +1 -2
  26. package/dist/fieldEncryption.js +1 -2
  27. package/dist/frameworkTables.js +1 -2
  28. package/dist/ginIndex.js +1 -2
  29. package/dist/hybridSearch.js +1 -2
  30. package/dist/idGenerator.js +1 -2
  31. package/dist/identifierLimits.js +1 -2
  32. package/dist/index.d.ts +5 -7
  33. package/dist/index.js +1 -2
  34. package/dist/indexAudit.js +45 -44
  35. package/dist/indexStorage.js +1 -2
  36. package/dist/joinCompiler.js +1 -2
  37. package/dist/jsonEagerCompiler.js +1 -2
  38. package/dist/jsonPatch.js +1 -2
  39. package/dist/jsonPatchAssignments.js +1 -2
  40. package/dist/jsonPath.js +1 -2
  41. package/dist/localFirstMixin.js +1 -2
  42. package/dist/migrate.js +1 -2
  43. package/dist/migration.js +1 -2
  44. package/dist/migrations/appliedAtValue.js +1 -2
  45. package/dist/migrations/applier.js +1 -2
  46. package/dist/migrations/boot.js +2 -3
  47. package/dist/migrations/branchRehearsal.js +1 -2
  48. package/dist/migrations/columnEquivalence.js +1 -2
  49. package/dist/migrations/ddlError.js +1 -2
  50. package/dist/migrations/ddlStatements.js +1 -2
  51. package/dist/migrations/declaredSchema.js +2 -3
  52. package/dist/migrations/deployLedger.js +1 -2
  53. package/dist/migrations/fileBased.js +1 -2
  54. package/dist/migrations/fileContext.js +1 -2
  55. package/dist/migrations/fileDiscovery.js +1 -2
  56. package/dist/migrations/fileSkipProbes.js +1 -2
  57. package/dist/migrations/fingerprint.js +1 -2
  58. package/dist/migrations/fkCycles.js +1 -2
  59. package/dist/migrations/frameworkLiveTables.js +1 -2
  60. package/dist/migrations/idempotentDdl.js +1 -2
  61. package/dist/migrations/indexPredicate.js +1 -2
  62. package/dist/migrations/introspect.js +3 -4
  63. package/dist/migrations/ledgerRows.js +1 -2
  64. package/dist/migrations/lock.js +1 -2
  65. package/dist/migrations/migrationTableExists.js +1 -2
  66. package/dist/migrations/mssqlColumnDependencies.js +1 -2
  67. package/dist/migrations/mysqlEngine.js +1 -2
  68. package/dist/migrations/namespaceCharset.js +1 -2
  69. package/dist/migrations/planner.js +3 -4
  70. package/dist/migrations/postgresEnumCheck.js +1 -2
  71. package/dist/migrations/reactiveTriggerDrift.js +1 -2
  72. package/dist/migrations/reactiveTriggerName.js +1 -2
  73. package/dist/migrations/renameMssqlCheck.js +1 -2
  74. package/dist/migrations/restoreSnapshots.js +1 -2
  75. package/dist/migrations/resumeLedger.js +1 -2
  76. package/dist/migrations/rollingDeploy.js +1 -2
  77. package/dist/migrations/schemaOwner.js +1 -2
  78. package/dist/migrations/schemaOwnerTable.js +1 -2
  79. package/dist/migrations/softDropSnapshot.js +1 -2
  80. package/dist/migrations/sqlLimit.js +1 -2
  81. package/dist/migrations/sqliteCatalogName.js +1 -2
  82. package/dist/migrations/sqliteConstraintIdentity.js +1 -2
  83. package/dist/migrations/sqliteDecimalBoot.js +1 -2
  84. package/dist/migrations/sqliteDecimalPublication.js +1 -2
  85. package/dist/migrations/sqliteDecimalReview.js +1 -2
  86. package/dist/migrations/sqliteDecimalReviewStore.js +1 -2
  87. package/dist/migrations/sqliteDecimalReviewWitness.js +1 -2
  88. package/dist/migrations/sqliteDecimalSource.js +1 -2
  89. package/dist/migrations/sqliteDecimalStage.js +1 -2
  90. package/dist/migrations/sqliteForeignKeys.js +1 -2
  91. package/dist/migrations/sqliteMigrationBatch.js +1 -2
  92. package/dist/migrations/sqliteRetainedSource.js +1 -2
  93. package/dist/migrations/sqliteRowIdentity.js +1 -2
  94. package/dist/migrations/sqliteSchemaEpoch.js +1 -2
  95. package/dist/migrations/sqliteSnapshotGuard.js +1 -2
  96. package/dist/migrations/sqliteTableContents.js +1 -2
  97. package/dist/migrations/sqliteTableCopy.js +1 -2
  98. package/dist/migrations/sqliteTableSchema.js +1 -2
  99. package/dist/migrations/sqliteWitnessProtection.js +1 -2
  100. package/dist/migrations/squash.js +1 -2
  101. package/dist/migrations/storeCharset.js +1 -2
  102. package/dist/migrations/transactionCause.js +1 -2
  103. package/dist/migrations/undeclaredCharset.js +1 -2
  104. package/dist/migrations/uniqueActiveLowering.js +1 -2
  105. package/dist/mixins.js +1 -2
  106. package/dist/mssqlDecimalDistinct.js +1 -2
  107. package/dist/mssqlJsonValueCheck.js +1 -2
  108. package/dist/mssqlTextStorage.js +1 -2
  109. package/dist/namespace.js +1 -2
  110. package/dist/optimisticVersion.js +1 -2
  111. package/dist/pendingAttribution.js +1 -2
  112. package/dist/pluginRef.js +1 -2
  113. package/dist/predicate.js +1 -2
  114. package/dist/predicateCoercion.js +1 -2
  115. package/dist/projectedColumn.js +1 -2
  116. package/dist/queryBuilder.js +1 -2
  117. package/dist/rawSql.js +1 -2
  118. package/dist/relations.js +1 -2
  119. package/dist/relationsRegistry.js +1 -2
  120. package/dist/replaceInProgress.js +1 -2
  121. package/dist/requiredColumns.js +1 -2
  122. package/dist/residency.js +1 -2
  123. package/dist/retention.js +1 -2
  124. package/dist/rowDecoder.js +1 -2
  125. package/dist/rowKey.js +1 -2
  126. package/dist/rowSchema.js +1 -2
  127. package/dist/scopeKey.js +1 -2
  128. package/dist/seed.js +1 -2
  129. package/dist/snowflake.js +1 -2
  130. package/dist/sqlCompiler.js +1 -2
  131. package/dist/sqlError.js +1 -2
  132. package/dist/sqlMutation.js +1 -2
  133. package/dist/sqlPoolCapacity.js +1 -2
  134. package/dist/sqliteDecimal.js +1 -2
  135. package/dist/sqliteDecimalAggregateSql.js +1 -2
  136. package/dist/sqliteDecimalColumnSql.js +1 -2
  137. package/dist/sqliteDecimalConversion.js +1 -2
  138. package/dist/sqliteDecimalCte.js +1 -2
  139. package/dist/sqliteDecimalEncodeSql.js +1 -2
  140. package/dist/sqliteDecimalOutputs.js +1 -2
  141. package/dist/sqliteDecimalPredicate.js +1 -2
  142. package/dist/sqliteDecimalQuery.js +1 -2
  143. package/dist/sqliteDecimalQueryPlan.js +1 -2
  144. package/dist/sqliteDecimalResultSql.js +1 -2
  145. package/dist/sqliteDecimalRowQuery.js +1 -2
  146. package/dist/sqliteDecimalSetQuery.js +1 -2
  147. package/dist/sqliteDecimalSource.js +1 -2
  148. package/dist/sqliteDecimalStorage.js +1 -2
  149. package/dist/sqliteDecimalSubquery.js +1 -2
  150. package/dist/sqliteDecimalWindowQuery.js +1 -2
  151. package/dist/sqliteValueCoercion.js +1 -2
  152. package/dist/stampId.js +1 -2
  153. package/dist/storeErrors.js +1 -2
  154. package/dist/storeRefusal.js +1 -2
  155. package/dist/stream.js +1 -2
  156. package/dist/subjectGraph.js +1 -2
  157. package/dist/table.js +1 -2
  158. package/dist/tableRegistry.js +1 -2
  159. package/dist/tenantSelection.js +1 -2
  160. package/dist/transactionOutcome.js +1 -2
  161. package/dist/transientContention.js +1 -2
  162. package/dist/typeId.js +1 -2
  163. package/dist/typedStore.js +1 -2
  164. package/dist/upsertUpdate.js +1 -2
  165. package/dist/vectorEmbedding.js +1 -2
  166. package/dist/view.js +1 -2
  167. package/dist/wire.js +1 -2
  168. package/dist/writeAttribution.js +1 -2
  169. package/dist/writeRecorder.js +1 -2
  170. package/package.json +3 -3
@@ -1,5 +1,5 @@
1
1
  import { encodeSqliteDecimal as e } from "./sqliteDecimal.js";
2
- //#region src/sqliteDecimalStorage.ts
2
+ // src/sqliteDecimalStorage.ts
3
3
  var t = (e) => e?.type === "decimal" && n(e) !== void 0, n = (t) => {
4
4
  if (t.sqliteDecimalEncoding === void 0) return;
5
5
  if (t.precision === void 0 || t.scale === void 0) throw Error("Encoded SQLite decimal metadata requires precision and scale");
@@ -25,5 +25,4 @@ var t = (e) => e?.type === "decimal" && n(e) !== void 0, n = (t) => {
25
25
  if (typeof t != "string") throw TypeError("SQLite decimal defaults require exact strings");
26
26
  return e(t, n);
27
27
  };
28
- //#endregion
29
28
  export { o as encodeSqliteDecimalDefault, t as isSqliteDecimalEncodedColumn, i as parseSqliteDecimalStorageType, a as sqliteDecimalStorageCheck, n as sqliteDecimalStorageShape, r as sqliteDecimalStorageType };
@@ -1,5 +1,5 @@
1
1
  import { sqliteDecimalOutputs as e } from "./sqliteDecimalOutputs.js";
2
- //#region src/sqliteDecimalSubquery.ts
2
+ // src/sqliteDecimalSubquery.ts
3
3
  var t = (t, n, r, i) => {
4
4
  let a = r.compile(t.subquery);
5
5
  if (t.op === "exists") return n`EXISTS (${a})`;
@@ -15,5 +15,4 @@ var t = (t, n, r, i) => {
15
15
  }, d = u(s.value, s.scale ?? 0), f = n`SELECT ${u(n`${n(c.name)}`, c.decimal?.scale ?? 0)} FROM (${a})`;
16
16
  return t.op === "subquery-in" ? n`${d} IN (${f})` : n`${d} NOT IN (${f})`;
17
17
  };
18
- //#endregion
19
18
  export { t as compileSqliteDecimalSubquery };
@@ -5,7 +5,7 @@ import { compileSqliteDecimalDecodedRows as r } from "./sqliteDecimalColumnSql.j
5
5
  import { compileSqliteDecimalResult as i } from "./sqliteDecimalResultSql.js";
6
6
  import { compileSqliteDecimalSource as a } from "./sqliteDecimalSource.js";
7
7
  import { compileSqliteDecimalAvg as o, compileSqliteDecimalSum as s } from "./sqliteDecimalAggregateSql.js";
8
- //#region src/sqliteDecimalWindowQuery.ts
8
+ // src/sqliteDecimalWindowQuery.ts
9
9
  var c = (c, l, u, d, f, p) => {
10
10
  let m = t(c), h = c.aggregations ?? [], g = {
11
11
  "window-row-number": "ROW_NUMBER",
@@ -192,5 +192,4 @@ var c = (c, l, u, d, f, p) => {
192
192
  let B = c.take === void 0 ? c.skip === void 0 ? "" : " LIMIT -1" : ` LIMIT ${c.take}`, V = c.skip === void 0 ? "" : ` OFFSET ${c.skip}`;
193
193
  return l.unsafe(`${T ? "" : `WITH ${O.join(",")} `}SELECT ${c.distinct ? "DISTINCT " : ""}${R.join(",")} FROM ${L.source} AS window_output${z}${B}${V}`, w);
194
194
  };
195
- //#endregion
196
195
  export { c as compileSqliteDecimalWindowQuery };
@@ -1,4 +1,3 @@
1
- //#region src/sqliteValueCoercion.ts
1
+ // src/sqliteValueCoercion.ts
2
2
  var e = (t) => t == null ? t : t instanceof Date ? t.toISOString() : typeof t == "boolean" ? +!!t : Array.isArray(t) ? t.map((t) => e(t)) : t;
3
- //#endregion
4
3
  export { e as coerceValueForSqlite };
package/dist/stampId.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { generateId as e } from "./idGenerator.js";
2
2
  import { getTable as t } from "./tableRegistry.js";
3
- //#region src/stampId.ts
3
+ // src/stampId.ts
4
4
  var n = "id", r = (r, i) => {
5
5
  let a = t(r);
6
6
  if (a === void 0) return i;
@@ -17,5 +17,4 @@ var n = "id", r = (r, i) => {
17
17
  [n]: s
18
18
  };
19
19
  }, i = (e, t) => t.map((t) => r(e, t));
20
- //#endregion
21
20
  export { r as stampGeneratedId, i as stampGeneratedIds };
@@ -1,9 +1,8 @@
1
- //#region src/storeErrors.ts
1
+ // src/storeErrors.ts
2
2
  var e = (e, t, n) => ({
3
3
  _tag: "PrimaryKeyConflictError",
4
4
  table: e,
5
5
  key: t,
6
6
  cause: n
7
7
  }), t = (e) => typeof e == "object" && !!e && e._tag === "PrimaryKeyConflictError";
8
- //#endregion
9
8
  export { t as isPrimaryKeyConflictError, e as primaryKeyConflictError };
@@ -1,5 +1,5 @@
1
1
  import { authoredError as e, causeBranches as t } from "./dbCause.js";
2
- //#region src/storeRefusal.ts
2
+ // src/storeRefusal.ts
3
3
  var n = Symbol.for("@voltro/database/storeRefusal"), r = (t) => {
4
4
  let r = e(t.detail);
5
5
  return Object.defineProperty(r, n, {
@@ -16,5 +16,4 @@ var n = Symbol.for("@voltro/database/storeRefusal"), r = (t) => {
16
16
  }
17
17
  }
18
18
  };
19
- //#endregion
20
19
  export { r as refuseWrite, i as storeRefusalOf };
package/dist/stream.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { and as e, gt as t } from "./predicate.js";
2
2
  import { Data as n, Effect as r, Option as i, Stream as a } from "effect";
3
- //#region src/stream.ts
3
+ // src/stream.ts
4
4
  var o = class extends n.TaggedError("TableStreamError") {}, s = 1e3, c = (n, r, a, o) => {
5
5
  let s = i.match(o, {
6
6
  onNone: () => n.where,
@@ -32,5 +32,4 @@ var o = class extends n.TaggedError("TableStreamError") {}, s = 1e3, c = (n, r,
32
32
  return (t.retry ? s.pipe(r.retry(t.retry)) : s).pipe(r.map((e) => [e, e.length === l && e.length > 0 ? i.some(i.some(e[e.length - 1][n])) : i.none()]));
33
33
  });
34
34
  };
35
- //#endregion
36
35
  export { o as TableStreamError, l as streamTable };
@@ -1,7 +1,7 @@
1
1
  import { allRegisteredTables as e } from "./tableRegistry.js";
2
2
  import { allRegisteredRelations as t } from "./relationsRegistry.js";
3
3
  import { types as n } from "node:util";
4
- //#region src/subjectGraph.ts
4
+ // src/subjectGraph.ts
5
5
  var r = 4, i = (e) => Object.keys(e.fields), a = (e, t) => Object.prototype.hasOwnProperty.call(e.fields, t), o = (e, t) => {
6
6
  let n = [];
7
7
  for (let [r, i] of Object.entries(e.fields)) i.type === "reference" && i.references?.()?.tableName === t && n.push(r);
@@ -171,5 +171,4 @@ var r = 4, i = (e) => Object.keys(e.fields), a = (e, t) => Object.prototype.hasO
171
171
  let n = e.limitations.filter((e) => e.kind === "depth-truncated"), r = e.limitations.filter((e) => e.kind === "unreachable"), i = e.limitations.filter((e) => e.kind === "excluded");
172
172
  return t.push(""), t.push(" WHAT THIS CANNOT SEE — a DSAR is only as complete as this list is short:"), n.length > 0 && t.push(` depth-truncated (${n.length}): ${n.map((e) => e.table).join(", ")}`), i.length > 0 && t.push(` excluded (${i.length}): ${[...new Set(i.map((e) => e.table))].join(", ")}`), t.push(r.length === 0 ? " unreachable: none — every registered table is linked to the subject." : ` unreachable (${r.length}): ${r.map((e) => e.table).join(", ")}`), t.push(" Always outside this graph: object storage / uploaded files, external processors,"), t.push(" log and metric sinks, backups, and any subject id embedded in JSON or free text."), t.join("\n");
173
173
  };
174
- //#endregion
175
174
  export { r as DEFAULT_SUBJECT_GRAPH_DEPTH, m as deriveSubjectGraph, h as formatSubjectGraph };
package/dist/table.js CHANGED
@@ -5,7 +5,7 @@ import { resolveIdScheme as o } from "./idGenerator.js";
5
5
  import { resolveMixinGraph as s } from "./mixins.js";
6
6
  import { resolveGinOpclass as c } from "./ginIndex.js";
7
7
  import { Schema as l, Struct as u } from "effect";
8
- //#region src/table.ts
8
+ // src/table.ts
9
9
  var d = (e, ...t) => {
10
10
  if (t.length === 0) throw Error(`jsonIndex("${e}"): at least one path segment is required`);
11
11
  let n = (r) => ({
@@ -390,5 +390,4 @@ var d = (e, ...t) => {
390
390
  appliedRules: []
391
391
  }), s;
392
392
  };
393
- //#endregion
394
393
  export { p as AUTO_FILLED_COLUMNS, d as jsonIndex, x as table, f as vectorDistanceToOpclass };
@@ -1,4 +1,4 @@
1
- //#region src/tableRegistry.ts
1
+ // src/tableRegistry.ts
2
2
  var e = Symbol.for("@voltro/database/tableRegistry"), t = globalThis, n = t[e] ?? (t[e] = /* @__PURE__ */ new Map()), r = (e) => {
3
3
  let t = n.get(e.tableName);
4
4
  if (t === void 0) n.set(e.tableName, e);
@@ -12,5 +12,4 @@ var e = Symbol.for("@voltro/database/tableRegistry"), t = globalThis, n = t[e] ?
12
12
  }, s = () => [...n.values()], c = (e) => n.delete(e), l = () => {
13
13
  n.clear();
14
14
  }, u = (e) => n.get(e)?.isReactive !== !1;
15
- //#endregion
16
15
  export { s as allRegisteredTables, l as clearTableRegistry, i as ensureTableRegistered, a as getTable, u as isTableReactive, r as registerTable, o as requireTable, c as unregisterTable };
@@ -1,7 +1,7 @@
1
1
  import { eq as e } from "./predicate.js";
2
2
  import { _voltroTenantSelectionsTable as t } from "./frameworkTables.js";
3
3
  import { createHash as n } from "node:crypto";
4
- //#region src/tenantSelection.ts
4
+ // src/tenantSelection.ts
5
5
  var r = t.tableName, i = (e) => n("sha256").update(`${e.type}\u0000${e.id}`, "utf8").digest("hex"), a = async (t, n) => {
6
6
  let [a] = await t.query({
7
7
  table: r,
@@ -23,5 +23,4 @@ var r = t.tableName, i = (e) => n("sha256").update(`${e.type}\u0000${e.id}`, "ut
23
23
  }, s = async (e, t) => {
24
24
  await e.delete(r, i(t));
25
25
  };
26
- //#endregion
27
26
  export { r as TENANT_SELECTIONS_TABLE, s as deleteTenantSelection, a as readTenantSelection, i as tenantSelectionId, o as writeTenantSelection };
@@ -3,7 +3,7 @@ import { currentWriteAttribution as t, runWithWriteAttribution as n } from "./wr
3
3
  import { observeDbOp as r } from "./dbMetrics.js";
4
4
  import { Cause as i, Effect as a, Exit as o, Option as s, Schedule as c } from "effect";
5
5
  import { SqlClient as l } from "effect/sql";
6
- //#region src/transactionOutcome.ts
6
+ // src/transactionOutcome.ts
7
7
  var u = (e) => {
8
8
  if (o.isSuccess(e)) return e.value;
9
9
  let t = i.squash(e.cause);
@@ -96,5 +96,4 @@ var u = (e) => {
96
96
  });
97
97
  return a.view.commitEvents(), a.result;
98
98
  };
99
- //#endregion
100
99
  export { m as SHARED_TRANSACTION_SERVICE, v as TransactionAbortedError, x as isTransactionAbortedError, y as makeTransactionAbortTracker, g as onTransaction, _ as runRetryingTransaction, b as runSavepoint, C as runStoreTransaction, u as settleTransactionExit, p as transactionRetrySchedule };
@@ -1,5 +1,5 @@
1
1
  import { causeBranches as e } from "./dbCause.js";
2
- //#region src/transientContention.ts
2
+ // src/transientContention.ts
3
3
  var t = /* @__PURE__ */ new Set([
4
4
  "1213",
5
5
  "ER_LOCK_DEADLOCK",
@@ -32,5 +32,4 @@ var t = /* @__PURE__ */ new Set([
32
32
  }
33
33
  return !1;
34
34
  };
35
- //#endregion
36
35
  export { r as MSSQL_TRANSIENT_NUMBERS, t as MYSQL_TRANSIENT_CODES, n as POSTGRES_TRANSIENT_STATES, i as SQLITE_TRANSIENT_CODES, a as TURSO_TRANSIENT_MESSAGE, c as isTransientContention };
package/dist/typeId.js CHANGED
@@ -1,4 +1,4 @@
1
- //#region src/typeId.ts
1
+ // src/typeId.ts
2
2
  var e = /^[a-z][a-z0-9_]*$/, t = 0, n = 0, r = /* @__PURE__ */ new Uint8Array(4096), i = r.length, a = (e) => {
3
3
  i + e > r.length && (globalThis.crypto.getRandomValues(r), i = 0);
4
4
  let t = r.slice(i, i + e);
@@ -47,5 +47,4 @@ var e = /^[a-z][a-z0-9_]*$/, t = 0, n = 0, r = /* @__PURE__ */ new Uint8Array(40
47
47
  if (t.length > 63) throw Error(`typeid prefix '${t}' is longer than 63 characters`);
48
48
  return `${t}_${s(o())}`;
49
49
  };
50
- //#endregion
51
50
  export { s as encodeTypeIdSuffix, c as typeId, o as uuidV7Bytes };
@@ -1,5 +1,5 @@
1
1
  import { authoredError as e } from "./dbCause.js";
2
- //#region src/typedStore.ts
2
+ // src/typedStore.ts
3
3
  var t = (e, t, n) => e.insert(t.tableName, n), n = (e, t, n, r) => e.insertMany(t.tableName, n, r), r = (e, t, n, r) => e.upsert(t.tableName, n, {
4
4
  conflictColumns: r.conflictColumns,
5
5
  ...r.update === void 0 ? {} : { update: r.update },
@@ -12,5 +12,4 @@ var t = (e, t, n) => e.insert(t.tableName, n), n = (e, t, n, r) => e.insertMany(
12
12
  ...i.updateValues === void 0 ? {} : { updateValues: i.updateValues }
13
13
  });
14
14
  }, a = async (e, t, n, r) => e.insertIgnoreWithOutcome(t.tableName, n, { conflictColumns: r.conflictColumns }), o = (e, t, n, r) => e.updateMany(t.tableName, n, { where: r.where });
15
- //#endregion
16
15
  export { a as insertIgnoreRowOutcome, n as insertManyRows, t as insertRow, o as updateManyRow, r as upsertRow, i as upsertRowOutcome };
@@ -1,5 +1,5 @@
1
1
  import { authoredError as e } from "./dbCause.js";
2
- //#region src/upsertUpdate.ts
2
+ // src/upsertUpdate.ts
3
3
  var t = (t) => Object.fromEntries(Object.entries(t.updateValues ?? {}).filter(([n, r]) => {
4
4
  if (r === void 0) return !1;
5
5
  if (n === "id" || t.conflictColumns.includes(n)) throw e(`upsert: updateValues cannot rewrite row identity column '${n}'`);
@@ -16,5 +16,4 @@ var t = (t) => Object.fromEntries(Object.entries(t.updateValues ?? {}).filter(([
16
16
  ...i
17
17
  };
18
18
  };
19
- //#endregion
20
19
  export { n as upsertUpdatePatch, t as upsertUpdateValues };
@@ -1,6 +1,6 @@
1
1
  import { vector as e } from "./columns.js";
2
2
  import { defineMixin as t } from "./mixins.js";
3
- //#region src/vectorEmbedding.ts
3
+ // src/vectorEmbedding.ts
4
4
  var n = async (e, t) => {
5
5
  let n = e.as ?? "embedding", r = t.row[e.from];
6
6
  if (typeof r != "string" || r.length === 0) return {};
@@ -27,5 +27,4 @@ var n = async (e, t) => {
27
27
  }
28
28
  });
29
29
  };
30
- //#endregion
31
30
  export { n as computeEmbedding, r as vectorEmbedding };
package/dist/view.js CHANGED
@@ -2,7 +2,7 @@ import { materializeFields as e } from "./columns.js";
2
2
  import { validateColumnName as t, validateTableName as n } from "./identifierLimits.js";
3
3
  import { quoteIdent as r } from "./dialect.js";
4
4
  import { queryFor as i } from "./queryBuilder.js";
5
- //#region src/view.ts
5
+ // src/view.ts
6
6
  var a = (e) => e.isView === !0, o = (r, i, a) => {
7
7
  if (n(r), a.trim().length === 0) throw Error(`view('${r}', …): the SELECT body is empty — a view must define a query.`);
8
8
  let o = e(i);
@@ -35,5 +35,4 @@ var a = (e) => e.isView === !0, o = (r, i, a) => {
35
35
  case "turso": return `DROP VIEW IF EXISTS ${i};\nCREATE VIEW ${i} AS ${a};`;
36
36
  }
37
37
  };
38
- //#endregion
39
38
  export { a as isView, s as queryForView, o as view, c as viewSql };
package/dist/wire.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import { VersionConflict as e } from "./optimisticVersion.js";
2
2
  import { Schema as t } from "effect";
3
- //#region src/wire.ts
3
+ // src/wire.ts
4
4
  var n = t.DateFromMillis.annotate({ description: "A point in time: a Date in the handler, epoch milliseconds on the wire." }), r = t.NullOr(n);
5
- //#endregion
6
5
  export { e as VersionConflict, n as timestampMs, r as timestampMsOrNull };
@@ -1,5 +1,5 @@
1
1
  import { AsyncLocalStorage as e } from "node:async_hooks";
2
- //#region src/writeAttribution.ts
2
+ // src/writeAttribution.ts
3
3
  var t = new e(), n = (e, n) => t.run(e, n), r = () => t.getStore(), i = (e) => {
4
4
  let n = e ?? t.getStore();
5
5
  return n === void 0 ? {} : {
@@ -12,5 +12,4 @@ var t = new e(), n = (e, n) => t.run(e, n), r = () => t.getStore(), i = (e) => {
12
12
  let n = t.getStore();
13
13
  return n === void 0 ? e(void 0) : t.run(n, () => e(n));
14
14
  };
15
- //#endregion
16
15
  export { i as attributionFields, r as currentWriteAttribution, n as runWithWriteAttribution, a as withCapturedAttribution };
@@ -2,7 +2,7 @@ import { describeDriverError as e } from "./dbCause.js";
2
2
  import { isTableReactive as t } from "./tableRegistry.js";
3
3
  import { Effect as n } from "effect";
4
4
  import { AsyncLocalStorage as r } from "node:async_hooks";
5
- //#region src/writeRecorder.ts
5
+ // src/writeRecorder.ts
6
6
  var i = /* @__PURE__ */ new Map(), a = (e, t) => {
7
7
  i.set(e, {
8
8
  recorder: t.recorder,
@@ -34,5 +34,4 @@ var i = /* @__PURE__ */ new Map(), a = (e, t) => {
34
34
  }
35
35
  }
36
36
  };
37
- //#endregion
38
37
  export { s as clearWriteRecorders, f as recordsTable, a as registerWriteRecorder, m as runWriteRecorders, l as suspendWriteRecorders, u as suspendWriteRecordersEffect, o as unregisterWriteRecorder, p as writeImagesObserved, d as writeRecordersSuspended };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voltro/database",
3
- "version": "0.87.0",
3
+ "version": "0.88.0",
4
4
  "description": "Browser-safe schema DSL, query builder, and cross-dialect migration planner for Voltro — one schema, every SQL backend.",
5
5
  "keywords": [
6
6
  "voltro",
@@ -43,11 +43,11 @@
43
43
  "node": ">=24.0.0"
44
44
  },
45
45
  "dependencies": {
46
- "@voltro/logger": "0.87.0",
46
+ "@voltro/logger": "0.88.0",
47
47
  "ulid": "^3.0.2"
48
48
  },
49
49
  "peerDependencies": {
50
- "effect": "4.0.1"
50
+ "effect": "4.1.0"
51
51
  },
52
52
  "publishConfig": {
53
53
  "access": "public"