qubu 0.4.2 → 0.5.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 (61) hide show
  1. package/dist/{canonical-BXUguqfo.mjs → canonical-DMvR9yBe.mjs} +4 -4
  2. package/dist/codegen.d.mts +1 -1
  3. package/dist/codegen.mjs +7 -4
  4. package/dist/{column-hqKr7-1I.mjs → column-DmazTL67.mjs} +15 -2
  5. package/dist/{complete-WYyVozgK.mjs → complete-DP7pliuY.mjs} +6 -6
  6. package/dist/{complete-types-IjEn5VPN.d.mts → complete-types-CY0KbzNw.d.mts} +1 -1
  7. package/dist/core.d.mts +1 -1
  8. package/dist/core.mjs +3 -3
  9. package/dist/diff.d.mts +201 -1
  10. package/dist/diff.mjs +8 -8
  11. package/dist/{index-1DpA3mUh.d.mts → index-C-480HmV.d.mts} +12 -12
  12. package/dist/index.d.mts +2 -2
  13. package/dist/index.mjs +226 -44
  14. package/dist/introspection.d.mts +2 -2
  15. package/dist/introspection.mjs +24 -13
  16. package/dist/mysql.d.mts +2 -2
  17. package/dist/{on-conflict-hfPW0KmQ.mjs → on-conflict-jPsl9l0K.mjs} +6 -3
  18. package/dist/postgres.d.mts +2 -2
  19. package/dist/postgres.mjs +3 -3
  20. package/dist/{registry-BRMLYwDp.mjs → registry-BGqa05et.mjs} +2 -2
  21. package/dist/{relational-BZ3WDPzC.mjs → relational-x3BDVX9e.mjs} +2 -2
  22. package/dist/schema.d.mts +2 -2
  23. package/dist/schema.mjs +5 -5
  24. package/dist/{snapshot-C-W65HEd.mjs → snapshot-BSraiLtH.mjs} +2 -2
  25. package/dist/snapshot.d.mts +4 -4
  26. package/dist/snapshot.mjs +585 -5
  27. package/dist/{source-BcS2AsIg.mjs → source-C4Vmu5bb.mjs} +1 -1
  28. package/dist/{sqlite-Cg0nwYEH.mjs → sqlite-CsIUtZ2Q.mjs} +6 -6
  29. package/dist/sqlite.d.mts +30 -3
  30. package/dist/sqlite.mjs +28 -2
  31. package/dist/{table-Bp5irMSj.mjs → table-DLQ7YWth.mjs} +2 -2
  32. package/dist/{types-BK1COGZe.d.mts → types-C0VkiwpR.d.mts} +146 -41
  33. package/dist/{types-JSZHpUEj.d.mts → types-CTCqtFlS.d.mts} +1 -1
  34. package/dist/{types-JM3FcAnX.mjs → types-CTENnDh9.mjs} +2 -2
  35. package/dist/{value-Bi71Agyf.mjs → value-BEEj_Ayd.mjs} +1 -1
  36. package/dist/vite/ambient.d.ts +6 -0
  37. package/docs/config.json +1 -0
  38. package/docs/dialects-and-execution.md +47 -0
  39. package/docs/guides/drizzle.md +2 -1
  40. package/docs/index.md +6 -2
  41. package/docs/migrations/adapters.md +70 -0
  42. package/docs/migrations/artifacts-and-policy.md +123 -0
  43. package/docs/migrations/index.md +46 -0
  44. package/docs/migrations/lotta-adoption.md +50 -0
  45. package/docs/migrations/operations.md +133 -0
  46. package/docs/migrations/recovery.md +121 -0
  47. package/docs/reference/introspection-support.md +1 -1
  48. package/docs/reference/supported-surface.md +59 -44
  49. package/docs/schema/catalog-model.md +1 -1
  50. package/docs/schema/columns-and-writes.md +14 -0
  51. package/docs/schema/ddl-emission.md +15 -10
  52. package/docs/schema/introspection.md +4 -3
  53. package/docs/schema/migration-plans.md +6 -6
  54. package/docs/schema/snapshots.md +2 -2
  55. package/package.json +5 -14
  56. package/dist/ddl.d.mts +0 -118
  57. package/dist/ddl.mjs +0 -1119
  58. package/dist/index-CPvfEheG.d.mts +0 -202
  59. package/dist/migration.d.mts +0 -214
  60. package/dist/migration.mjs +0 -1160
  61. package/dist/mysql-B_cYzzX2.mjs +0 -585
@@ -943,10 +943,10 @@ function encodeCanonicalSnapshot(snapshot) {
943
943
  return canonicalJson(snapshot);
944
944
  }
945
945
  /**
946
- * Compute a small deterministic content digest for cache keys and diagnostics. It is deliberately
947
- * not an entity identity, signature, or migration lineage.
946
+ * Compute a small deterministic content fingerprint for cache keys and diagnostics. It is
947
+ * deliberately not an entity identity, signature, or migration lineage.
948
948
  */
949
- function schemaSnapshotDigest(snapshot) {
949
+ function schemaSnapshotFingerprint(snapshot) {
950
950
  const source = encodeCanonicalSnapshot(assertSchemaSnapshot(snapshot));
951
951
  let hash = 14695981039346656037n;
952
952
  const prime = 1099511628211n;
@@ -969,4 +969,4 @@ function isBigInt(value) {
969
969
  return Object.keys(value).length === 1 && "$bigint" in value && typeof value.$bigint === "string";
970
970
  }
971
971
  //#endregion
972
- export { toSnapshotJsonValue as a, canonicalizeSchemaSnapshot as c, schemaSnapshotDialectVersion as d, schemaSnapshotFormat as f, schemaSnapshotDigest as i, decodeSchemaSnapshot as l, schemaSnapshotVersion as m, canonicalJson as n, SnapshotValidationError as o, schemaSnapshotNamingPolicyVersion as p, encodeCanonicalSnapshot as r, assertSchemaSnapshot as s, SnapshotCanonicalError as t, neutralSnapshotDialect as u };
972
+ export { toSnapshotJsonValue as a, canonicalizeSchemaSnapshot as c, schemaSnapshotDialectVersion as d, schemaSnapshotFormat as f, schemaSnapshotFingerprint as i, decodeSchemaSnapshot as l, schemaSnapshotVersion as m, canonicalJson as n, SnapshotValidationError as o, schemaSnapshotNamingPolicyVersion as p, encodeCanonicalSnapshot as r, assertSchemaSnapshot as s, SnapshotCanonicalError as t, neutralSnapshotDialect as u };
@@ -1,4 +1,4 @@
1
- import { St as IntrospectionDiagnostic, dt as IntrospectionResult, i as CatalogClassificationConfidence, p as CatalogDialect, z as CatalogPortableStorageType } from "./types-JSZHpUEj.mjs";
1
+ import { St as IntrospectionDiagnostic, dt as IntrospectionResult, i as CatalogClassificationConfidence, p as CatalogDialect, z as CatalogPortableStorageType } from "./types-CTCqtFlS.mjs";
2
2
  //#region src/codegen/types.d.ts
3
3
  /** TypeScript value types that the controlled source printer can emit. */
4
4
  type CodegenApplicationType = "unknown" | "string" | "number" | "boolean" | "bigint" | "Date" | "Uint8Array";
package/dist/codegen.mjs CHANGED
@@ -1,10 +1,13 @@
1
- import { l as decodeSchemaSnapshot } from "./canonical-BXUguqfo.mjs";
2
- import { t as mapCatalogToSnapshot } from "./snapshot-C-W65HEd.mjs";
1
+ import { l as decodeSchemaSnapshot } from "./canonical-DMvR9yBe.mjs";
2
+ import { t as mapCatalogToSnapshot } from "./snapshot-BSraiLtH.mjs";
3
3
  //#region src/codegen/source.ts
4
4
  const header = `/* Generated by Qubu. Do not edit this machine-owned file. */
5
5
  import * as _qubu from 'qubu'
6
6
  `;
7
- const catalogColumnHelper = `type _CatalogColumnOptions = Omit<_qubu.ColumnOptions, 'storage'> & {
7
+ const catalogColumnHelper = `type _CatalogColumnOptions<TOutput, TInsert> = Omit<
8
+ _qubu.ColumnOptions<TOutput, TInsert>,
9
+ 'storage'
10
+ > & {
8
11
  readonly storage?: never
9
12
  }
10
13
 
@@ -17,7 +20,7 @@ const _catalogColumn = <
17
20
  <
18
21
  const TDialect extends string,
19
22
  const TDeclaration extends string,
20
- const TOptions extends _CatalogColumnOptions,
23
+ const TOptions extends _CatalogColumnOptions<TOutput, TInsert>,
21
24
  >(
22
25
  dialect: TDialect,
23
26
  declaration: TDeclaration,
@@ -366,11 +366,14 @@ function identityColumn(generation, options) {
366
366
  /** Normalize complete and legacy column behavior into immutable metadata. */
367
367
  function resolveColumnBehavior(options) {
368
368
  const hasDefaultFlag = options.hasDefault === true;
369
+ const defaultFn = options.defaultFn;
369
370
  const generatedFlag = options.generated === true;
370
371
  const defaultDescriptor = options.default === void 0 ? void 0 : normalizeDefault(options.default);
371
372
  const generatedDescriptor = options.generatedColumn;
372
373
  const identityDescriptor = options.identity;
373
374
  const onUpdateExpression = options.onUpdate;
375
+ if (defaultFn !== void 0 && typeof defaultFn !== "function") throw new ColumnBehaviorError("invalid-runtime-default", "Column defaultFn must be a function", "defaultFn");
376
+ if (defaultFn !== void 0 && (generatedFlag || generatedDescriptor !== void 0 || identityDescriptor !== void 0)) throw new ColumnBehaviorError("runtime-default-generated-conflict", "A runtime default cannot be combined with generated-column or identity metadata", "defaultFn");
374
377
  if (onUpdateExpression !== void 0 && !isSchemaExpression(onUpdateExpression)) throw new ColumnBehaviorError("invalid-on-update", "Column onUpdate metadata must carry the deterministic schema-expression brand", "onUpdate");
375
378
  if (defaultDescriptor !== void 0) {
376
379
  assertDefaultDescriptor(defaultDescriptor);
@@ -394,8 +397,10 @@ function resolveColumnBehavior(options) {
394
397
  const normalizedIdentity = identityDescriptor === void 0 ? void 0 : freezeIdentityDescriptor(identityDescriptor);
395
398
  return Object.freeze({
396
399
  hasDefault: hasDefaultFlag || normalizedDefault !== void 0,
400
+ hasRuntimeDefault: defaultFn !== void 0,
397
401
  generated: generatedFlag || normalizedGenerated !== void 0 || normalizedIdentity !== void 0,
398
402
  default: normalizedDefault ?? (hasDefaultFlag ? externalDefault() : void 0),
403
+ defaultFn,
399
404
  generatedColumn: normalizedGenerated ?? (generatedFlag && normalizedIdentity === void 0 ? externalGeneratedColumn() : void 0),
400
405
  identity: normalizedIdentity,
401
406
  onUpdate: onUpdateExpression
@@ -522,7 +527,11 @@ function column(options) {
522
527
  ...resolveColumnBehavior(options ?? {}),
523
528
  sqlName: options?.sqlName,
524
529
  storage: options?.storage ? Object.freeze({ ...options.storage }) : void 0,
525
- ...options?.decode === void 0 ? {} : { resultDecoder: options.decode },
530
+ ...options?.decode === void 0 && options?.codec === void 0 ? {} : { resultDecoder: options?.decode ?? options?.codec?.fromDriver },
531
+ ...options?.codec === void 0 ? {} : {
532
+ parameterEncoder: options.codec.toDriver,
533
+ columnCodec: Object.freeze({ ...options.codec })
534
+ },
526
535
  $type: narrowColumnType,
527
536
  castTarget: options?.castType ? Object.freeze({
528
537
  kind: "named-cast",
@@ -535,6 +544,10 @@ function columnResultValue(definition) {
535
544
  const storage = definition.storage;
536
545
  return resultValue(storage?.kind === "portable" && (storage.type === "boolean" || storage.type === "date" || storage.type === "timestamp" || storage.type === "json") ? storage.type : void 0, definition.resultDecoder);
537
546
  }
547
+ /** Apply a live column codec while preserving SQL NULL unchanged. */
548
+ function encodeColumnParameter(definition, value) {
549
+ return value === null || definition.parameterEncoder === void 0 ? value : definition.parameterEncoder(value);
550
+ }
538
551
  function nativeColumn(storageOrDialect, typeOrOptions, maybeOptions) {
539
552
  const storage = typeof storageOrDialect === "string" ? nativeStorage(storageOrDialect, typeOrOptions) : storageOrDialect;
540
553
  return column({
@@ -617,4 +630,4 @@ function expressionFragment(expression) {
617
630
  return fragment((context) => context.render(expression));
618
631
  }
619
632
  //#endregion
620
- export { dateResultDecoder as $, assertSchemaDialectSupport as A, isSchemaExpression as B, canonicalLiteral as C, identityColumn as D, generatedColumn as E, materializeSchemaObjectIdentity as F, withDialectCapability as G, makeSchemaExpression as H, materializeSchemaObjectRecord as I, parenthesize as J, fragment as K, resolveSqlNames as L, freezeSchemaMetadata as M, generatedSchemaObjectName as N, resolveColumnBehavior as O, isValidSchemaObjectName as P, createResultShape as Q, snakeCaseIdentifier as R, ColumnBehaviorError as S, externalGeneratedColumn as T, markExpressionCategory as U, makeExpression as V, markSchemaExpression as W, ResultDecodingError as X, sequence as Y, booleanResultDecoder as Z, numeric as _, qualifiedIdentifier as a, timestampResultDecoder as at, timestamp as b, boolean as c, date as d, decodeResultRow as et, integer as f, nullable as g, nativeStorage as h, identifier as i, resultValueOf as it, dialectMismatchDiagnostic as j, SchemaMetadataValidationError as k, column as l, nativeColumn as m, expressionFragment as n, resultShapeValue as nt, bigint as o, json as p, isFragment as q, isColumnReference as r, resultValue as rt, binary as s, createColumnReference as t, jsonTextResultDecoder as tt, columnResultValue as u, portableStorage as v, externalDefault as w, uuid as x, text as y, isExpression as z };
633
+ export { createResultShape as $, SchemaMetadataValidationError as A, isExpression as B, ColumnBehaviorError as C, generatedColumn as D, externalGeneratedColumn as E, isValidSchemaObjectName as F, markSchemaExpression as G, makeExpression as H, materializeSchemaObjectIdentity as I, isFragment as J, withDialectCapability as K, materializeSchemaObjectRecord as L, dialectMismatchDiagnostic as M, freezeSchemaMetadata as N, identityColumn as O, generatedSchemaObjectName as P, booleanResultDecoder as Q, resolveSqlNames as R, uuid as S, externalDefault as T, makeSchemaExpression as U, isSchemaExpression as V, markExpressionCategory as W, sequence as X, parenthesize as Y, ResultDecodingError as Z, nullable as _, qualifiedIdentifier as a, resultValueOf as at, text as b, boolean as c, date as d, dateResultDecoder as et, encodeColumnParameter as f, nativeStorage as g, nativeColumn as h, identifier as i, resultValue as it, assertSchemaDialectSupport as j, resolveColumnBehavior as k, column as l, json as m, expressionFragment as n, jsonTextResultDecoder as nt, bigint as o, timestampResultDecoder as ot, integer as p, fragment as q, isColumnReference as r, resultShapeValue as rt, binary as s, createColumnReference as t, decodeResultRow as tt, columnResultValue as u, numeric as v, canonicalLiteral as w, timestamp as x, portableStorage as y, snakeCaseIdentifier as z };
@@ -1,4 +1,4 @@
1
- import { n as canonicalJson } from "./canonical-BXUguqfo.mjs";
1
+ import { n as canonicalJson } from "./canonical-DMvR9yBe.mjs";
2
2
  //#region src/snapshot/complete-types.ts
3
3
  /** The stable envelope tag shared by Snapshot v1 and the complete model. */
4
4
  const completeSchemaSnapshotFormat = "qubu-schema";
@@ -68,8 +68,8 @@ function encodeCompleteSchemaSnapshot(snapshot) {
68
68
  const canonical = assertCompleteSchemaSnapshot(snapshot);
69
69
  return canonicalJson(canonical);
70
70
  }
71
- /** Compute the deterministic content digest for a complete Snapshot v2. */
72
- function completeSchemaSnapshotDigest(snapshot) {
71
+ /** Compute the deterministic content fingerprint for a complete Snapshot v2. */
72
+ function completeSchemaSnapshotFingerprint(snapshot) {
73
73
  const source = encodeCompleteSchemaSnapshot(snapshot);
74
74
  let hash = 14695981039346656037n;
75
75
  const prime = 1099511628211n;
@@ -89,11 +89,11 @@ const decodeSchemaSnapshotV2 = decodeCompleteSchemaSnapshot;
89
89
  const assertSchemaSnapshotV2 = assertCompleteSchemaSnapshot;
90
90
  const encodeSchemaSnapshotV2 = encodeCompleteSchemaSnapshot;
91
91
  const canonicalizeSchemaSnapshotV2 = canonicalizeCompleteSchemaSnapshot;
92
- const schemaSnapshotV2Digest = completeSchemaSnapshotDigest;
92
+ const schemaSnapshotV2Fingerprint = completeSchemaSnapshotFingerprint;
93
93
  const decodeCompleteSnapshot = decodeCompleteSchemaSnapshot;
94
94
  const assertCompleteSnapshot = assertCompleteSchemaSnapshot;
95
95
  const encodeCompleteSnapshot = encodeCompleteSchemaSnapshot;
96
- const digestCompleteSchemaSnapshot = completeSchemaSnapshotDigest;
96
+ const fingerprintCompleteSchemaSnapshot = completeSchemaSnapshotFingerprint;
97
97
  function validateCompleteSnapshot(value, diagnostics) {
98
98
  requireKeys(value, [
99
99
  "format",
@@ -1785,4 +1785,4 @@ function deepFreeze(value, seen = /* @__PURE__ */ new WeakSet()) {
1785
1785
  return Object.freeze(value);
1786
1786
  }
1787
1787
  //#endregion
1788
- export { completeSchemaSnapshotVersion as _, canonicalizeCompleteSchemaSnapshot as a, schemaSnapshotVersion2 as b, decodeCompleteSchemaSnapshot as c, digestCompleteSchemaSnapshot as d, encodeCompleteSchemaSnapshot as f, completeSchemaSnapshotFormat as g, schemaSnapshotV2Digest as h, assertSchemaSnapshotV2 as i, decodeCompleteSnapshot as l, encodeSchemaSnapshotV2 as m, assertCompleteSchemaSnapshot as n, canonicalizeSchemaSnapshotV2 as o, encodeCompleteSnapshot as p, assertCompleteSnapshot as r, completeSchemaSnapshotDigest as s, CompleteSnapshotValidationError as t, decodeSchemaSnapshotV2 as u, schemaSnapshotCompleteVersion as v, schemaSnapshotV2Version as y };
1788
+ export { completeSchemaSnapshotVersion as _, canonicalizeCompleteSchemaSnapshot as a, schemaSnapshotVersion2 as b, decodeCompleteSchemaSnapshot as c, encodeCompleteSchemaSnapshot as d, encodeCompleteSnapshot as f, completeSchemaSnapshotFormat as g, schemaSnapshotV2Fingerprint as h, assertSchemaSnapshotV2 as i, decodeCompleteSnapshot as l, fingerprintCompleteSchemaSnapshot as m, assertCompleteSchemaSnapshot as n, canonicalizeSchemaSnapshotV2 as o, encodeSchemaSnapshotV2 as p, assertCompleteSnapshot as r, completeSchemaSnapshotFingerprint as s, CompleteSnapshotValidationError as t, decodeSchemaSnapshotV2 as u, schemaSnapshotCompleteVersion as v, schemaSnapshotV2Version as y };
@@ -1,4 +1,4 @@
1
- import { A as SnapshotStorage, D as SnapshotLiteral, O as SnapshotNamingPolicy, T as SnapshotJsonValue, b as SnapshotGeneratedColumn, d as SnapshotDefault, f as SnapshotDiagnostic, g as SnapshotExpression, h as SnapshotDialectExtension, i as SchemaSnapshotInput, m as SnapshotDialect } from "./types-BK1COGZe.mjs";
1
+ import { A as SnapshotStorage, D as SnapshotLiteral, O as SnapshotNamingPolicy, T as SnapshotJsonValue, b as SnapshotGeneratedColumn, d as SnapshotDefault, f as SnapshotDiagnostic, g as SnapshotExpression, h as SnapshotDialectExtension, i as SchemaSnapshotInput, m as SnapshotDialect } from "./types-C0VkiwpR.mjs";
2
2
  //#region src/snapshot/complete-types.d.ts
3
3
  /** The stable envelope tag shared by Snapshot v1 and the complete model. */
4
4
  declare const completeSchemaSnapshotFormat: "qubu-schema";
package/dist/core.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as PaginationKind, $c as RenderCapabilityValidation, $l as InheritedMetadata, Au as SqlBoolean, B as CastTarget, Bl as CapabilityMetadataOf, Bu as SqlSemanticType, Ca as SelectClause, Cl as markExpressionCategory, Cu as fragment, Du as AnySqlType, Eu as sequence, Fu as SqlInteger, G as DialectJson, Ga as typedCall, Gl as Fragment, Gu as SqlUnknown, H as DialectCapability, Hl as CardinalityOf, Hu as SqlTextLike, Il as AggregateDependenciesOf, Iu as SqlJson, J as DialectRowLocking, Jl as GroupingKeysOf, K as DialectOptions, Kl as FragmentMeta, Ku as SqlUuid, Ll as AggregateMeta, Lu as SqlNumericLike, Mu as SqlDecimal, No as typedCast, Nu as SqlEqualityComparable, Ou as SqlBigInt, Pu as SqlEqualityCompatible, Q as NamedCastTarget, Ql as HasWindow, Rl as AnyFragment, Ru as SqlOrderCompatible, Sa as ClausePlacement, Sl as makeExpression, Su as WindowMeta, Tu as parenthesize, U as DialectCastTypes, Ul as DependenciesOf, Uu as SqlTimestamp, V as Dialect, Vl as CardinalityMeta, Vu as SqlText, W as DialectExplain, Wl as ExpressionMeta, Wu as SqlTypeSatisfies, X as ExplainRenderOptions, Xl as HasAggregate, Y as ExplainFormat, Yl as GroupingMeta, Z as JsonScalarKind, Zl as HasSubquery, _u as RequiresSourceMeta, at as SchemaLiteralRenderer, au as OutputOf, bu as SubqueryMeta, ct as resolveCastTarget, cu as ProvidesSourceMeta, du as RenderFunction, el as RenderOptions, et as PaginationPart, eu as InheritedMetadataOf, fl as Expression, fu as RequiresCapabilityMeta, gu as RequiresOuterSourceMeta, hu as RequiresOuterOf, it as RowLockWaitPolicy, iu as NullableSourcesOf, ju as SqlDate, ko as typedValue, ku as SqlBinary, ll as expressionFragment, lu as QueryCardinality, mu as RequiresOuterMetadataOf, nl as render, nt as PortableCastType, nu as NullabilityOf, ot as assertDialectCapability, ou as ProvidesOuterOf, pu as RequiresOf, q as DialectPagination, ql as GroupingDependenciesOf, rt as RowLockMode, ru as NullableSourceMeta, st as createDialect, su as ProvidesOuterSourceMeta, tl as RenderedQuery, tt as PortableCastTarget, tu as MetadataOf, uu as RenderContext, vu as ResultMeta, wl as withDialectCapability, wu as isFragment, xl as isExpression, xu as VisibleDependenciesOf, yu as SqlTypeOf, zl as CapabilitiesOf, zu as SqlOrderable } from "./types-BK1COGZe.mjs";
1
+ import { $ as PaginationKind, $l as AggregateMeta, $u as SqlNumericLike, Au as RequiresOuterMetadataOf, B as CastTarget, Bl as withDialectCapability, Bu as isFragment, Ca as SelectClause, Cu as ProvidesOuterSourceMeta, Du as RenderFunction, Eu as RenderContext, Fu as SqlTypeOf, G as DialectJson, Ga as typedCall, Gu as SqlBinary, H as DialectCapability, Hu as sequence, Iu as SubqueryMeta, J as DialectRowLocking, Ju as SqlDecimal, K as DialectOptions, Ku as SqlBoolean, Ll as isExpression, Lu as VisibleDependenciesOf, Mu as RequiresOuterSourceMeta, No as typedCast, Nu as RequiresSourceMeta, Ol as Expression, Ou as RequiresCapabilityMeta, Pu as ResultMeta, Q as NamedCastTarget, Ql as AggregateDependenciesOf, Qu as SqlJson, Rl as makeExpression, Ru as WindowMeta, Sa as ClausePlacement, Su as ProvidesOuterOf, Tl as expressionFragment, Tu as QueryCardinality, U as DialectCastTypes, Uu as AnySqlType, V as Dialect, Vu as parenthesize, W as DialectExplain, Wu as SqlBigInt, X as ExplainRenderOptions, Xu as SqlEqualityCompatible, Y as ExplainFormat, Yu as SqlEqualityComparable, Z as JsonScalarKind, Zu as SqlInteger, _l as RenderedQuery, _u as MetadataOf, ad as SqlTimestamp, at as SchemaLiteralRenderer, au as DependenciesOf, bu as NullableSourcesOf, cd as SqlUuid, ct as resolveCastTarget, cu as FragmentMeta, du as GroupingMeta, ed as SqlOrderCompatible, et as PaginationPart, eu as AnyFragment, fu as HasAggregate, gl as RenderOptions, gu as InheritedMetadataOf, hl as RenderCapabilityValidation, hu as InheritedMetadata, id as SqlTextLike, it as RowLockWaitPolicy, iu as CardinalityOf, ju as RequiresOuterOf, ko as typedValue, ku as RequiresOf, lu as GroupingDependenciesOf, mu as HasWindow, nd as SqlSemanticType, nt as PortableCastType, nu as CapabilityMetadataOf, od as SqlTypeSatisfies, ot as assertDialectCapability, ou as ExpressionMeta, pu as HasSubquery, q as DialectPagination, qu as SqlDate, rd as SqlText, rt as RowLockMode, ru as CardinalityMeta, sd as SqlUnknown, st as createDialect, su as Fragment, td as SqlOrderable, tt as PortableCastTarget, tu as CapabilitiesOf, uu as GroupingKeysOf, vl as render, vu as NullabilityOf, wu as ProvidesSourceMeta, xu as OutputOf, yu as NullableSourceMeta, zl as markExpressionCategory, zu as fragment } from "./types-C0VkiwpR.mjs";
2
2
  //#region src/core/primitives/compose.d.ts
3
3
  declare function commaSeparated<const TParts extends readonly AnyFragment[]>(parts: TParts): Fragment<InheritedMetadata<TParts[number]>>;
4
4
  declare function keyword<TPart extends AnyFragment | undefined>(value: string, part?: TPart): Fragment<TPart extends AnyFragment ? InheritedMetadata<TPart> : never>;
package/dist/core.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { a as assertDialectCapability, o as createDialect, s as resolveCastTarget } from "./json-Db7XRD91.mjs";
2
- import { a as routineName, c as render, i as typedCall, s as typedCast, t as createClause } from "./types-JM3FcAnX.mjs";
3
- import { G as withDialectCapability, J as parenthesize, K as fragment, U as markExpressionCategory, V as makeExpression, Y as sequence, a as qualifiedIdentifier, i as identifier, n as expressionFragment, q as isFragment, z as isExpression } from "./column-hqKr7-1I.mjs";
4
- import { a as parameter, r as typedValue } from "./value-Bi71Agyf.mjs";
2
+ import { a as routineName, c as render, i as typedCall, s as typedCast, t as createClause } from "./types-CTENnDh9.mjs";
3
+ import { B as isExpression, H as makeExpression, J as isFragment, K as withDialectCapability, W as markExpressionCategory, X as sequence, Y as parenthesize, a as qualifiedIdentifier, i as identifier, n as expressionFragment, q as fragment } from "./column-DmazTL67.mjs";
4
+ import { a as parameter, r as typedValue } from "./value-BEEj_Ayd.mjs";
5
5
  //#region src/core/primitives/compose.ts
6
6
  function commaSeparated(parts) {
7
7
  return sequence(parts, ", ");
package/dist/diff.d.mts CHANGED
@@ -1,2 +1,202 @@
1
- import { C as SnapshotDiffPropertyChange, D as SnapshotRenameTarget, E as SnapshotRenameSuggestion, S as SnapshotDiffPath, T as SnapshotRenameHintResult, _ as SnapshotDiffObjectKind, a as diffSnapshots, b as SnapshotDiffOperationType, c as validateRenameHints, d as SnapshotDiffDecodeResult, f as SnapshotDiffDiagnostic, g as SnapshotDiffObject, h as SnapshotDiffInput, i as decodeSnapshotRenameHints, l as validateSnapshotRenameHints, m as SnapshotDiffEvidence, n as decodeRenameHints, o as encodeRenameHints, p as SnapshotDiffDiagnosticCode, r as decodeSnapshotForDiff, s as encodeSnapshotRenameHints, t as compareSnapshots, u as SnapshotDiff, v as SnapshotDiffObjectReference, w as SnapshotRenameHint, x as SnapshotDiffOptions, y as SnapshotDiffOperation } from "./index-CPvfEheG.mjs";
1
+ import { T as SnapshotJsonValue, m as SnapshotDialect, n as SchemaSnapshot } from "./types-C0VkiwpR.mjs";
2
+ import { S as CompleteSnapshotObjectKind, t as CompleteSchemaSnapshot } from "./complete-types-CY0KbzNw.mjs";
3
+ //#region src/diff/types.d.ts
4
+ /** Object families understood by the snapshot diff engine. */
5
+ type SnapshotDiffObjectKind = CompleteSnapshotObjectKind;
6
+ /** A path into a canonical snapshot or one of its object records. */
7
+ type SnapshotDiffPath = readonly (string | number)[];
8
+ /** A stable reference to an object in a rename hint. */
9
+ interface SnapshotRenameTarget {
10
+ /** Stable logical ID, when the source or target snapshot has one. */
11
+ readonly id?: string;
12
+ /** Physical name evidence used when logical IDs changed. */
13
+ readonly physicalName?: string;
14
+ /** Optional exact object path for a repeated ID in a nested scope. */
15
+ readonly path?: SnapshotDiffPath;
16
+ }
17
+ /**
18
+ * An explicit, serializable physical-rename mapping.
19
+ *
20
+ * `namespace` and `kind` are part of the key. A hint never crosses either boundary, and a hint is
21
+ * only authoritative after both targets resolve to exactly one object.
22
+ */
23
+ interface SnapshotRenameHint {
24
+ readonly namespace?: string;
25
+ readonly kind: SnapshotDiffObjectKind;
26
+ readonly from: string | SnapshotRenameTarget;
27
+ readonly to: string | SnapshotRenameTarget;
28
+ }
29
+ /** Input accepted by the diff and hint helpers. */
30
+ type SnapshotDiffInput = SchemaSnapshot | CompleteSchemaSnapshot | string | Readonly<Record<string, unknown>>;
31
+ /** Evidence attached to an object, match, operation, or diagnostic. */
32
+ interface SnapshotDiffEvidence {
33
+ readonly kind: "logical-id" | "physical-name" | "physical-reference" | "provenance" | "dialect" | "canonical" | "explicit-hint" | "structural" | "ambiguity";
34
+ readonly path?: SnapshotDiffPath;
35
+ readonly value?: SnapshotJsonValue;
36
+ readonly message?: string;
37
+ readonly confidence?: number;
38
+ }
39
+ /** An immutable object view retained by a diff result. */
40
+ interface SnapshotDiffObject {
41
+ readonly kind: SnapshotDiffObjectKind;
42
+ /** The deferred or opaque kind observed by an adapter, if any. */
43
+ readonly observedKind?: string;
44
+ readonly namespace?: string;
45
+ readonly path: SnapshotDiffPath;
46
+ readonly parent?: SnapshotDiffObjectReference;
47
+ readonly id: string;
48
+ readonly physicalName?: string;
49
+ readonly physicalReference?: SnapshotJsonValue;
50
+ readonly dialect: SnapshotDialect;
51
+ readonly provenance?: SnapshotJsonValue;
52
+ /** The original validated object record, retained as immutable data. */
53
+ readonly value: Readonly<Record<string, SnapshotJsonValue>>;
54
+ readonly evidence: readonly SnapshotDiffEvidence[];
55
+ }
56
+ /** A logical object reference used in parent and related-object evidence. */
57
+ interface SnapshotDiffObjectReference {
58
+ readonly kind: SnapshotDiffObjectKind;
59
+ readonly id: string;
60
+ readonly namespace?: string;
61
+ }
62
+ /** One changed property in a matched object pair. */
63
+ interface SnapshotDiffPropertyChange {
64
+ readonly path: SnapshotDiffPath;
65
+ readonly before?: SnapshotJsonValue;
66
+ readonly after?: SnapshotJsonValue;
67
+ }
68
+ /** Categories of emitted diff operations. */
69
+ type SnapshotDiffOperationType = "add" | "remove" | "property-change" | "physical-rename";
70
+ /** A diff operation. All variants retain both object identity and evidence. */
71
+ interface SnapshotDiffOperation {
72
+ readonly type: SnapshotDiffOperationType;
73
+ /** Alias for callers that use operation terminology. */
74
+ readonly operation: SnapshotDiffOperationType;
75
+ readonly classification: SnapshotDiffOperationType;
76
+ readonly changeKind: SnapshotDiffOperationType;
77
+ readonly kind: SnapshotDiffObjectKind;
78
+ readonly objectKind: SnapshotDiffObjectKind;
79
+ readonly namespace?: string;
80
+ readonly path: SnapshotDiffPath;
81
+ readonly dialect: SnapshotDialect;
82
+ readonly physicalReference?: SnapshotJsonValue;
83
+ readonly provenance?: SnapshotJsonValue;
84
+ readonly before?: SnapshotDiffObject;
85
+ readonly after?: SnapshotDiffObject;
86
+ readonly object?: SnapshotDiffObject;
87
+ readonly logicalId?: string;
88
+ readonly physicalName?: string;
89
+ readonly changedProperties?: readonly SnapshotDiffPropertyChange[];
90
+ readonly evidence: readonly SnapshotDiffEvidence[];
91
+ readonly source: "stable-id" | "explicit-hint";
92
+ readonly destructive: boolean;
93
+ }
94
+ /** A conservative structural match suggestion. It is never an operation. */
95
+ interface SnapshotRenameSuggestion {
96
+ readonly type: "rename-suggestion";
97
+ readonly operation: "rename-suggestion";
98
+ readonly kind: SnapshotDiffObjectKind;
99
+ readonly objectKind: SnapshotDiffObjectKind;
100
+ readonly namespace?: string;
101
+ readonly before: SnapshotDiffObject;
102
+ readonly after: SnapshotDiffObject;
103
+ readonly confidence: number;
104
+ readonly evidence: readonly SnapshotDiffEvidence[];
105
+ }
106
+ /** Diagnostic categories emitted by snapshot comparison and hint validation. */
107
+ type SnapshotDiffDiagnosticCode = "ambiguous" | "destructive" | "unsupported" | "unknown" | "lossy" | "invalid-snapshot" | "invalid-rename-hint" | "rename-conflict" | "dialect-mismatch";
108
+ /** A path-addressed diff diagnostic with object and dialect context. */
109
+ interface SnapshotDiffDiagnostic {
110
+ readonly code: SnapshotDiffDiagnosticCode;
111
+ readonly category: SnapshotDiffDiagnosticCode;
112
+ readonly severity: "error" | "warning";
113
+ readonly message: string;
114
+ readonly path: SnapshotDiffPath;
115
+ readonly relatedPaths?: readonly SnapshotDiffPath[];
116
+ readonly kind?: SnapshotDiffObjectKind;
117
+ readonly objectKind?: SnapshotDiffObjectKind;
118
+ readonly namespace?: string;
119
+ readonly logicalId?: string;
120
+ readonly physicalName?: string;
121
+ readonly dialect?: SnapshotDialect;
122
+ readonly evidence?: readonly SnapshotDiffEvidence[];
123
+ }
124
+ /** Options controlling explicit hints and conservative suggestions. */
125
+ interface SnapshotDiffOptions {
126
+ /** Authoritative mappings. `renames` is accepted as an ergonomic alias. */
127
+ readonly renameHints?: readonly SnapshotRenameHint[];
128
+ readonly renames?: readonly SnapshotRenameHint[];
129
+ /** Disable structural suggestions while retaining stable and explicit matches. */
130
+ readonly suggestions?: boolean;
131
+ /** Minimum score for a unique heuristic suggestion. Defaults to 0.75. */
132
+ readonly suggestionThreshold?: number;
133
+ }
134
+ /** The complete immutable output of `diffSnapshots`. */
135
+ interface SnapshotDiff {
136
+ readonly equal: boolean;
137
+ readonly beforeVersion?: 1 | 2;
138
+ readonly afterVersion?: 1 | 2;
139
+ readonly beforeDialect?: SnapshotDialect;
140
+ readonly afterDialect?: SnapshotDialect;
141
+ readonly beforeFingerprint?: string;
142
+ readonly afterFingerprint?: string;
143
+ readonly operations: readonly SnapshotDiffOperation[];
144
+ readonly changes: readonly SnapshotDiffOperation[];
145
+ readonly additions: readonly SnapshotDiffOperation[];
146
+ readonly removals: readonly SnapshotDiffOperation[];
147
+ readonly propertyChanges: readonly SnapshotDiffOperation[];
148
+ readonly renames: readonly SnapshotDiffOperation[];
149
+ readonly added: readonly SnapshotDiffOperation[];
150
+ readonly removed: readonly SnapshotDiffOperation[];
151
+ readonly changed: readonly SnapshotDiffOperation[];
152
+ readonly physicalRenames: readonly SnapshotDiffOperation[];
153
+ readonly suggestions: readonly SnapshotRenameSuggestion[];
154
+ readonly diagnostics: readonly SnapshotDiffDiagnostic[];
155
+ readonly issues: readonly SnapshotDiffDiagnostic[];
156
+ readonly renameHints: readonly SnapshotRenameHint[];
157
+ readonly hints: readonly SnapshotRenameHint[];
158
+ }
159
+ /** Result returned by serializable rename-hint validation/decoding helpers. */
160
+ type SnapshotRenameHintResult = {
161
+ readonly ok: true;
162
+ readonly value: readonly SnapshotRenameHint[];
163
+ readonly diagnostics: readonly SnapshotDiffDiagnostic[];
164
+ } | {
165
+ readonly ok: false;
166
+ readonly value: readonly SnapshotRenameHint[];
167
+ readonly diagnostics: readonly SnapshotDiffDiagnostic[];
168
+ };
169
+ /** Decode diagnostics without throwing, suitable for editor and CLI callers. */
170
+ type SnapshotDiffDecodeResult = {
171
+ readonly ok: true;
172
+ readonly version: 1 | 2;
173
+ readonly value: SchemaSnapshot | CompleteSchemaSnapshot;
174
+ } | {
175
+ readonly ok: false;
176
+ readonly diagnostics: readonly SnapshotDiffDiagnostic[];
177
+ };
178
+ //#endregion
179
+ //#region src/diff/diff.d.ts
180
+ /**
181
+ * Compare Snapshot v1 or v2 values and return immutable, reviewable data.
182
+ *
183
+ * The function never opens a connection, renders SQL, or turns a heuristic match into a rename.
184
+ * Invalid input and malformed hints are represented by diagnostics in the returned value.
185
+ */
186
+ declare function diffSnapshots(beforeInput: SnapshotDiffInput, afterInput: SnapshotDiffInput, options?: SnapshotDiffOptions): SnapshotDiff;
187
+ /** Alias that reads naturally in comparison-oriented callers. */
188
+ declare const compareSnapshots: typeof diffSnapshots;
189
+ /** Decode and normalize a Snapshot v1 or v2 value without throwing. */
190
+ declare function decodeSnapshotForDiff(input: SnapshotDiffInput): SnapshotDiffDecodeResult;
191
+ /** Validate rename hints and return a frozen, serializable list. */
192
+ declare function validateSnapshotRenameHints(hints: readonly SnapshotRenameHint[] | unknown): SnapshotRenameHintResult;
193
+ /** Serialize validated rename hints as deterministic JSON. */
194
+ declare function encodeSnapshotRenameHints(hints: readonly SnapshotRenameHint[]): string;
195
+ /** Decode deterministic rename-hint JSON without throwing. */
196
+ declare function decodeSnapshotRenameHints(input: string | unknown): SnapshotRenameHintResult;
197
+ /** Short aliases for callers that keep rename helpers beside `diffSnapshots`. */
198
+ declare const validateRenameHints: typeof validateSnapshotRenameHints;
199
+ declare const encodeRenameHints: typeof encodeSnapshotRenameHints;
200
+ declare const decodeRenameHints: typeof decodeSnapshotRenameHints;
201
+ //#endregion
2
202
  export { SnapshotDiff, SnapshotDiffDecodeResult, SnapshotDiffDiagnostic, SnapshotDiffDiagnosticCode, SnapshotDiffEvidence, SnapshotDiffInput, SnapshotDiffObject, SnapshotDiffObjectKind, SnapshotDiffObjectReference, SnapshotDiffOperation, SnapshotDiffOperationType, SnapshotDiffOptions, SnapshotDiffPath, SnapshotDiffPropertyChange, SnapshotRenameHint, SnapshotRenameHintResult, SnapshotRenameSuggestion, SnapshotRenameTarget, compareSnapshots, decodeRenameHints, decodeSnapshotForDiff, decodeSnapshotRenameHints, diffSnapshots, encodeRenameHints, encodeSnapshotRenameHints, validateRenameHints, validateSnapshotRenameHints };
package/dist/diff.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { a as toSnapshotJsonValue, i as schemaSnapshotDigest, l as decodeSchemaSnapshot, n as canonicalJson } from "./canonical-BXUguqfo.mjs";
2
- import { c as decodeCompleteSchemaSnapshot, s as completeSchemaSnapshotDigest } from "./complete-WYyVozgK.mjs";
1
+ import { a as toSnapshotJsonValue, i as schemaSnapshotFingerprint, l as decodeSchemaSnapshot, n as canonicalJson } from "./canonical-DMvR9yBe.mjs";
2
+ import { c as decodeCompleteSchemaSnapshot, s as completeSchemaSnapshotFingerprint } from "./complete-DP7pliuY.mjs";
3
3
  //#region src/diff/diff.ts
4
4
  const objectKinds = /* @__PURE__ */ new Set([
5
5
  "namespace",
@@ -63,12 +63,12 @@ function diffSnapshots(beforeInput, afterInput, options = {}) {
63
63
  ...before.snapshot ? {
64
64
  beforeVersion: before.snapshot.version,
65
65
  beforeDialect: before.snapshot.value.dialect,
66
- beforeDigest: before.snapshot.digest
66
+ beforeFingerprint: before.snapshot.fingerprint
67
67
  } : {},
68
68
  ...after.snapshot ? {
69
69
  afterVersion: after.snapshot.version,
70
70
  afterDialect: after.snapshot.value.dialect,
71
- afterDigest: after.snapshot.digest
71
+ afterFingerprint: after.snapshot.fingerprint
72
72
  } : {}
73
73
  });
74
74
  const left = before.snapshot;
@@ -233,8 +233,8 @@ function diffSnapshots(beforeInput, afterInput, options = {}) {
233
233
  afterVersion: right.version,
234
234
  beforeDialect: left.value.dialect,
235
235
  afterDialect: right.value.dialect,
236
- beforeDigest: left.digest,
237
- afterDigest: right.digest,
236
+ beforeFingerprint: left.fingerprint,
237
+ afterFingerprint: right.fingerprint,
238
238
  operations: sortedOperations,
239
239
  changes: sortedOperations,
240
240
  additions,
@@ -376,7 +376,7 @@ function decodeSnapshot(input) {
376
376
  version: 2,
377
377
  value: snapshot,
378
378
  records: extractCompleteObjects(snapshot),
379
- digest: completeSchemaSnapshotDigest(snapshot)
379
+ fingerprint: completeSchemaSnapshotFingerprint(snapshot)
380
380
  }
381
381
  };
382
382
  }
@@ -393,7 +393,7 @@ function decodeSnapshot(input) {
393
393
  version: 1,
394
394
  value: snapshot,
395
395
  records: extractV1Objects(snapshot),
396
- digest: schemaSnapshotDigest(snapshot)
396
+ fingerprint: schemaSnapshotFingerprint(snapshot)
397
397
  }
398
398
  };
399
399
  }
@@ -1,5 +1,5 @@
1
- import { T as SnapshotJsonValue, Tr as SchemaDialect, Ur as Schema, f as SnapshotDiagnostic, i as SchemaSnapshotInput, l as SnapshotCreateResult, m as SnapshotDialect, n as SchemaSnapshot, r as SchemaSnapshotAdapter, u as SnapshotDecodeResult } from "./types-BK1COGZe.mjs";
2
- import { n as CompleteSchemaSnapshotInput, t as CompleteSchemaSnapshot, u as CompleteSnapshotDecodeResult } from "./complete-types-IjEn5VPN.mjs";
1
+ import { T as SnapshotJsonValue, Tr as SchemaDialect, Ur as Schema, f as SnapshotDiagnostic, i as SchemaSnapshotInput, l as SnapshotCreateResult, m as SnapshotDialect, n as SchemaSnapshot, r as SchemaSnapshotAdapter, u as SnapshotDecodeResult } from "./types-C0VkiwpR.mjs";
2
+ import { n as CompleteSchemaSnapshotInput, t as CompleteSchemaSnapshot, u as CompleteSnapshotDecodeResult } from "./complete-types-CY0KbzNw.mjs";
3
3
  //#region src/snapshot/canonical.d.ts
4
4
  /** Error raised when a value cannot cross the canonical JSON boundary. */
5
5
  declare class SnapshotCanonicalError extends TypeError {
@@ -13,10 +13,10 @@ declare function canonicalJson(value: SnapshotJsonValue): string;
13
13
  /** Canonical JSON for a schema snapshot after fixed-order reconstruction. */
14
14
  declare function encodeCanonicalSnapshot(snapshot: SchemaSnapshot): string;
15
15
  /**
16
- * Compute a small deterministic content digest for cache keys and diagnostics. It is deliberately
17
- * not an entity identity, signature, or migration lineage.
16
+ * Compute a small deterministic content fingerprint for cache keys and diagnostics. It is
17
+ * deliberately not an entity identity, signature, or migration lineage.
18
18
  */
19
- declare function schemaSnapshotDigest(snapshot: SchemaSnapshotInput | string): string;
19
+ declare function schemaSnapshotFingerprint(snapshot: SchemaSnapshotInput | string): string;
20
20
  //#endregion
21
21
  //#region src/snapshot/complete.d.ts
22
22
  /** Error raised by throwing APIs after collecting strict v2 diagnostics. */
@@ -34,18 +34,18 @@ declare function assertCompleteSchemaSnapshot(input: CompleteSchemaSnapshotInput
34
34
  declare function canonicalizeCompleteSchemaSnapshot(input: CompleteSchemaSnapshotInput): CompleteSchemaSnapshot;
35
35
  /** Encode a complete snapshot with deterministic property and array order. */
36
36
  declare function encodeCompleteSchemaSnapshot(snapshot: CompleteSchemaSnapshot): string;
37
- /** Compute the deterministic content digest for a complete Snapshot v2. */
38
- declare function completeSchemaSnapshotDigest(snapshot: CompleteSchemaSnapshotInput | string): string;
37
+ /** Compute the deterministic content fingerprint for a complete Snapshot v2. */
38
+ declare function completeSchemaSnapshotFingerprint(snapshot: CompleteSchemaSnapshotInput | string): string;
39
39
  /** Numbered aliases for tooling that keeps v1 and v2 side by side. */
40
40
  declare const decodeSchemaSnapshotV2: typeof decodeCompleteSchemaSnapshot;
41
41
  declare const assertSchemaSnapshotV2: typeof assertCompleteSchemaSnapshot;
42
42
  declare const encodeSchemaSnapshotV2: typeof encodeCompleteSchemaSnapshot;
43
43
  declare const canonicalizeSchemaSnapshotV2: typeof canonicalizeCompleteSchemaSnapshot;
44
- declare const schemaSnapshotV2Digest: typeof completeSchemaSnapshotDigest;
44
+ declare const schemaSnapshotV2Fingerprint: typeof completeSchemaSnapshotFingerprint;
45
45
  declare const decodeCompleteSnapshot: typeof decodeCompleteSchemaSnapshot;
46
46
  declare const assertCompleteSnapshot: typeof assertCompleteSchemaSnapshot;
47
47
  declare const encodeCompleteSnapshot: typeof encodeCompleteSchemaSnapshot;
48
- declare const digestCompleteSchemaSnapshot: typeof completeSchemaSnapshotDigest;
48
+ declare const fingerprintCompleteSchemaSnapshot: typeof completeSchemaSnapshotFingerprint;
49
49
  //#endregion
50
50
  //#region src/snapshot/decode.d.ts
51
51
  /** Error raised by throwing snapshot APIs after collecting diagnostics. */
@@ -90,8 +90,8 @@ declare function encodeSchemaSnapshot(snapshot: SchemaSnapshot): string;
90
90
  declare const serializeSchema: typeof createSchemaSnapshot;
91
91
  /** Alias for the canonical snapshot encoder. */
92
92
  declare const encodeSnapshot: typeof encodeSchemaSnapshot;
93
- /** Alias for the canonical snapshot digest helper. */
94
- declare const digestSchemaSnapshot: typeof schemaSnapshotDigest;
93
+ /** Alias for the canonical snapshot fingerprint helper. */
94
+ declare const fingerprintSchemaSnapshot: typeof schemaSnapshotFingerprint;
95
95
  //#endregion
96
96
  //#region src/snapshot/postgres.d.ts
97
97
  /** PostgreSQL's v1 snapshot extension identity. */
@@ -143,4 +143,4 @@ declare function tryCreateMysqlSchemaSnapshot<TSchema extends Schema<any>>(schem
143
143
  /** Options accepted by the MySQL snapshot convenience functions. */
144
144
  type MysqlSnapshotOptions = Omit<SchemaSnapshotOptions, "adapter" | "dialect">;
145
145
  //#endregion
146
- export { assertSchemaSnapshot as A, decodeCompleteSchemaSnapshot as B, createSchemaSnapshot as C, serializeSchema as D, encodeSnapshot as E, assertCompleteSnapshot as F, encodeCompleteSnapshot as G, decodeSchemaSnapshotV2 as H, assertSchemaSnapshotV2 as I, SnapshotCanonicalError as J, encodeSchemaSnapshotV2 as K, canonicalizeCompleteSchemaSnapshot as L, decodeSchemaSnapshot as M, CompleteSnapshotValidationError as N, tryCreateSchemaSnapshot as O, assertCompleteSchemaSnapshot as P, toSnapshotJsonValue as Q, canonicalizeSchemaSnapshotV2 as R, SnapshotSerializationError as S, encodeSchemaSnapshot as T, digestCompleteSchemaSnapshot as U, decodeCompleteSnapshot as V, encodeCompleteSchemaSnapshot as W, encodeCanonicalSnapshot as X, canonicalJson as Y, schemaSnapshotDigest as Z, postgresSchemaDialect as _, mysqlSnapshotDialect as a, tryCreatePostgresSchemaSnapshot as b, SqliteStorageAffinity as c, sqliteSnapshotAdapter as d, sqliteSnapshotDialect as f, createPostgresSchemaSnapshot as g, PostgresSnapshotOptions as h, mysqlSnapshotAdapter as i, canonicalizeSchemaSnapshot as j, SnapshotValidationError as k, createSqliteSchemaSnapshot as l, tryCreateSqliteSchemaSnapshot as m, createMysqlSchemaSnapshot as n, tryCreateMysqlSchemaSnapshot as o, sqliteStorageAffinity as p, schemaSnapshotV2Digest as q, mysqlSchemaDialect as r, SqliteSnapshotOptions as s, MysqlSnapshotOptions as t, sqliteSchemaDialect as u, postgresSnapshotAdapter as v, digestSchemaSnapshot as w, SchemaSnapshotOptions as x, postgresSnapshotDialect as y, completeSchemaSnapshotDigest as z };
146
+ export { assertSchemaSnapshot as A, decodeCompleteSchemaSnapshot as B, createSchemaSnapshot as C, serializeSchema as D, fingerprintSchemaSnapshot as E, assertCompleteSnapshot as F, encodeSchemaSnapshotV2 as G, decodeSchemaSnapshotV2 as H, assertSchemaSnapshotV2 as I, SnapshotCanonicalError as J, fingerprintCompleteSchemaSnapshot as K, canonicalizeCompleteSchemaSnapshot as L, decodeSchemaSnapshot as M, CompleteSnapshotValidationError as N, tryCreateSchemaSnapshot as O, assertCompleteSchemaSnapshot as P, toSnapshotJsonValue as Q, canonicalizeSchemaSnapshotV2 as R, SnapshotSerializationError as S, encodeSnapshot as T, encodeCompleteSchemaSnapshot as U, decodeCompleteSnapshot as V, encodeCompleteSnapshot as W, encodeCanonicalSnapshot as X, canonicalJson as Y, schemaSnapshotFingerprint as Z, postgresSchemaDialect as _, mysqlSnapshotDialect as a, tryCreatePostgresSchemaSnapshot as b, SqliteStorageAffinity as c, sqliteSnapshotAdapter as d, sqliteSnapshotDialect as f, createPostgresSchemaSnapshot as g, PostgresSnapshotOptions as h, mysqlSnapshotAdapter as i, canonicalizeSchemaSnapshot as j, SnapshotValidationError as k, createSqliteSchemaSnapshot as l, tryCreateSqliteSchemaSnapshot as m, createMysqlSchemaSnapshot as n, tryCreateMysqlSchemaSnapshot as o, sqliteStorageAffinity as p, schemaSnapshotV2Fingerprint as q, mysqlSchemaDialect as r, SqliteSnapshotOptions as s, MysqlSnapshotOptions as t, sqliteSchemaDialect as u, postgresSnapshotAdapter as v, encodeSchemaSnapshot as w, SchemaSnapshotOptions as x, postgresSnapshotDialect as y, completeSchemaSnapshotFingerprint as z };
package/dist/index.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { $ as PaginationKind, $a as SqlTag, $i as SourceIndexesRecord, $l as InheritedMetadata, $n as WithClause, $o as ColumnStorageOf, $t as nullsLast, Aa as jsonBoolean, Ac as ExplainableQueryAdapter, Ai as catalogCheck, Al as ResultField, An as MutationReturningClause, Ao as value, Ar as SchemaExpressionErrorCode, As as timestamp, At as SourceSqlTypeMap, Au as SqlBoolean, B as CastTarget, Ba as concat, Bc as QubuTransactionalClient, Bi as AliasedSource, Bl as CapabilityMetadataOf, Bn as select, Bo as ColumnIdentityOf, Bs as ExternalDefaultDescriptor, Bt as TableDefinitions, Bu as SqlSemanticType, Ca as SelectClause, Cc as ExplainMutationOptions, Ci as SourceConstraintsRecord, Cn as update, Co as isTrue, Cr as SelectionSqlTypes, Cs as json, Ct as SourceColumns, Da as multiply, Dc as ExplainReadOptions, Di as UniqueConstraint, Dl as ResultDecoder, Dn as MutationQuery, Ds as numeric, Dt as SourceKind, Du as AnySqlType, Ea as modulo, Ec as ExplainPlanRow, Ei as TableLike, El as ResultDecodeContext, En as MutationKind, Er as SchemaDialectHooks, Es as nullable, Et as SourceIdentity, Fa as denseRank, Fc as QubuStreamingClient, Fi as references, Fl as timestampResultDecoder, Fn as ReturningClause, Fo as ColumnDefinition, Fr as UnsafeSchemaSqlExpression, Fs as ColumnDefault, Fu as SqlInteger, G as DialectJson, Gc as StreamingTransactionalQueryAdapter, Gi as alias, Gl as Fragment, Gn as MissingScope, Go as ColumnOptions, Gr as SchemaNamingPolicy, Gs as IdentityDescriptor, Gt as TableRow, Gu as SqlUnknown, H as DialectCapability, Ha as upper, Hc as QueryExecutor, Hi as LateralSource, Hl as CardinalityOf, Hn as AvailableScope, Ho as ColumnIsGenerated, Hr as unsafeSchemaSql, Hs as GeneratedColumnDescriptor, Ht as TableInsertInput, Hu as SqlTextLike, Ia as over, Ic as QubuStreamingExplainableClient, Ii as unique, Il as AggregateDependenciesOf, In as ReturningRow, Io as ColumnDefinitionConfig, Is as ColumnDefaultInput, Iu as SqlJson, J as DialectRowLocking, Ja as countDistinct, Jc as execute, Ji as IndexOptions, Jl as GroupingKeysOf, Jn as ScopeValidation, Jo as ColumnStorage, Jr as SchemaTableNames, Js as LiteralDefaultDescriptor, Jt as table, K as DialectOptions, Ka as avg, Kc as TransactionOptions, Ki as lateral, Kl as FragmentMeta, Kn as RequiredOuterScope, Ko as ColumnOutput, Kr as SchemaOptions, Ks as IdentityDialectExtension, Kt as TableSqlTypes, Ku as SqlUuid, La as rank, Lc as QubuStreamingTransaction, Li as uniqueConstraint, Ll as AggregateMeta, Ln as ReturningSqlTypes, Ls as DefaultDescriptor, Lt as AnyTable, Lu as SqlNumericLike, Ma as jsonNumber, Mc as QubuExplainableClient, Mi as check, Ml as booleanResultDecoder, Mn as MutationScopeValidation, Mo as cast, Mr as SchemaExpressionMode, Ms as CanonicalLiteral, Mu as SqlDecimal, Na as jsonPath, Nc as QubuExplainableStreamingTransactionalClient, Ni as foreignKey, Nl as dateResultDecoder, Nn as MutationSqlTypes, Nr as SchemaRenderContext, Ns as ColumnBehaviorError, Nu as SqlEqualityComparable, Oa as subtract, Oc as ExplainRequest, Oi as UniqueConstraintOptions, Ol as ResultDecoders, On as MutationQueryConfig, Oo as asValue, Or as RenderedSchemaExpression, Os as portableStorage, Ot as SourceProvision, Ou as SqlBigInt, Pa as jsonText, Pc as QubuExplainableTransactionalClient, Pi as primaryKey, Pl as jsonTextResultDecoder, Pn as allowAll, Po as ColumnDefaultOf, Pr as SchemaRenderOptions, Ps as ColumnBehaviorErrorCode, Pu as SqlEqualityCompatible, Q as NamedCastTarget, Qa as SqlFragment, Qc as stream, Qi as SourceIndex, Ql as HasWindow, Qn as RecursiveCteSource, Qo as ColumnStorageKindOf, Qs as SqliteIdentityExtension, Qt as nullsFirst, Ra as rowNumber, Rc as QubuStreamingTransactionalClient, Rl as AnyFragment, Rn as returning, Ro as ColumnGeneratedOf, Rs as ExpressionDefaultDescriptor, Rt as Table, Ru as SqlOrderCompatible, Sa as ClausePlacement, Sc as ExecutionResult, Si as SourceConstraint, Sn as UpdateAssignments, So as isNull, Sr as SelectionOutput, Ss as integer, St as Source, Su as WindowMeta, Ta as divide, Tc as ExplainOptionsFor, Ti as SqliteConstraintExtension, Tl as DecodableResultType, Tn as MutationClause, Tr as SchemaDialect, Ts as nativeStorage, Tt as SourceConstraints, U as DialectCastTypes, Ua as call, Uc as StreamableQuery, Ui as QueryAliasIdentity, Ul as DependenciesOf, Un as ClauseScope, Ur as Schema, Us as GeneratedColumnMode, Uu as SqlTimestamp, V as Dialect, Va as lower, Vc as QueryAdapter, Vi as LateralIdentity, Vl as CardinalityMeta, Vn as AvailableOuterScope, Vo as ColumnInsertInput, Vs as ExternalGeneratedColumnDescriptor, Vt as TableIdentity, Vu as SqlText, W as DialectExplain, Wa as schemaCall, Wc as StreamingQueryAdapter, Wi as QuerySource, Wl as ExpressionMeta, Wn as GroupingValidation, Wo as ColumnOnUpdateOf, Wr as SchemaDiagnostic, Ws as GeneratedDescriptor, Wu as SqlTypeSatisfies, X as ExplainRenderOptions, Xa as min, Xc as explain, Xi as MysqlIndexExtension, Xl as HasAggregate, Xn as SelectQuery, Xr as SchemaTableRegistry, Xs as ResolvedColumnBehavior, Xt as asc, Y as ExplainFormat, Ya as max, Yc as executeRows, Yi as IndexTerm, Yl as GroupingMeta, Yn as SelectCardinality, Yo as ColumnStorageDeclarationOf, Yr as SchemaTableRecord, Ys as MysqlIdentityExtension, Yt as OrderTerm, Z as JsonScalarKind, Za as sum, Zc as qubu, Zi as PostgresIndexExtension, Zl as HasSubquery, Zn as CteSource, Zo as ColumnStorageDialectOf, Zs as SchemaLiteralValue, Zt as desc, _a as fetchNext, _i as KeyConstraint, _l as ExpressionSqlType, _o as notLike, _r as FromScope, _s as binary, _t as AnySource, _u as RequiresSourceMeta, aa as and, ac as SchemaDialectExtension, ai as CheckConstraint, al as QueryValidationErrorCode, an as InsertSource, ao as notExists, ar as except, at as SchemaLiteralRenderer, au as OutputOf, ba as distinct, bc as ExecutionOptions, bi as PostgresConstraintExtension, bl as SchemaExpressionBrand, bo as notIn, br as Selection, bt as ProvidedSourceIdentity, bu as SubqueryMeta, ca as Omit, ci as ConstraintOptions, cl as ColumnReference, cn as insertInto, co as eq, cr as unionAll, cu as ProvidesSourceMeta, da as omit, di as FieldLikeOptions, dl as AnySchemaExpression, do as isDistinctFrom, dr as innerJoin, dt as QueryConfig, du as RenderFunction, ea as SqliteIndexExtension, ec as externalDefault, ei as schema, el as RenderOptions, en as order, eo as TypedSqlTag, er as cte, et as PaginationPart, eu as InheritedMetadataOf, fa as where, fi as ForeignKeyConstraint, fl as Expression, fo as isNotDistinctFrom, fr as leftJoin, ft as QueryKind, fu as RequiresCapabilityMeta, ga as fetchFirst, gi as ForeignKeyTargetInput, gl as ExpressionRequires, go as ne, gr as FromClause, gs as bigint, gt as Row, gu as RequiresOuterSourceMeta, ha as rowLock, hi as ForeignKeyTarget, hl as ExpressionOutput, ho as lte, hr as groupBy, ht as QueryWithRow, hu as RequiresOuterOf, ia as DeclaredColumnNullability, ii as CatalogCheckSql, il as QueryValidationError, in as InsertSelectSource, io as inQuery, ir as SetQuery, is as NativeColumnStorage, it as RowLockWaitPolicy, iu as NullableSourcesOf, ja as jsonExists, jc as QubuClient, ji as catalogForeignKey, jl as ResultShape, jn as MutationRow, jo as mapResult, jr as SchemaExpressionInput, js as uuid, ju as SqlDate, ka as JsonPath, kc as ExplainResult, ki as UniqueNullSemantics, kl as ResultDecodingError, kn as MutationReturning, ks as text, kt as SourceRow, ku as SqlBinary, la as OmittableSelectClause, lc as SchemaObjectIdentity, li as ConstraintTiming, ln as insertSelect, lo as gt, lr as crossJoin, lt as AnyQuery, lu as QueryCardinality, ma as RowLockOptions, mi as ForeignKeyOptions, ml as ExpressionNullability, mo as lt, mr as rightJoin, mt as QuerySqlTypeMap, mu as RequiresOuterMetadataOf, na as index, nc as generatedColumn, ni as AnyKeyColumn, nl as render, nn as deleteFrom, no as caseWhen, nr as withCte, ns as ColumnUpdateInput, nt as PortableCastType, nu as NullabilityOf, oa as not, oc as SchemaDialectName, oi as CheckConstraintOptions, ol as QueryValidationIssue, on as ValuesSource, oo as scalar, or as intersect, ou as ProvidesOuterOf, pa as RowLockClause, pi as ForeignKeyMatch, pl as ExpressionKind, po as like, pr as naturalJoin, pt as QueryRow, pu as RequiresOf, q as DialectPagination, qa as count, qc as TransactionalQueryAdapter, qi as IndexDialectExtension, ql as GroupingDependenciesOf, qn as RequiredScope, qo as ColumnSqlType, qr as SchemaTableEntry, qs as IdentityGeneration, qt as TableUpdateInput, rc as identityColumn, ri as CatalogCheckExpression, rl as QueryTypeValidation, rn as DefaultValuesSource, ro as exists, rr as SetOperator, rt as RowLockMode, ru as NullableSourceMeta, sa as or, sc as SchemaMetadataDiagnostic, si as ConstraintDialectExtension, sl as ColumnDependency, sn as defaultValues, sr as union, ss as PortableColumnStorage, su as ProvidesOuterSourceMeta, ta as TableIndex, tc as externalGeneratedColumn, tl as RenderedQuery, tn as orderBy, to as sql, tr as recursiveCte, ts as ColumnStorageTypeOf, tt as PortableCastTarget, tu as MetadataOf, ua as SelectPart, uc as SchemaObjectNameOptions, ui as FieldLike, ul as AnyExpression, un as values, uo as gte, ur as fullJoin, ut as Query, uu as RenderContext, va as offset, vc as AdapterExecutionResult, vi as KeyConstraintOptions, vl as ExpressionWithOutput, vo as between, vr as FromSource, vs as boolean, vu as ResultMeta, wa as add, wc as ExplainOptions, wi as SourceLike, wn as AllowAllClause, wr as all, ws as nativeColumn, wt as SourceConfig, xa as AnySelectClause, xc as ExecutionRequest, xi as ReferentialAction, xn as UpdateAssignmentValue, xo as isNotNull, xr as SelectionObject, xs as date, xt as ProvidedSourceRow, xu as VisibleDependenciesOf, ya as having, yc as DriverValueEncoder, yi as MysqlConstraintExtension, yl as SchemaExpression, yo as inList, yr as from, ys as column, yu as SqlTypeOf, za as coalesce, zc as QubuTransaction, zi as AliasIdentity, zl as CapabilitiesOf, zn as correlate, zo as ColumnHasDefault, zs as ExpressionGeneratedColumnDescriptor, zt as TableColumns, zu as SqlOrderable } from "./types-BK1COGZe.mjs";
2
- export { type AdapterExecutionResult, type AggregateDependenciesOf, type AggregateMeta, type AliasIdentity, type AliasedSource, type AllowAllClause, type AnyExpression, type AnyFragment, type AnyKeyColumn, type AnyQuery, type AnySchemaExpression, type AnySelectClause, type AnySource, type AnySqlType, type AnyTable, type AvailableOuterScope, type AvailableScope, type CanonicalLiteral, type CapabilitiesOf, type CapabilityMetadataOf, type CardinalityMeta, type CardinalityOf, type CastTarget, type CatalogCheckExpression, type CatalogCheckSql, type CheckConstraint, type CheckConstraintOptions, type ClausePlacement, type ClauseScope, type ColumnBehaviorError, type ColumnBehaviorErrorCode, type ColumnDefault, type ColumnDefaultInput, type ColumnDefaultOf, type ColumnDefinition, type ColumnDefinitionConfig, type ColumnDependency, type ColumnGeneratedOf, type ColumnHasDefault, type ColumnIdentityOf, type ColumnInsertInput, type ColumnIsGenerated, type ColumnOnUpdateOf, type ColumnOptions, type ColumnOutput, type ColumnReference, type ColumnSqlType, type ColumnStorage, type ColumnStorageDeclarationOf, type ColumnStorageDialectOf, type ColumnStorageKindOf, type ColumnStorageOf, type ColumnStorageTypeOf, type ColumnUpdateInput, type ConstraintDialectExtension, type ConstraintOptions, type ConstraintTiming, type CteSource, type DeclaredColumnNullability, type DecodableResultType, type DefaultDescriptor, type DefaultValuesSource, type DependenciesOf, type Dialect, type DialectCapability, type DialectCastTypes, type DialectExplain, type DialectJson, type DialectOptions, type DialectPagination, type DialectRowLocking, type DriverValueEncoder, type ExecutionOptions, type ExecutionRequest, type ExecutionResult, type ExplainFormat, type ExplainMutationOptions, type ExplainOptions, type ExplainOptionsFor, type ExplainPlanRow, type ExplainReadOptions, type ExplainRenderOptions, type ExplainRequest, type ExplainResult, type ExplainableQueryAdapter, type Expression, type ExpressionDefaultDescriptor, type ExpressionGeneratedColumnDescriptor, type ExpressionKind, type ExpressionMeta, type ExpressionNullability, type ExpressionOutput, type ExpressionRequires, type ExpressionSqlType, type ExpressionWithOutput, type ExternalDefaultDescriptor, type ExternalGeneratedColumnDescriptor, type FieldLike, type FieldLikeOptions, type ForeignKeyConstraint, type ForeignKeyMatch, type ForeignKeyOptions, type ForeignKeyTarget, type ForeignKeyTargetInput, type Fragment, type FragmentMeta, type FromClause, type FromScope, type FromSource, type GeneratedColumnDescriptor, type GeneratedColumnMode, type GeneratedDescriptor, type GroupingDependenciesOf, type GroupingKeysOf, type GroupingMeta, type GroupingValidation, type HasAggregate, type HasSubquery, type HasWindow, type IdentityDescriptor, type IdentityDialectExtension, type IdentityGeneration, type IndexDialectExtension, type IndexOptions, type IndexTerm, type InheritedMetadata, type InheritedMetadataOf, type InsertSelectSource, type InsertSource, type JsonPath, type JsonScalarKind, type KeyConstraint, type KeyConstraintOptions, type LateralIdentity, type LateralSource, type LiteralDefaultDescriptor, type MetadataOf, type MissingScope, type MutationClause, type MutationKind, type MutationQuery, type MutationQueryConfig, type MutationReturning, type MutationReturningClause, type MutationRow, type MutationScopeValidation, type MutationSqlTypes, type MysqlConstraintExtension, type MysqlIdentityExtension, type MysqlIndexExtension, type NamedCastTarget, type NativeColumnStorage, type NullabilityOf, type NullableSourceMeta, type NullableSourcesOf, type Omit, type OmittableSelectClause, type OrderTerm, type OutputOf, type PaginationKind, type PaginationPart, type PortableCastTarget, type PortableCastType, type PortableColumnStorage, type PostgresConstraintExtension, type PostgresIndexExtension, type ProvidedSourceIdentity, type ProvidedSourceRow, type ProvidesOuterOf, type ProvidesOuterSourceMeta, type ProvidesSourceMeta, type QubuClient, type QubuExplainableClient, type QubuExplainableStreamingTransactionalClient, type QubuExplainableTransactionalClient, type QubuStreamingClient, type QubuStreamingExplainableClient, type QubuStreamingTransaction, type QubuStreamingTransactionalClient, type QubuTransaction, type QubuTransactionalClient, type Query, type QueryAdapter, type QueryAliasIdentity, type QueryCardinality, type QueryConfig, type QueryExecutor, type QueryKind, type QueryRow, type QuerySource, type QuerySqlTypeMap, type QueryTypeValidation, QueryValidationError, type QueryValidationErrorCode, type QueryValidationIssue, type QueryWithRow, type RecursiveCteSource, type ReferentialAction, type RenderContext, type RenderFunction, type RenderOptions, type RenderedQuery, type RenderedSchemaExpression, type RequiredOuterScope, type RequiredScope, type RequiresCapabilityMeta, type RequiresOf, type RequiresOuterMetadataOf, type RequiresOuterOf, type RequiresOuterSourceMeta, type RequiresSourceMeta, type ResolvedColumnBehavior, type ResultDecodeContext, type ResultDecoder, type ResultDecoders, ResultDecodingError, type ResultField, type ResultMeta, type ResultShape, type ReturningClause, type ReturningRow, type ReturningSqlTypes, type Row, type RowLockClause, type RowLockMode, type RowLockOptions, type RowLockWaitPolicy, type Schema, type SchemaDiagnostic, type SchemaDialect, type SchemaDialectExtension, type SchemaDialectHooks, type SchemaDialectName, type SchemaExpression, type SchemaExpressionBrand, type SchemaExpressionErrorCode, type SchemaExpressionInput, type SchemaExpressionMode, type SchemaLiteralRenderer, type SchemaLiteralValue, type SchemaMetadataDiagnostic, type SchemaNamingPolicy, type SchemaObjectIdentity, type SchemaObjectNameOptions, type SchemaOptions, type SchemaRenderContext, type SchemaRenderOptions, type SchemaTableEntry, type SchemaTableNames, type SchemaTableRecord, type SchemaTableRegistry, type ScopeValidation, type SelectCardinality, type SelectClause, type SelectPart, type SelectQuery, type Selection, type SelectionObject, type SelectionOutput, type SelectionSqlTypes, type SetOperator, type SetQuery, type Source, type SourceColumns, type SourceConfig, type SourceConstraint, type SourceConstraints, type SourceConstraintsRecord, type SourceIdentity, type SourceIndex, type SourceIndexesRecord, type SourceKind, type SourceLike, type SourceProvision, type SourceRow, type SourceSqlTypeMap, type SqlBigInt, type SqlBinary, type SqlBoolean, type SqlDate, type SqlDecimal, type SqlEqualityComparable, type SqlEqualityCompatible, type SqlFragment, type SqlInteger, type SqlJson, type SqlNumericLike, type SqlOrderCompatible, type SqlOrderable, type SqlSemanticType, type SqlTag, type SqlText, type SqlTextLike, type SqlTimestamp, type SqlTypeOf, type SqlTypeSatisfies, type SqlUnknown, type SqlUuid, type SqliteConstraintExtension, type SqliteIdentityExtension, type SqliteIndexExtension, type StreamableQuery, type StreamingQueryAdapter, type StreamingTransactionalQueryAdapter, type SubqueryMeta, type Table, type TableColumns, type TableDefinitions, type TableIdentity, type TableIndex, type TableInsertInput, type TableLike, type TableRow, type TableSqlTypes, type TableUpdateInput, type TransactionOptions, type TransactionalQueryAdapter, type TypedSqlTag, type UniqueConstraint, type UniqueConstraintOptions, type UniqueNullSemantics, type UnsafeSchemaSqlExpression, type UpdateAssignmentValue, type UpdateAssignments, type ValuesSource, type VisibleDependenciesOf, type WindowMeta, type WithClause, add, alias, all, allowAll, and, asValue, asc, avg, between, bigint, binary, boolean, booleanResultDecoder, call, caseWhen, cast, catalogCheck, catalogForeignKey, check, coalesce, column, concat, correlate, count, countDistinct, crossJoin, cte, date, dateResultDecoder, defaultValues, deleteFrom, denseRank, desc, distinct, divide, eq, except, execute, executeRows, exists, explain, externalDefault, externalGeneratedColumn, fetchFirst, fetchNext, foreignKey, from, fullJoin, generatedColumn, groupBy, gt, gte, having, identityColumn, inList, inQuery, index, innerJoin, insertInto, insertSelect, integer, intersect, isDistinctFrom, isNotDistinctFrom, isNotNull, isNull, isTrue, json, jsonBoolean, jsonExists, jsonNumber, jsonPath, jsonText, jsonTextResultDecoder, lateral, leftJoin, like, lower, lt, lte, mapResult, max, min, modulo, multiply, nativeColumn, nativeStorage, naturalJoin, ne, not, notExists, notIn, notLike, nullable, nullsFirst, nullsLast, numeric, offset, omit, or, order, orderBy, over, portableStorage, primaryKey, qubu, rank, recursiveCte, references, render, returning, rightJoin, rowLock, rowNumber, scalar, schema, schemaCall, select, sql, stream, subtract, sum, table, text, timestamp, timestampResultDecoder, union, unionAll, unique, uniqueConstraint, unsafeSchemaSql, update, upper, uuid, value, values, where, withCte };
1
+ import { $ as PaginationKind, $a as SqlTag, $c as QubuStreamingTransaction, $i as SourceIndexesRecord, $l as AggregateMeta, $n as WithClause, $o as ColumnStorageDialectOf, $s as ResolvedColumnBehavior, $t as nullsLast, $u as SqlNumericLike, Aa as jsonBoolean, Ac as ExplainReadOptions, Ai as catalogCheck, Al as ExpressionNullability, An as MutationReturningClause, Ao as value, Ar as SchemaExpressionErrorCode, As as numeric, At as SourceSqlTypeMap, Au as RequiresOuterMetadataOf, B as CastTarget, Ba as concat, Bc as HookQueryOperation, Bi as AliasedSource, Bn as select, Bo as ColumnHasDefault, Bs as DefaultDescriptor, Bt as TableDefinitions, Ca as SelectClause, Cc as ExecutionOptions, Ci as SourceConstraintsRecord, Cl as ColumnDependency, Cn as update, Co as isTrue, Cr as SelectionSqlTypes, Cs as date, Ct as SourceColumns, Cu as ProvidesOuterSourceMeta, Da as multiply, Dc as ExplainOptions, Di as UniqueConstraint, Dl as AnySchemaExpression, Dn as MutationQuery, Ds as nativeColumn, Dt as SourceKind, Du as RenderFunction, Ea as modulo, Ec as ExplainMutationOptions, Ei as TableLike, El as AnyExpression, En as MutationKind, Er as SchemaDialectHooks, Es as json, Et as SourceIdentity, Eu as RenderContext, Fa as denseRank, Fc as HookMetadata, Fi as references, Fl as SchemaExpression, Fn as ReturningClause, Fo as ColumnDefaultOf, Fr as UnsafeSchemaSqlExpression, Fs as CanonicalLiteral, Fu as SqlTypeOf, G as DialectJson, Gc as QubuClient, Gi as alias, Gl as ResultDecodingError, Gn as MissingScope, Gr as SchemaNamingPolicy, Gs as GeneratedColumnDescriptor, Gt as TableRow, Gu as SqlBinary, H as DialectCapability, Ha as upper, Hc as HookSuccessOutcome, Hi as LateralSource, Hl as ResultDecodeContext, Hn as AvailableScope, Ho as ColumnIdentityOf, Hr as unsafeSchemaSql, Hs as ExpressionGeneratedColumnDescriptor, Ht as TableInsertInput, Ia as over, Ic as HookMetadataValue, Ii as unique, Il as SchemaExpressionBrand, In as ReturningRow, Io as ColumnDefinition, Is as ColumnBehaviorError, Iu as SubqueryMeta, J as DialectRowLocking, Ja as countDistinct, Jc as QubuExplainableTransactionalClient, Ji as IndexOptions, Jl as booleanResultDecoder, Jn as ScopeValidation, Jo as ColumnOutput, Jr as SchemaTableNames, Js as IdentityDescriptor, Jt as table, Ju as SqlDecimal, K as DialectOptions, Ka as avg, Kc as QubuExplainableClient, Ki as lateral, Kl as ResultField, Kn as RequiredOuterScope, Ko as ColumnOnUpdateOf, Kr as SchemaOptions, Ks as GeneratedColumnMode, Kt as TableSqlTypes, Ku as SqlBoolean, La as rank, Lc as HookOperation, Li as uniqueConstraint, Ln as ReturningSqlTypes, Lo as ColumnDefinitionConfig, Ls as ColumnBehaviorErrorCode, Lt as AnyTable, Lu as VisibleDependenciesOf, Ma as jsonNumber, Mc as ExplainResult, Mi as check, Ml as ExpressionRequires, Mn as MutationScopeValidation, Mo as cast, Mr as SchemaExpressionMode, Ms as text, Mu as RequiresOuterSourceMeta, Na as jsonPath, Nc as ExplainableQueryAdapter, Ni as foreignKey, Nl as ExpressionSqlType, Nn as MutationSqlTypes, Nr as SchemaRenderContext, Ns as timestamp, Nu as RequiresSourceMeta, Oa as subtract, Oc as ExplainOptionsFor, Oi as UniqueConstraintOptions, Ol as Expression, On as MutationQueryConfig, Oo as asValue, Or as RenderedSchemaExpression, Os as nativeStorage, Ot as SourceProvision, Ou as RequiresCapabilityMeta, Pa as jsonText, Pc as HookErrorOutcome, Pi as primaryKey, Pl as ExpressionWithOutput, Pn as allowAll, Po as ColumnCodec, Pr as SchemaRenderOptions, Ps as uuid, Pu as ResultMeta, Q as NamedCastTarget, Qa as SqlFragment, Qc as QubuStreamingExplainableClient, Qi as SourceIndex, Ql as AggregateDependenciesOf, Qn as RecursiveCteSource, Qs as MysqlIdentityExtension, Qt as nullsFirst, Qu as SqlJson, Ra as rowNumber, Rc as HookOperationKind, Rn as returning, Rs as ColumnDefault, Rt as Table, Ru as WindowMeta, Sa as ClausePlacement, Sc as DriverValueEncoder, Si as SourceConstraint, Sl as QueryValidationIssue, Sn as UpdateAssignments, So as isNull, Sr as SelectionOutput, St as Source, Su as ProvidesOuterOf, Ta as divide, Tc as ExecutionResult, Ti as SqliteConstraintExtension, Tn as MutationClause, Tr as SchemaDialect, Ts as integer, Tt as SourceConstraints, Tu as QueryCardinality, U as DialectCastTypes, Ua as call, Uc as HookTransactionOperation, Ui as QueryAliasIdentity, Ul as ResultDecoder, Un as ClauseScope, Uo as ColumnInsertInput, Ur as Schema, Us as ExternalDefaultDescriptor, Uu as AnySqlType, V as Dialect, Va as lower, Vc as HookStreamEnd, Vi as LateralIdentity, Vl as DecodableResultType, Vn as AvailableOuterScope, Vo as ColumnHasRuntimeDefault, Vs as ExpressionDefaultDescriptor, Vt as TableIdentity, W as DialectExplain, Wa as schemaCall, Wc as OperationEndHook, Wi as QuerySource, Wl as ResultDecoders, Wn as GroupingValidation, Wo as ColumnIsGenerated, Wr as SchemaDiagnostic, Ws as ExternalGeneratedColumnDescriptor, Wu as SqlBigInt, X as ExplainRenderOptions, Xa as min, Xc as QubuOptions, Xi as MysqlIndexExtension, Xl as jsonTextResultDecoder, Xn as SelectQuery, Xo as ColumnStorage, Xr as SchemaTableRegistry, Xs as IdentityGeneration, Xt as asc, Xu as SqlEqualityCompatible, Y as ExplainFormat, Ya as max, Yc as QubuHooks, Yi as IndexTerm, Yl as dateResultDecoder, Yn as SelectCardinality, Yo as ColumnSqlType, Yr as SchemaTableRecord, Ys as IdentityDialectExtension, Yt as OrderTerm, Yu as SqlEqualityComparable, Z as JsonScalarKind, Za as sum, Zc as QubuStreamingClient, Zi as PostgresIndexExtension, Zl as timestampResultDecoder, Zn as CteSource, Zo as ColumnStorageDeclarationOf, Zs as LiteralDefaultDescriptor, Zt as desc, Zu as SqlInteger, _a as fetchNext, _i as KeyConstraint, _l as RenderedQuery, _o as notLike, _r as FromScope, _t as AnySource, _u as MetadataOf, aa as and, ac as generatedColumn, ad as SqlTimestamp, ai as CheckConstraint, al as StreamableQuery, an as InsertSource, ao as notExists, ar as except, at as SchemaLiteralRenderer, au as DependenciesOf, ba as distinct, bi as PostgresConstraintExtension, bl as QueryValidationError, bo as notIn, br as Selection, bs as boolean, bt as ProvidedSourceIdentity, bu as NullableSourcesOf, ca as Omit, cc as SchemaDialectExtension, cd as SqlUuid, ci as ConstraintOptions, cl as TransactionOptions, cn as insertInto, co as eq, cr as unionAll, cu as FragmentMeta, da as omit, di as FieldLikeOptions, dl as executeRows, do as isDistinctFrom, dr as innerJoin, dt as QueryConfig, du as GroupingMeta, ea as SqliteIndexExtension, ec as SchemaLiteralValue, ed as SqlOrderCompatible, ei as schema, el as QubuStreamingTransactionalClient, en as order, eo as TypedSqlTag, er as cte, es as ColumnStorageKindOf, et as PaginationPart, eu as AnyFragment, fa as where, fc as SchemaObjectIdentity, fi as ForeignKeyConstraint, fl as explain, fo as isNotDistinctFrom, fr as leftJoin, ft as QueryKind, fu as HasAggregate, ga as fetchFirst, gi as ForeignKeyTargetInput, gl as RenderOptions, go as ne, gr as FromClause, gt as Row, gu as InheritedMetadataOf, ha as rowLock, hi as ForeignKeyTarget, ho as lte, hr as groupBy, ht as QueryWithRow, hu as InheritedMetadata, ia as DeclaredColumnNullability, ic as externalGeneratedColumn, id as SqlTextLike, ii as CatalogCheckSql, il as QueryExecutor, in as InsertSelectSource, io as inQuery, ir as SetQuery, is as ColumnUpdateInput, it as RowLockWaitPolicy, iu as CardinalityOf, ja as jsonExists, jc as ExplainRequest, ji as catalogForeignKey, jl as ExpressionOutput, jn as MutationRow, jo as mapResult, jr as SchemaExpressionInput, js as portableStorage, ju as RequiresOuterOf, ka as JsonPath, kc as ExplainPlanRow, ki as UniqueNullSemantics, kl as ExpressionKind, kn as MutationReturning, ks as nullable, kt as SourceRow, ku as RequiresOf, la as OmittableSelectClause, lc as SchemaDialectName, li as ConstraintTiming, ll as TransactionalQueryAdapter, ln as insertSelect, lo as gt, lr as crossJoin, ls as PortableColumnStorage, lt as AnyQuery, lu as GroupingDependenciesOf, ma as RowLockOptions, mi as ForeignKeyOptions, ml as stream, mo as lt, mr as rightJoin, mt as QuerySqlTypeMap, mu as HasWindow, na as index, nd as SqlSemanticType, ni as AnyKeyColumn, nl as QubuTransactionalClient, nn as deleteFrom, no as caseWhen, nr as withCte, nt as PortableCastType, nu as CapabilityMetadataOf, oa as not, oc as identityColumn, od as SqlTypeSatisfies, oi as CheckConstraintOptions, ol as StreamingQueryAdapter, on as ValuesSource, oo as scalar, or as intersect, os as NativeColumnStorage, ou as ExpressionMeta, pa as RowLockClause, pc as SchemaObjectNameOptions, pi as ForeignKeyMatch, pl as qubu, po as like, pr as naturalJoin, pt as QueryRow, pu as HasSubquery, q as DialectPagination, qa as count, qc as QubuExplainableStreamingTransactionalClient, qi as IndexDialectExtension, ql as ResultShape, qn as RequiredScope, qo as ColumnOptions, qr as SchemaTableEntry, qs as GeneratedDescriptor, qt as TableUpdateInput, qu as SqlDate, rc as externalDefault, rd as SqlText, ri as CatalogCheckExpression, rl as QueryAdapter, rn as DefaultValuesSource, ro as exists, rr as SetOperator, rs as ColumnStorageTypeOf, rt as RowLockMode, ru as CardinalityMeta, sa as or, sd as SqlUnknown, si as ConstraintDialectExtension, sl as StreamingTransactionalQueryAdapter, sn as defaultValues, sr as union, su as Fragment, ta as TableIndex, tc as SqliteIdentityExtension, td as SqlOrderable, tl as QubuTransaction, tn as orderBy, to as sql, tr as recursiveCte, ts as ColumnStorageOf, tt as PortableCastTarget, tu as CapabilitiesOf, ua as SelectPart, uc as SchemaMetadataDiagnostic, ui as FieldLike, ul as execute, un as values, uo as gte, ur as fullJoin, ut as Query, uu as GroupingKeysOf, va as offset, vi as KeyConstraintOptions, vl as render, vo as between, vr as FromSource, vs as bigint, vu as NullabilityOf, wa as add, wc as ExecutionRequest, wi as SourceLike, wl as ColumnReference, wn as AllowAllClause, wr as all, wt as SourceConfig, wu as ProvidesSourceMeta, xa as AnySelectClause, xc as AdapterExecutionResult, xi as ReferentialAction, xl as QueryValidationErrorCode, xn as UpdateAssignmentValue, xo as isNotNull, xr as SelectionObject, xs as column, xt as ProvidedSourceRow, xu as OutputOf, ya as having, yi as MysqlConstraintExtension, yl as QueryTypeValidation, yo as inList, yr as from, ys as binary, yu as NullableSourceMeta, za as coalesce, zc as HookOutcome, zi as AliasIdentity, zn as correlate, zo as ColumnGeneratedOf, zs as ColumnDefaultInput, zt as TableColumns } from "./types-C0VkiwpR.mjs";
2
+ export { type AdapterExecutionResult, type AggregateDependenciesOf, type AggregateMeta, type AliasIdentity, type AliasedSource, type AllowAllClause, type AnyExpression, type AnyFragment, type AnyKeyColumn, type AnyQuery, type AnySchemaExpression, type AnySelectClause, type AnySource, type AnySqlType, type AnyTable, type AvailableOuterScope, type AvailableScope, type CanonicalLiteral, type CapabilitiesOf, type CapabilityMetadataOf, type CardinalityMeta, type CardinalityOf, type CastTarget, type CatalogCheckExpression, type CatalogCheckSql, type CheckConstraint, type CheckConstraintOptions, type ClausePlacement, type ClauseScope, type ColumnBehaviorError, type ColumnBehaviorErrorCode, type ColumnCodec, type ColumnDefault, type ColumnDefaultInput, type ColumnDefaultOf, type ColumnDefinition, type ColumnDefinitionConfig, type ColumnDependency, type ColumnGeneratedOf, type ColumnHasDefault, type ColumnHasRuntimeDefault, type ColumnIdentityOf, type ColumnInsertInput, type ColumnIsGenerated, type ColumnOnUpdateOf, type ColumnOptions, type ColumnOutput, type ColumnReference, type ColumnSqlType, type ColumnStorage, type ColumnStorageDeclarationOf, type ColumnStorageDialectOf, type ColumnStorageKindOf, type ColumnStorageOf, type ColumnStorageTypeOf, type ColumnUpdateInput, type ConstraintDialectExtension, type ConstraintOptions, type ConstraintTiming, type CteSource, type DeclaredColumnNullability, type DecodableResultType, type DefaultDescriptor, type DefaultValuesSource, type DependenciesOf, type Dialect, type DialectCapability, type DialectCastTypes, type DialectExplain, type DialectJson, type DialectOptions, type DialectPagination, type DialectRowLocking, type DriverValueEncoder, type ExecutionOptions, type ExecutionRequest, type ExecutionResult, type ExplainFormat, type ExplainMutationOptions, type ExplainOptions, type ExplainOptionsFor, type ExplainPlanRow, type ExplainReadOptions, type ExplainRenderOptions, type ExplainRequest, type ExplainResult, type ExplainableQueryAdapter, type Expression, type ExpressionDefaultDescriptor, type ExpressionGeneratedColumnDescriptor, type ExpressionKind, type ExpressionMeta, type ExpressionNullability, type ExpressionOutput, type ExpressionRequires, type ExpressionSqlType, type ExpressionWithOutput, type ExternalDefaultDescriptor, type ExternalGeneratedColumnDescriptor, type FieldLike, type FieldLikeOptions, type ForeignKeyConstraint, type ForeignKeyMatch, type ForeignKeyOptions, type ForeignKeyTarget, type ForeignKeyTargetInput, type Fragment, type FragmentMeta, type FromClause, type FromScope, type FromSource, type GeneratedColumnDescriptor, type GeneratedColumnMode, type GeneratedDescriptor, type GroupingDependenciesOf, type GroupingKeysOf, type GroupingMeta, type GroupingValidation, type HasAggregate, type HasSubquery, type HasWindow, type HookErrorOutcome, type HookMetadata, type HookMetadataValue, type HookOperation, type HookOperationKind, type HookOutcome, type HookQueryOperation, type HookStreamEnd, type HookSuccessOutcome, type HookTransactionOperation, type IdentityDescriptor, type IdentityDialectExtension, type IdentityGeneration, type IndexDialectExtension, type IndexOptions, type IndexTerm, type InheritedMetadata, type InheritedMetadataOf, type InsertSelectSource, type InsertSource, type JsonPath, type JsonScalarKind, type KeyConstraint, type KeyConstraintOptions, type LateralIdentity, type LateralSource, type LiteralDefaultDescriptor, type MetadataOf, type MissingScope, type MutationClause, type MutationKind, type MutationQuery, type MutationQueryConfig, type MutationReturning, type MutationReturningClause, type MutationRow, type MutationScopeValidation, type MutationSqlTypes, type MysqlConstraintExtension, type MysqlIdentityExtension, type MysqlIndexExtension, type NamedCastTarget, type NativeColumnStorage, type NullabilityOf, type NullableSourceMeta, type NullableSourcesOf, type Omit, type OmittableSelectClause, type OperationEndHook, type OrderTerm, type OutputOf, type PaginationKind, type PaginationPart, type PortableCastTarget, type PortableCastType, type PortableColumnStorage, type PostgresConstraintExtension, type PostgresIndexExtension, type ProvidedSourceIdentity, type ProvidedSourceRow, type ProvidesOuterOf, type ProvidesOuterSourceMeta, type ProvidesSourceMeta, type QubuClient, type QubuExplainableClient, type QubuExplainableStreamingTransactionalClient, type QubuExplainableTransactionalClient, type QubuHooks, type QubuOptions, type QubuStreamingClient, type QubuStreamingExplainableClient, type QubuStreamingTransaction, type QubuStreamingTransactionalClient, type QubuTransaction, type QubuTransactionalClient, type Query, type QueryAdapter, type QueryAliasIdentity, type QueryCardinality, type QueryConfig, type QueryExecutor, type QueryKind, type QueryRow, type QuerySource, type QuerySqlTypeMap, type QueryTypeValidation, QueryValidationError, type QueryValidationErrorCode, type QueryValidationIssue, type QueryWithRow, type RecursiveCteSource, type ReferentialAction, type RenderContext, type RenderFunction, type RenderOptions, type RenderedQuery, type RenderedSchemaExpression, type RequiredOuterScope, type RequiredScope, type RequiresCapabilityMeta, type RequiresOf, type RequiresOuterMetadataOf, type RequiresOuterOf, type RequiresOuterSourceMeta, type RequiresSourceMeta, type ResolvedColumnBehavior, type ResultDecodeContext, type ResultDecoder, type ResultDecoders, ResultDecodingError, type ResultField, type ResultMeta, type ResultShape, type ReturningClause, type ReturningRow, type ReturningSqlTypes, type Row, type RowLockClause, type RowLockMode, type RowLockOptions, type RowLockWaitPolicy, type Schema, type SchemaDiagnostic, type SchemaDialect, type SchemaDialectExtension, type SchemaDialectHooks, type SchemaDialectName, type SchemaExpression, type SchemaExpressionBrand, type SchemaExpressionErrorCode, type SchemaExpressionInput, type SchemaExpressionMode, type SchemaLiteralRenderer, type SchemaLiteralValue, type SchemaMetadataDiagnostic, type SchemaNamingPolicy, type SchemaObjectIdentity, type SchemaObjectNameOptions, type SchemaOptions, type SchemaRenderContext, type SchemaRenderOptions, type SchemaTableEntry, type SchemaTableNames, type SchemaTableRecord, type SchemaTableRegistry, type ScopeValidation, type SelectCardinality, type SelectClause, type SelectPart, type SelectQuery, type Selection, type SelectionObject, type SelectionOutput, type SelectionSqlTypes, type SetOperator, type SetQuery, type Source, type SourceColumns, type SourceConfig, type SourceConstraint, type SourceConstraints, type SourceConstraintsRecord, type SourceIdentity, type SourceIndex, type SourceIndexesRecord, type SourceKind, type SourceLike, type SourceProvision, type SourceRow, type SourceSqlTypeMap, type SqlBigInt, type SqlBinary, type SqlBoolean, type SqlDate, type SqlDecimal, type SqlEqualityComparable, type SqlEqualityCompatible, type SqlFragment, type SqlInteger, type SqlJson, type SqlNumericLike, type SqlOrderCompatible, type SqlOrderable, type SqlSemanticType, type SqlTag, type SqlText, type SqlTextLike, type SqlTimestamp, type SqlTypeOf, type SqlTypeSatisfies, type SqlUnknown, type SqlUuid, type SqliteConstraintExtension, type SqliteIdentityExtension, type SqliteIndexExtension, type StreamableQuery, type StreamingQueryAdapter, type StreamingTransactionalQueryAdapter, type SubqueryMeta, type Table, type TableColumns, type TableDefinitions, type TableIdentity, type TableIndex, type TableInsertInput, type TableLike, type TableRow, type TableSqlTypes, type TableUpdateInput, type TransactionOptions, type TransactionalQueryAdapter, type TypedSqlTag, type UniqueConstraint, type UniqueConstraintOptions, type UniqueNullSemantics, type UnsafeSchemaSqlExpression, type UpdateAssignmentValue, type UpdateAssignments, type ValuesSource, type VisibleDependenciesOf, type WindowMeta, type WithClause, add, alias, all, allowAll, and, asValue, asc, avg, between, bigint, binary, boolean, booleanResultDecoder, call, caseWhen, cast, catalogCheck, catalogForeignKey, check, coalesce, column, concat, correlate, count, countDistinct, crossJoin, cte, date, dateResultDecoder, defaultValues, deleteFrom, denseRank, desc, distinct, divide, eq, except, execute, executeRows, exists, explain, externalDefault, externalGeneratedColumn, fetchFirst, fetchNext, foreignKey, from, fullJoin, generatedColumn, groupBy, gt, gte, having, identityColumn, inList, inQuery, index, innerJoin, insertInto, insertSelect, integer, intersect, isDistinctFrom, isNotDistinctFrom, isNotNull, isNull, isTrue, json, jsonBoolean, jsonExists, jsonNumber, jsonPath, jsonText, jsonTextResultDecoder, lateral, leftJoin, like, lower, lt, lte, mapResult, max, min, modulo, multiply, nativeColumn, nativeStorage, naturalJoin, ne, not, notExists, notIn, notLike, nullable, nullsFirst, nullsLast, numeric, offset, omit, or, order, orderBy, over, portableStorage, primaryKey, qubu, rank, recursiveCte, references, render, returning, rightJoin, rowLock, rowNumber, scalar, schema, schemaCall, select, sql, stream, subtract, sum, table, text, timestamp, timestampResultDecoder, union, unionAll, unique, uniqueConstraint, unsafeSchemaSql, update, upper, uuid, value, values, where, withCte };