qubu 0.4.0 → 0.4.2

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 (103) hide show
  1. package/dist/{canonical-BbnqavJm.mjs → canonical-BXUguqfo.mjs} +23 -23
  2. package/dist/codegen.d.mts +25 -33
  3. package/dist/codegen.mjs +38 -45
  4. package/dist/column-hqKr7-1I.mjs +620 -0
  5. package/dist/{complete-D5Djh-zo.mjs → complete-WYyVozgK.mjs} +50 -50
  6. package/dist/{complete-types-BavBtv8J.d.mts → complete-types-IjEn5VPN.d.mts} +56 -56
  7. package/dist/core.d.mts +2 -2
  8. package/dist/core.mjs +4 -4
  9. package/dist/ddl.d.mts +12 -12
  10. package/dist/ddl.mjs +13 -14
  11. package/dist/{dialect-b2-Z6uBF.mjs → dialect-wUKrnPMB.mjs} +2 -2
  12. package/dist/diff.d.mts +1 -1
  13. package/dist/diff.mjs +6 -7
  14. package/dist/{index-DH0qV6aS.d.mts → index-1DpA3mUh.d.mts} +20 -20
  15. package/dist/{index-D3ZOwPT-.d.mts → index-CPvfEheG.d.mts} +13 -15
  16. package/dist/index.d.mts +1 -1
  17. package/dist/index.mjs +94 -95
  18. package/dist/introspection.d.mts +8 -8
  19. package/dist/introspection.mjs +29 -30
  20. package/dist/{json-CUZlv4HT.mjs → json-Db7XRD91.mjs} +2 -2
  21. package/dist/migration.d.mts +20 -21
  22. package/dist/migration.mjs +5 -6
  23. package/dist/{mysql-CKEKGnj4.mjs → mysql-B_cYzzX2.mjs} +237 -7
  24. package/dist/mysql.d.mts +2 -2
  25. package/dist/mysql.mjs +3 -3
  26. package/dist/{on-conflict-4MOBl51J.mjs → on-conflict-hfPW0KmQ.mjs} +3 -4
  27. package/dist/postgres.d.mts +5 -5
  28. package/dist/postgres.mjs +6 -6
  29. package/dist/{registry-CXV8u7Pt.mjs → registry-BRMLYwDp.mjs} +26 -29
  30. package/dist/{relational-DuQ9IHSb.mjs → relational-BZ3WDPzC.mjs} +2 -2
  31. package/dist/schema.d.mts +1 -1
  32. package/dist/schema.mjs +5 -6
  33. package/dist/{snapshot-DJpfmxhQ.mjs → snapshot-C-W65HEd.mjs} +5 -5
  34. package/dist/snapshot.d.mts +3 -3
  35. package/dist/snapshot.mjs +5 -7
  36. package/dist/{source-DGO3DRgg.mjs → source-BcS2AsIg.mjs} +6 -8
  37. package/dist/{serialize-CFtYYAdk.mjs → sqlite-Cg0nwYEH.mjs} +326 -12
  38. package/dist/sqlite.d.mts +1 -1
  39. package/dist/sqlite.mjs +2 -2
  40. package/dist/{standard-BTVYKh_F.mjs → standard-DfcZEVOj.mjs} +1 -1
  41. package/dist/{table-D6rcs8SB.mjs → table-Bp5irMSj.mjs} +2 -3
  42. package/dist/{types-Deo_q43Y.d.mts → types-BK1COGZe.d.mts} +1113 -1128
  43. package/dist/{types-g-vVvj1B.mjs → types-JM3FcAnX.mjs} +7 -8
  44. package/dist/{types-CSNJTYaM.d.mts → types-JSZHpUEj.d.mts} +83 -84
  45. package/dist/{value-b6OFZXVS.mjs → value-Bi71Agyf.mjs} +1 -1
  46. package/dist/vite/ambient.d.ts +309 -340
  47. package/dist/vite.d.mts +5 -6
  48. package/dist/vite.mjs +3 -4
  49. package/docs/dialects-and-execution.md +45 -55
  50. package/docs/getting-started.md +4 -4
  51. package/docs/guides/better-auth.md +57 -0
  52. package/docs/guides/compose-queries.md +24 -67
  53. package/docs/guides/drizzle.md +23 -23
  54. package/docs/guides/extensions/dialects.md +4 -4
  55. package/docs/guides/extensions/sources-and-clauses.md +15 -15
  56. package/docs/guides/extensions/typed-expressions.md +13 -17
  57. package/docs/guides/extensions/unsafe-syntax.md +3 -3
  58. package/docs/guides/json.md +7 -7
  59. package/docs/guides/mutations.md +14 -21
  60. package/docs/guides/select/conditions.md +6 -8
  61. package/docs/guides/select/grouping-and-windows.md +4 -15
  62. package/docs/guides/select/ordering-and-pagination.md +6 -19
  63. package/docs/guides/select/overview.md +12 -26
  64. package/docs/guides/sql-templates.md +20 -24
  65. package/docs/guides/vite-plugin.md +9 -13
  66. package/docs/index.md +5 -7
  67. package/docs/query-model/fragments.md +4 -15
  68. package/docs/query-model/result-shapes.md +11 -14
  69. package/docs/query-model/source-scope.md +31 -49
  70. package/docs/reference/mysql-snapshot.md +2 -5
  71. package/docs/reference/postgres-snapshot.md +3 -3
  72. package/docs/reference/sqlite-snapshot.md +2 -5
  73. package/docs/reference/supported-surface.md +26 -26
  74. package/docs/schema/catalog-model.md +2 -5
  75. package/docs/schema/code-generation.md +18 -18
  76. package/docs/schema/columns-and-writes.md +17 -25
  77. package/docs/schema/constraints-and-indexes.md +36 -52
  78. package/docs/schema/ddl-emission.md +6 -6
  79. package/docs/schema/diff.md +5 -5
  80. package/docs/schema/introspection.md +7 -7
  81. package/docs/schema/migration-plans.md +9 -9
  82. package/docs/schema/snapshots.md +3 -3
  83. package/docs/schema/storage-and-schema-sql.md +11 -11
  84. package/docs/schema/tables-and-names.md +11 -14
  85. package/docs/sql-semantic-types.md +10 -10
  86. package/docs/troubleshooting.md +10 -10
  87. package/package.json +21 -33
  88. package/skills/qubu/agents/openai.yaml +3 -3
  89. package/dist/column-D-8OqGuV.mjs +0 -328
  90. package/dist/column-LV7oGQde.mjs +0 -296
  91. package/dist/drizzle-mysql.d.mts +0 -24
  92. package/dist/drizzle-mysql.mjs +0 -72
  93. package/dist/drizzle-postgres.d.mts +0 -24
  94. package/dist/drizzle-postgres.mjs +0 -73
  95. package/dist/drizzle-sqlite.d.mts +0 -57
  96. package/dist/drizzle-sqlite.mjs +0 -108
  97. package/dist/drizzle.d.mts +0 -13
  98. package/dist/drizzle.mjs +0 -2
  99. package/dist/errors-BGCoLe_r.mjs +0 -14
  100. package/dist/postgres-BK2APkKP.mjs +0 -236
  101. package/dist/runtime-Cn_Xgzta.mjs +0 -193
  102. package/dist/sqlite-CrsK0Fza.mjs +0 -320
  103. package/dist/types-DZsueVoI.d.mts +0 -45
@@ -1,5 +1,5 @@
1
- import { Ir as SchemaDialect, T as SnapshotJsonValue, ei 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-Deo_q43Y.mjs";
2
- import { n as CompleteSchemaSnapshotInput, t as CompleteSchemaSnapshot, u as CompleteSnapshotDecodeResult } from "./complete-types-BavBtv8J.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-BK1COGZe.mjs";
2
+ import { n as CompleteSchemaSnapshotInput, t as CompleteSchemaSnapshot, u as CompleteSnapshotDecodeResult } from "./complete-types-IjEn5VPN.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,8 +13,8 @@ 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.
17
- * It is deliberately not an entity identity, signature, or migration lineage.
16
+ * Compute a small deterministic content digest for cache keys and diagnostics. It is deliberately
17
+ * not an entity identity, signature, or migration lineage.
18
18
  */
19
19
  declare function schemaSnapshotDigest(snapshot: SchemaSnapshotInput | string): string;
20
20
  //#endregion
@@ -72,9 +72,9 @@ interface SchemaSnapshotOptions {
72
72
  readonly adapter?: SchemaSnapshotAdapter;
73
73
  readonly dialect?: SchemaDialect;
74
74
  /** Explicit hook overrides retained for custom tooling integrations. */
75
- readonly expressionEncoder?: SchemaDialect['schema']['encodeExpression'];
76
- readonly storageEncoder?: SchemaDialect['schema']['encodeStorage'];
77
- readonly extensionEncoder?: SchemaDialect['schema']['encodeDialectExtension'];
75
+ readonly expressionEncoder?: SchemaDialect["schema"]["encodeExpression"];
76
+ readonly storageEncoder?: SchemaDialect["schema"]["encodeStorage"];
77
+ readonly extensionEncoder?: SchemaDialect["schema"]["encodeDialectExtension"];
78
78
  readonly namingPolicy?: {
79
79
  readonly name: string;
80
80
  readonly version?: number;
@@ -97,50 +97,50 @@ declare const digestSchemaSnapshot: typeof schemaSnapshotDigest;
97
97
  /** PostgreSQL's v1 snapshot extension identity. */
98
98
  declare const postgresSnapshotDialect: SnapshotDialect;
99
99
  /** PostgreSQL's query dialect plus its schema metadata behavior. */
100
- declare const postgresSchemaDialect: SchemaDialect<'ilike' | 'json' | 'on-conflict' | 'row-locking'>;
100
+ declare const postgresSchemaDialect: SchemaDialect<"ilike" | "json" | "on-conflict" | "row-locking">;
101
101
  /** Snapshot adapter retaining the historical adapter-shaped entry point. */
102
- declare const postgresSnapshotAdapter: SchemaSnapshotAdapter<'ilike' | 'json' | 'on-conflict' | 'row-locking'>;
102
+ declare const postgresSnapshotAdapter: SchemaSnapshotAdapter<"ilike" | "json" | "on-conflict" | "row-locking">;
103
103
  /** Create a canonical PostgreSQL schema snapshot. */
104
104
  declare function createPostgresSchemaSnapshot<TSchema extends Schema<any>>(schema: TSchema, options?: PostgresSnapshotOptions): SchemaSnapshot;
105
105
  /** Return PostgreSQL capability diagnostics without throwing. */
106
106
  declare function tryCreatePostgresSchemaSnapshot<TSchema extends Schema<any>>(schema: TSchema, options?: PostgresSnapshotOptions): SnapshotCreateResult;
107
107
  /** Options accepted by the PostgreSQL snapshot convenience functions. */
108
- type PostgresSnapshotOptions = Omit<SchemaSnapshotOptions, 'adapter' | 'dialect'>;
108
+ type PostgresSnapshotOptions = Omit<SchemaSnapshotOptions, "adapter" | "dialect">;
109
109
  //#endregion
110
110
  //#region src/snapshot/sqlite.d.ts
111
111
  /** SQLite's v1 snapshot extension identity. */
112
112
  declare const sqliteSnapshotDialect: SnapshotDialect;
113
113
  /** SQLite's five declared-type affinity categories. */
114
- type SqliteStorageAffinity = 'blob' | 'integer' | 'numeric' | 'real' | 'text';
114
+ type SqliteStorageAffinity = "blob" | "integer" | "numeric" | "real" | "text";
115
115
  /**
116
- * Resolve SQLite's declared-type affinity without changing the declaration.
117
- * SQLite applies these ordered substring rules at table creation time; the
118
- * returned affinity is useful metadata, not a replacement for the exact type.
116
+ * Resolve SQLite's declared-type affinity without changing the declaration. SQLite applies these
117
+ * ordered substring rules at table creation time; the returned affinity is useful metadata, not a
118
+ * replacement for the exact type.
119
119
  */
120
120
  declare function sqliteStorageAffinity(declaration: string): SqliteStorageAffinity;
121
121
  /** SQLite's query dialect plus its schema metadata behavior. */
122
- declare const sqliteSchemaDialect: SchemaDialect<'json' | 'on-conflict'>;
122
+ declare const sqliteSchemaDialect: SchemaDialect<"json" | "on-conflict">;
123
123
  /** Snapshot adapter retaining the historical adapter-shaped entry point. */
124
- declare const sqliteSnapshotAdapter: SchemaSnapshotAdapter<'json' | 'on-conflict'>;
124
+ declare const sqliteSnapshotAdapter: SchemaSnapshotAdapter<"json" | "on-conflict">;
125
125
  /** Create a canonical SQLite schema snapshot. */
126
126
  declare function createSqliteSchemaSnapshot<TSchema extends Schema<any>>(schema: TSchema, options?: SqliteSnapshotOptions): SchemaSnapshot;
127
127
  /** Return SQLite capability diagnostics without throwing. */
128
128
  declare function tryCreateSqliteSchemaSnapshot<TSchema extends Schema<any>>(schema: TSchema, options?: SqliteSnapshotOptions): SnapshotCreateResult;
129
129
  /** Options accepted by the SQLite snapshot convenience functions. */
130
- type SqliteSnapshotOptions = Omit<SchemaSnapshotOptions, 'adapter' | 'dialect'>;
130
+ type SqliteSnapshotOptions = Omit<SchemaSnapshotOptions, "adapter" | "dialect">;
131
131
  //#endregion
132
132
  //#region src/snapshot/mysql.d.ts
133
133
  /** MySQL's v1 snapshot extension identity. */
134
134
  declare const mysqlSnapshotDialect: SnapshotDialect;
135
135
  /** MySQL's query dialect plus its schema metadata behavior. */
136
- declare const mysqlSchemaDialect: SchemaDialect<'json' | 'row-locking'>;
136
+ declare const mysqlSchemaDialect: SchemaDialect<"json" | "row-locking">;
137
137
  /** Snapshot adapter retaining the historical adapter-shaped entry point. */
138
- declare const mysqlSnapshotAdapter: SchemaSnapshotAdapter<'json' | 'row-locking'>;
138
+ declare const mysqlSnapshotAdapter: SchemaSnapshotAdapter<"json" | "row-locking">;
139
139
  /** Create a canonical MySQL schema snapshot. */
140
140
  declare function createMysqlSchemaSnapshot<TSchema extends Schema<any>>(schema: TSchema, options?: MysqlSnapshotOptions): SchemaSnapshot;
141
141
  /** Return MySQL capability diagnostics without throwing. */
142
142
  declare function tryCreateMysqlSchemaSnapshot<TSchema extends Schema<any>>(schema: TSchema, options?: MysqlSnapshotOptions): SnapshotCreateResult;
143
143
  /** Options accepted by the MySQL snapshot convenience functions. */
144
- type MysqlSnapshotOptions = Omit<SchemaSnapshotOptions, 'adapter' | 'dialect'>;
144
+ type MysqlSnapshotOptions = Omit<SchemaSnapshotOptions, "adapter" | "dialect">;
145
145
  //#endregion
146
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 };
@@ -1,5 +1,5 @@
1
- import { T as SnapshotJsonValue, m as SnapshotDialect, n as SchemaSnapshot } from "./types-Deo_q43Y.mjs";
2
- import { S as CompleteSnapshotObjectKind, t as CompleteSchemaSnapshot } from "./complete-types-BavBtv8J.mjs";
1
+ import { T as SnapshotJsonValue, m as SnapshotDialect, n as SchemaSnapshot } from "./types-BK1COGZe.mjs";
2
+ import { S as CompleteSnapshotObjectKind, t as CompleteSchemaSnapshot } from "./complete-types-IjEn5VPN.mjs";
3
3
  //#region src/diff/types.d.ts
4
4
  /** Object families understood by the snapshot diff engine. */
5
5
  type SnapshotDiffObjectKind = CompleteSnapshotObjectKind;
@@ -17,9 +17,8 @@ interface SnapshotRenameTarget {
17
17
  /**
18
18
  * An explicit, serializable physical-rename mapping.
19
19
  *
20
- * `namespace` and `kind` are part of the key. A hint never crosses either
21
- * boundary, and a hint is only authoritative after both targets resolve to
22
- * exactly one object.
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.
23
22
  */
24
23
  interface SnapshotRenameHint {
25
24
  readonly namespace?: string;
@@ -31,7 +30,7 @@ interface SnapshotRenameHint {
31
30
  type SnapshotDiffInput = SchemaSnapshot | CompleteSchemaSnapshot | string | Readonly<Record<string, unknown>>;
32
31
  /** Evidence attached to an object, match, operation, or diagnostic. */
33
32
  interface SnapshotDiffEvidence {
34
- readonly kind: 'logical-id' | 'physical-name' | 'physical-reference' | 'provenance' | 'dialect' | 'canonical' | 'explicit-hint' | 'structural' | 'ambiguity';
33
+ readonly kind: "logical-id" | "physical-name" | "physical-reference" | "provenance" | "dialect" | "canonical" | "explicit-hint" | "structural" | "ambiguity";
35
34
  readonly path?: SnapshotDiffPath;
36
35
  readonly value?: SnapshotJsonValue;
37
36
  readonly message?: string;
@@ -67,7 +66,7 @@ interface SnapshotDiffPropertyChange {
67
66
  readonly after?: SnapshotJsonValue;
68
67
  }
69
68
  /** Categories of emitted diff operations. */
70
- type SnapshotDiffOperationType = 'add' | 'remove' | 'property-change' | 'physical-rename';
69
+ type SnapshotDiffOperationType = "add" | "remove" | "property-change" | "physical-rename";
71
70
  /** A diff operation. All variants retain both object identity and evidence. */
72
71
  interface SnapshotDiffOperation {
73
72
  readonly type: SnapshotDiffOperationType;
@@ -89,13 +88,13 @@ interface SnapshotDiffOperation {
89
88
  readonly physicalName?: string;
90
89
  readonly changedProperties?: readonly SnapshotDiffPropertyChange[];
91
90
  readonly evidence: readonly SnapshotDiffEvidence[];
92
- readonly source: 'stable-id' | 'explicit-hint';
91
+ readonly source: "stable-id" | "explicit-hint";
93
92
  readonly destructive: boolean;
94
93
  }
95
94
  /** A conservative structural match suggestion. It is never an operation. */
96
95
  interface SnapshotRenameSuggestion {
97
- readonly type: 'rename-suggestion';
98
- readonly operation: 'rename-suggestion';
96
+ readonly type: "rename-suggestion";
97
+ readonly operation: "rename-suggestion";
99
98
  readonly kind: SnapshotDiffObjectKind;
100
99
  readonly objectKind: SnapshotDiffObjectKind;
101
100
  readonly namespace?: string;
@@ -105,12 +104,12 @@ interface SnapshotRenameSuggestion {
105
104
  readonly evidence: readonly SnapshotDiffEvidence[];
106
105
  }
107
106
  /** Diagnostic categories emitted by snapshot comparison and hint validation. */
108
- type SnapshotDiffDiagnosticCode = 'ambiguous' | 'destructive' | 'unsupported' | 'unknown' | 'lossy' | 'invalid-snapshot' | 'invalid-rename-hint' | 'rename-conflict' | 'dialect-mismatch';
107
+ type SnapshotDiffDiagnosticCode = "ambiguous" | "destructive" | "unsupported" | "unknown" | "lossy" | "invalid-snapshot" | "invalid-rename-hint" | "rename-conflict" | "dialect-mismatch";
109
108
  /** A path-addressed diff diagnostic with object and dialect context. */
110
109
  interface SnapshotDiffDiagnostic {
111
110
  readonly code: SnapshotDiffDiagnosticCode;
112
111
  readonly category: SnapshotDiffDiagnosticCode;
113
- readonly severity: 'error' | 'warning';
112
+ readonly severity: "error" | "warning";
114
113
  readonly message: string;
115
114
  readonly path: SnapshotDiffPath;
116
115
  readonly relatedPaths?: readonly SnapshotDiffPath[];
@@ -181,9 +180,8 @@ type SnapshotDiffDecodeResult = {
181
180
  /**
182
181
  * Compare Snapshot v1 or v2 values and return immutable, reviewable data.
183
182
  *
184
- * The function never opens a connection, renders SQL, or turns a heuristic
185
- * match into a rename. Invalid input and malformed hints are represented by
186
- * diagnostics in the returned value.
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.
187
185
  */
188
186
  declare function diffSnapshots(beforeInput: SnapshotDiffInput, afterInput: SnapshotDiffInput, options?: SnapshotDiffOptions): SnapshotDiff;
189
187
  /** Alias that reads naturally in comparison-oriented callers. */
package/dist/index.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { $ as PaginationKind, $a as ExecutionRequest, $c as SchemaObjectNameOptions, $i as rank, $l as InheritedMetadata, $n as AvailableScope, $o as ForeignKeyTargetInput, $r as unsafeSchemaSql, $t as PostgresIndexExtension, Aa as lt, Ac as ExternalGeneratedColumnDescriptor, Ai as RowLockOptions, Al as ResultField, Ao as stream, Ar as groupBy, As as ColumnInsertInput, At as SourceSqlTypeMap, Au as SqlBoolean, B as CastTarget, Bc as SchemaLiteralValue, Bi as add, Bl as CapabilityMetadataOf, Bn as MutationReturning, Bo as CatalogCheckExpression, Bs as ColumnStorageDialectOf, Bt as TableDefinitions, Bu as SqlSemanticType, Cc as ColumnBehaviorErrorCode, Ci as or, Co as StreamingTransactionalQueryAdapter, Cr as from, Cs as ColumnDefaultOf, Ct as SourceColumns, Da as isDistinctFrom, Dc as ExpressionDefaultDescriptor, Di as omit, Dl as ResultDecoder, Do as executeRows, Dr as leftJoin, Ds as ColumnGeneratedOf, Dt as SourceKind, Du as AnySqlType, Ea as gte, Ec as DefaultDescriptor, Ei as SelectPart, El as ResultDecodeContext, Eo as execute, Er as innerJoin, Et as SourceIdentity, Fa as inList, Fc as IdentityDialectExtension, Fi as having, Fl as timestampResultDecoder, Fn as AllowAllClause, Fo as QueryTypeValidation, Fr as all, Fs as ColumnOutput, Fu as SqlInteger, G as DialectJson, Gc as generatedColumn, Gi as JsonPath, Gl as Fragment, Gn as allowAll, Go as ConstraintOptions, Gr as SchemaRenderOptions, Gs as ColumnUpdateInput, Gt as TableRow, Gu as SqlUnknown, H as DialectCapability, Hi as modulo, Hl as CardinalityOf, Hn as MutationRow, Ho as CheckConstraint, Hr as SchemaExpressionInput, Hs as ColumnStorageOf, Ht as TableInsertInput, Hu as SqlTextLike, Ia as notIn, Ic as IdentityGeneration, Ii as distinct, Il as AggregateDependenciesOf, In as MutationClause, Io as QueryValidationError, Ir as SchemaDialect, Is as ColumnSqlType, Iu as SqlJson, J as DialectRowLocking, Ja as cast, Jc as SchemaDialectExtension, Ji as jsonNumber, Jl as GroupingKeysOf, Jn as ReturningSqlTypes, Jo as FieldLikeOptions, Jt as table, K as DialectOptions, Ka as value, Kc as identityColumn, Ki as jsonBoolean, Kl as FragmentMeta, Kn as ReturningClause, Ko as ConstraintTiming, Kr as UnsafeSchemaSqlExpression, Kt as TableSqlTypes, Ku as SqlUuid, La as isNotNull, Lc as LiteralDefaultDescriptor, Li as AnySelectClause, Ll as AggregateMeta, Ln as MutationKind, Lo as QueryValidationErrorCode, Lr as SchemaDialectHooks, Ls as ColumnStorage, Lt as AnyTable, Lu as SqlNumericLike, Ma as ne, Mc as GeneratedColumnMode, Mi as fetchFirst, Ml as booleanResultDecoder, Mn as UpdateAssignmentValue, Mo as RenderOptions, Mr as SelectionObject, Mu as SqlDecimal, Na as notLike, Nc as GeneratedDescriptor, Ni as fetchNext, Nl as dateResultDecoder, Nn as UpdateAssignments, No as RenderedQuery, Nr as SelectionOutput, Ns as ColumnOnUpdateOf, Nu as SqlEqualityComparable, Oa as isNotDistinctFrom, Oc as ExpressionGeneratedColumnDescriptor, Oi as where, Ol as ResultDecoders, Oo as explain, Or as naturalJoin, Os as ColumnHasDefault, Ot as SourceProvision, Ou as SqlBigInt, Pa as between, Pc as IdentityDescriptor, Pi as offset, Pl as jsonTextResultDecoder, Pn as update, Po as render, Pr as SelectionSqlTypes, Ps as ColumnOptions, Pu as SqlEqualityCompatible, Q as NamedCastTarget, Qa as ExecutionOptions, Qc as SchemaObjectIdentity, Qi as over, Ql as HasWindow, Qn as AvailableOuterScope, Qo as ForeignKeyTarget, Qt as MysqlIndexExtension, Ra as isNull, Rc as MysqlIdentityExtension, Ri as ClausePlacement, Rl as AnyFragment, Rn as MutationQuery, Ro as QueryValidationIssue, Rs as ColumnStorageDeclarationOf, Rt as Table, Ru as SqlOrderCompatible, Sa as scalar, Sc as ColumnBehaviorError, Si as not, So as StreamingQueryAdapter, Sr as FromSource, Ss as DeclaredColumnNullability, St as Source, Su as WindowMeta, Ta as gt, Tc as ColumnDefaultInput, Ti as OmittableSelectClause, Tl as DecodableResultType, To as TransactionalQueryAdapter, Tr as fullJoin, Ts as ColumnDefinitionConfig, Tt as SourceConstraints, U as DialectCastTypes, Uc as externalDefault, Ui as multiply, Ul as DependenciesOf, Un as MutationScopeValidation, Uo as CheckConstraintOptions, Ur as SchemaExpressionMode, Uu as SqlTimestamp, V as Dialect, Vc as SqliteIdentityExtension, Vi as divide, Vl as CardinalityMeta, Vn as MutationReturningClause, Vo as CatalogCheckSql, Vr as SchemaExpressionErrorCode, Vs as ColumnStorageKindOf, Vt as TableIdentity, Vu as SqlText, W as DialectExplain, Wa as asValue, Wc as externalGeneratedColumn, Wi as subtract, Wl as ExpressionMeta, Wn as MutationSqlTypes, Wo as ConstraintDialectExtension, Wr as SchemaRenderContext, Ws as ColumnStorageTypeOf, Wu as SqlTypeSatisfies, X as ExplainRenderOptions, Xa as AdapterExecutionResult, Xc as SchemaMetadataDiagnostic, Xi as jsonText, Xl as HasAggregate, Xn as correlate, Xo as ForeignKeyMatch, Xs as PortableColumnStorage, Xt as IndexOptions, Y as ExplainFormat, Yc as SchemaDialectName, Yi as jsonPath, Yl as GroupingMeta, Yn as returning, Yo as ForeignKeyConstraint, Yt as IndexDialectExtension, Z as JsonScalarKind, Za as DriverValueEncoder, Zi as denseRank, Zl as HasSubquery, Zn as select, Zo as ForeignKeyOptions, Zt as IndexTerm, _a as sql, _c as portableStorage, _i as QueryAliasIdentity, _l as ExpressionSqlType, _n as ValuesSource, _o as QubuTransaction, _r as intersect, _s as primaryKey, _t as AnySource, _u as RequiresSourceMeta, aa as call, ac as bigint, ai as SchemaTableNames, ao as ExplainReadOptions, ar as ScopeValidation, as as SourceConstraint, at as SchemaLiteralRenderer, au as OutputOf, ba as inQuery, bc as uuid, bi as lateral, bl as SchemaExpressionBrand, bn as insertSelect, bo as QueryExecutor, br as FromClause, bs as uniqueConstraint, bt as ProvidedSourceIdentity, bu as SubqueryMeta, ca as avg, cc as column, cl as ColumnReference, cn as desc, co as ExplainableQueryAdapter, cr as CteSource, cs as SqliteConstraintExtension, cu as ProvidesSourceMeta, da as max, dc as integer, di as schema, dl as AnySchemaExpression, dn as order, do as QubuExplainableStreamingTransactionalClient, dr as cte, ds as UniqueConstraintOptions, dt as QueryConfig, du as RenderFunction, ea as rowNumber, ei as Schema, en as SourceIndex, eo as ExecutionResult, er as ClauseScope, es as KeyConstraint, et as PaginationPart, eu as InheritedMetadataOf, fa as min, fc as json, fl as Expression, fn as orderBy, fo as QubuExplainableTransactionalClient, fr as recursiveCte, fs as UniqueNullSemantics, ft as QueryKind, fu as RequiresCapabilityMeta, ga as TypedSqlTag, gc as numeric, gi as LateralSource, gl as ExpressionRequires, gn as InsertSource, go as QubuStreamingTransactionalClient, gr as except, gs as foreignKey, gt as Row, gu as RequiresOuterSourceMeta, ha as SqlTag, hc as nullable, hi as LateralIdentity, hl as ExpressionOutput, hn as InsertSelectSource, ho as QubuStreamingTransaction, hr as SetQuery, hs as check, ht as QueryWithRow, hu as RequiresOuterOf, ia as upper, ii as SchemaTableEntry, in as index, io as ExplainPlanRow, ir as RequiredScope, is as ReferentialAction, it as RowLockWaitPolicy, iu as NullableSourcesOf, ja as lte, jc as GeneratedColumnDescriptor, ji as rowLock, jl as ResultShape, jr as Selection, js as ColumnIsGenerated, ju as SqlDate, ka as like, kc as ExternalDefaultDescriptor, ki as RowLockClause, kl as ResultDecodingError, ko as qubu, kr as rightJoin, ks as ColumnIdentityOf, kt as SourceRow, ku as SqlBinary, la as count, ln as nullsFirst, lo as QubuClient, lr as RecursiveCteSource, ls as TableLike, lt as AnyQuery, lu as QueryCardinality, ma as SqlFragment, mc as nativeStorage, mi as AliasedSource, ml as ExpressionNullability, mn as DefaultValuesSource, mo as QubuStreamingExplainableClient, mr as SetOperator, ms as catalogForeignKey, mt as QuerySqlTypeMap, mu as RequiresOuterMetadataOf, na as concat, ni as SchemaNamingPolicy, nn as SqliteIndexExtension, no as ExplainOptions, nr as MissingScope, ns as MysqlConstraintExtension, nt as PortableCastType, nu as NullabilityOf, oa as schemaCall, oc as binary, oi as SchemaTableRecord, on as OrderTerm, oo as ExplainRequest, or as SelectCardinality, os as SourceConstraintsRecord, ou as ProvidesOuterOf, pa as sum, pc as nativeColumn, pi as AliasIdentity, pl as ExpressionKind, pn as deleteFrom, po as QubuStreamingClient, pr as withCte, ps as catalogCheck, pt as QueryRow, pu as RequiresOf, q as DialectPagination, qa as mapResult, qi as jsonExists, ql as GroupingDependenciesOf, qn as ReturningRow, qo as FieldLike, qs as NativeColumnStorage, qt as TableUpdateInput, ra as lower, ri as SchemaOptions, rn as TableIndex, ro as ExplainOptionsFor, rr as RequiredOuterScope, rs as PostgresConstraintExtension, rt as RowLockMode, ru as NullableSourceMeta, sc as boolean, si as SchemaTableRegistry, sl as ColumnDependency, sn as asc, so as ExplainResult, sr as SelectQuery, ss as SourceLike, su as ProvidesOuterSourceMeta, ta as coalesce, ti as SchemaDiagnostic, tn as SourceIndexesRecord, to as ExplainMutationOptions, tr as GroupingValidation, ts as KeyConstraintOptions, tt as PortableCastTarget, tu as MetadataOf, ua as countDistinct, uc as date, ul as AnyExpression, un as nullsLast, uo as QubuExplainableClient, ur as WithClause, us as UniqueConstraint, ut as Query, uu as RenderContext, va as caseWhen, vc as text, vi as QuerySource, vl as ExpressionWithOutput, vn as defaultValues, vo as QubuTransactionalClient, vr as union, vs as references, vu as ResultMeta, wa as eq, wc as ColumnDefault, wi as Omit, wo as TransactionOptions, wr as crossJoin, ws as ColumnDefinition, wt as SourceConfig, xa as notExists, xc as CanonicalLiteral, xi as and, xn as values, xo as StreamableQuery, xr as FromScope, xt as ProvidedSourceRow, xu as VisibleDependenciesOf, ya as exists, yc as timestamp, yi as alias, yl as SchemaExpression, yn as insertInto, yo as QueryAdapter, yr as unionAll, ys as unique, yu as SqlTypeOf, za as isTrue, zc as ResolvedColumnBehavior, zi as SelectClause, zl as CapabilitiesOf, zn as MutationQueryConfig, zo as AnyKeyColumn, zr as RenderedSchemaExpression, zt as TableColumns, zu as SqlOrderable } from "./types-Deo_q43Y.mjs";
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
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 };
package/dist/index.mjs CHANGED
@@ -1,14 +1,13 @@
1
- import { a as assertDialectCapability } from "./json-CUZlv4HT.mjs";
2
- import { c as render, n as call, o as cast, r as schemaCall, t as createClause } from "./types-g-vVvj1B.mjs";
1
+ import { a as assertDialectCapability } from "./json-Db7XRD91.mjs";
2
+ import { c as render, n as call, o as cast, r as schemaCall, t as createClause } from "./types-JM3FcAnX.mjs";
3
3
  import { n as queryValidationError, t as QueryValidationError } from "./errors-Dxv73YJu.mjs";
4
- import { A as dateResultDecoder, C as fragment, D as ResultDecodingError, F as resultValueOf, I as timestampResultDecoder, M as jsonTextResultDecoder, N as resultShapeValue, O as booleanResultDecoder, P as resultValue, T as parenthesize, _ as isSchemaExpression, b as markExpressionCategory, g as isExpression, h as snakeCaseIdentifier, i as identifier, j as decodeResultRow, k as createResultShape, m as resolveSqlNames, t as createColumnReference, v as makeExpression, w as isFragment, x as markSchemaExpression, y as makeSchemaExpression } from "./column-D-8OqGuV.mjs";
5
- import { S as identityColumn, b as externalGeneratedColumn, c as json, d as nullable, f as numeric, g as uuid, h as timestamp, i as column, l as nativeColumn, m as text, n as binary, o as date, p as portableStorage, r as boolean, s as integer, t as bigint, u as nativeStorage, x as generatedColumn, y as externalDefault } from "./column-LV7oGQde.mjs";
6
- import { i as value, t as asValue } from "./value-b6OFZXVS.mjs";
7
- import { a as isDistinctFrom, c as lt, d as notLike, f as expressionOperand, i as gte, l as lte, m as renderOperands, n as eq, o as isNotDistinctFrom, p as isNullOperand, r as gt, s as like, u as ne } from "./relational-DuQ9IHSb.mjs";
4
+ import { $ as dateResultDecoder, B as isSchemaExpression, D as identityColumn, E as generatedColumn, H as makeSchemaExpression, J as parenthesize, K as fragment, L as resolveSqlNames, Q as createResultShape, R as snakeCaseIdentifier, T as externalGeneratedColumn, U as markExpressionCategory, V as makeExpression, W as markSchemaExpression, X as ResultDecodingError, Z as booleanResultDecoder, _ as numeric, at as timestampResultDecoder, b as timestamp, c as boolean, d as date, et as decodeResultRow, f as integer, g as nullable, h as nativeStorage, i as identifier, it as resultValueOf, l as column, m as nativeColumn, nt as resultShapeValue, o as bigint, p as json, q as isFragment, rt as resultValue, s as binary, t as createColumnReference, tt as jsonTextResultDecoder, v as portableStorage, w as externalDefault, x as uuid, y as text, z as isExpression } from "./column-hqKr7-1I.mjs";
5
+ import { i as value, t as asValue } from "./value-Bi71Agyf.mjs";
6
+ import { a as isDistinctFrom, c as lt, d as notLike, f as expressionOperand, i as gte, l as lte, m as renderOperands, n as eq, o as isNotDistinctFrom, p as isNullOperand, r as gt, s as like, u as ne } from "./relational-BZ3WDPzC.mjs";
8
7
  import { t as omit } from "./omit-OxV58AwX.mjs";
9
- import { r as exposeColumns, t as createSource } from "./source-DGO3DRgg.mjs";
10
- import { n as alias, r as lateral, t as table } from "./table-D6rcs8SB.mjs";
11
- import { C as index, S as unsafeSchemaSql, c as check, d as references, f as unique, i as schema, l as foreignKey, o as catalogCheck, p as uniqueConstraint, s as catalogForeignKey, u as primaryKey } from "./registry-CXV8u7Pt.mjs";
8
+ import { r as exposeColumns, t as createSource } from "./source-BcS2AsIg.mjs";
9
+ import { n as alias, r as lateral, t as table } from "./table-Bp5irMSj.mjs";
10
+ import { C as index, S as unsafeSchemaSql, c as check, d as references, f as unique, i as schema, l as foreignKey, o as catalogCheck, p as uniqueConstraint, s as catalogForeignKey, u as primaryKey } from "./registry-BRMLYwDp.mjs";
12
11
  //#region src/execution.ts
13
12
  function qubu(adapter) {
14
13
  const client = createClient(adapter);
@@ -179,13 +178,13 @@ function createSqlTag() {
179
178
  const sqlTag = createSqlTag();
180
179
  sqlTag.type = createSqlTag;
181
180
  /**
182
- * Build trusted SQL syntax while binding every ordinary substitution as a
183
- * parameter. Qubu fragments remain composable substitutions.
181
+ * Build trusted SQL syntax while binding every ordinary substitution as a parameter. Qubu fragments
182
+ * remain composable substitutions.
184
183
  *
185
- * @remarks Template text is trusted and is not parsed. Use `identifier()` from
186
- * `qubu/core` for runtime identifiers and `unsafeExpression()` for deliberately
187
- * dynamic syntax. Use `sql.type<Output, SqlType>()` when the fragment's result
188
- * is known.
184
+ * @remarks
185
+ * Template text is trusted and is not parsed. Use `identifier()` from `qubu/core` for runtime
186
+ * identifiers and `unsafeExpression()` for deliberately dynamic syntax. Use `sql.type<Output,
187
+ * SqlType>()` when the fragment's result is known.
189
188
  */
190
189
  const sql = Object.freeze(sqlTag);
191
190
  function isQueryFragment(value) {
@@ -482,8 +481,8 @@ function isTrue(expression) {
482
481
  /**
483
482
  * Return every known source column as a named projection object.
484
483
  *
485
- * The result can be passed directly to `select()` or spread into a larger
486
- * projection, such as `{ ...all(users), displayName: upper(users.name) }`.
484
+ * The result can be passed directly to `select()` or spread into a larger projection, such as `{
485
+ * ...all(users), displayName: upper(users.name) }`.
487
486
  */
488
487
  function all(source) {
489
488
  return Object.freeze({ ...source.columns });
@@ -496,15 +495,76 @@ function selectionResultShape(selection) {
496
495
  })));
497
496
  }
498
497
  //#endregion
499
- //#region src/query/types.ts
500
- function createQuery(queryKind, row, resultShape, render) {
501
- return Object.freeze({
502
- queryKind,
503
- row,
504
- resultShape,
505
- ...fragment(render)
498
+ //#region src/query/clauses/pagination.ts
499
+ function toPaginationPart(clause) {
500
+ return clause.clauseKind === "offset" ? {
501
+ kind: "offset",
502
+ rows: clause.rows
503
+ } : {
504
+ kind: "fetch",
505
+ rows: clause.rows,
506
+ direction: clause.direction
507
+ };
508
+ }
509
+ function renderPagination(context, clauses) {
510
+ const parts = clauses.map(toPaginationPart);
511
+ if (context.dialect.pagination) {
512
+ context.dialect.pagination.render(context, parts);
513
+ return;
514
+ }
515
+ parts.forEach((part, index) => {
516
+ if (index > 0) context.append(" ");
517
+ if (part.kind === "offset") {
518
+ context.append("OFFSET ");
519
+ context.parameter(part.rows);
520
+ context.append(" ROWS");
521
+ } else {
522
+ context.append(`FETCH ${part.direction} `);
523
+ context.parameter(part.rows);
524
+ context.append(" ROWS ONLY");
525
+ }
506
526
  });
507
527
  }
528
+ function offset(rows) {
529
+ if (!Number.isInteger(rows) || rows < 0) throw queryValidationError({
530
+ code: "invalid-pagination",
531
+ context: "select.pagination.offset",
532
+ path: ["offset"],
533
+ message: "offset() requires a non-negative integer",
534
+ hint: "Pass a non-negative integer row count."
535
+ });
536
+ return Object.assign(createClause("offset", "after-select", 90, (context) => renderPagination(context, [{
537
+ clauseKind: "offset",
538
+ rows
539
+ }])), {
540
+ clauseKind: "offset",
541
+ rows
542
+ });
543
+ }
544
+ function fetchRows(direction, rows) {
545
+ if (!Number.isInteger(rows) || rows < 0) throw queryValidationError({
546
+ code: "invalid-pagination",
547
+ context: `select.pagination.fetch${direction === "FIRST" ? "First" : "Next"}`,
548
+ path: ["fetch", direction],
549
+ message: "fetch rows require a non-negative integer",
550
+ hint: "Pass a non-negative integer row count."
551
+ });
552
+ return Object.assign(createClause("fetch", "after-select", 100, (context) => renderPagination(context, [{
553
+ clauseKind: "fetch",
554
+ direction,
555
+ rows
556
+ }])), {
557
+ clauseKind: "fetch",
558
+ direction,
559
+ rows
560
+ });
561
+ }
562
+ function fetchFirst(rows) {
563
+ return fetchRows("FIRST", rows);
564
+ }
565
+ function fetchNext(rows) {
566
+ return fetchRows("NEXT", rows);
567
+ }
508
568
  //#endregion
509
569
  //#region src/query/select/render.ts
510
570
  function renderSelection(selection, context) {
@@ -576,76 +636,15 @@ function validateClauses(clauses) {
576
636
  }
577
637
  }
578
638
  //#endregion
579
- //#region src/query/clauses/pagination.ts
580
- function toPaginationPart(clause) {
581
- return clause.clauseKind === "offset" ? {
582
- kind: "offset",
583
- rows: clause.rows
584
- } : {
585
- kind: "fetch",
586
- rows: clause.rows,
587
- direction: clause.direction
588
- };
589
- }
590
- function renderPagination(context, clauses) {
591
- const parts = clauses.map(toPaginationPart);
592
- if (context.dialect.pagination) {
593
- context.dialect.pagination.render(context, parts);
594
- return;
595
- }
596
- parts.forEach((part, index) => {
597
- if (index > 0) context.append(" ");
598
- if (part.kind === "offset") {
599
- context.append("OFFSET ");
600
- context.parameter(part.rows);
601
- context.append(" ROWS");
602
- } else {
603
- context.append(`FETCH ${part.direction} `);
604
- context.parameter(part.rows);
605
- context.append(" ROWS ONLY");
606
- }
607
- });
608
- }
609
- function offset(rows) {
610
- if (!Number.isInteger(rows) || rows < 0) throw queryValidationError({
611
- code: "invalid-pagination",
612
- context: "select.pagination.offset",
613
- path: ["offset"],
614
- message: "offset() requires a non-negative integer",
615
- hint: "Pass a non-negative integer row count."
616
- });
617
- return Object.assign(createClause("offset", "after-select", 90, (context) => renderPagination(context, [{
618
- clauseKind: "offset",
619
- rows
620
- }])), {
621
- clauseKind: "offset",
622
- rows
623
- });
624
- }
625
- function fetchRows(direction, rows) {
626
- if (!Number.isInteger(rows) || rows < 0) throw queryValidationError({
627
- code: "invalid-pagination",
628
- context: `select.pagination.fetch${direction === "FIRST" ? "First" : "Next"}`,
629
- path: ["fetch", direction],
630
- message: "fetch rows require a non-negative integer",
631
- hint: "Pass a non-negative integer row count."
632
- });
633
- return Object.assign(createClause("fetch", "after-select", 100, (context) => renderPagination(context, [{
634
- clauseKind: "fetch",
635
- direction,
636
- rows
637
- }])), {
638
- clauseKind: "fetch",
639
- direction,
640
- rows
639
+ //#region src/query/types.ts
640
+ function createQuery(queryKind, row, resultShape, render) {
641
+ return Object.freeze({
642
+ queryKind,
643
+ row,
644
+ resultShape,
645
+ ...fragment(render)
641
646
  });
642
647
  }
643
- function fetchFirst(rows) {
644
- return fetchRows("FIRST", rows);
645
- }
646
- function fetchNext(rows) {
647
- return fetchRows("NEXT", rows);
648
- }
649
648
  //#endregion
650
649
  //#region src/query/select.ts
651
650
  function select(selection, ...parts) {
@@ -926,9 +925,9 @@ function cte(name, query) {
926
925
  return source;
927
926
  }
928
927
  /**
929
- * Define a typed recursive `WITH` source from an anchor and one recursive
930
- * member. The callback receives a forward reference that must be introduced
931
- * through the member query's normal FROM or JOIN scope.
928
+ * Define a typed recursive `WITH` source from an anchor and one recursive member. The callback
929
+ * receives a forward reference that must be introduced through the member query's normal FROM or
930
+ * JOIN scope.
932
931
  */
933
932
  function recursiveCte(name, anchor, member) {
934
933
  const reference = identifier(name);
@@ -1,10 +1,10 @@
1
- import { $ as CatalogTrigger, A as CatalogNamespace, At as CatalogQuery, B as CatalogPrimaryKeyConstraint, C as CatalogForeignKeyTarget, Ct as IntrospectionDiagnosticCode, D as CatalogIndexTerm, Dt as createIntrospectionDiagnostic, E as CatalogIndex, Et as IntrospectionError, F as CatalogOpaqueObject, G as CatalogRoutine, H as CatalogProvenanceKind, I as CatalogOwnership, J as CatalogSequence, K as CatalogRoutineParameter, L as CatalogPartition, M as CatalogObjectBase, N as CatalogObjectMetadata, O as CatalogIntrospector, Ot as hasIntrospectionErrors, P as CatalogObjectReference, Q as CatalogTable, R as CatalogPolicy, S as CatalogForeignKeyConstraint, St as IntrospectionDiagnostic, T as CatalogIdentity, Tt as IntrospectionDiagnosticSeverity, U as CatalogQueryRow, V as CatalogProvenance, W as CatalogReference, X as CatalogSqlExpression, Y as CatalogServerInfo, Z as CatalogStorageType, _ as CatalogEntityReference, _t as CatalogIdentityPolicy, a as CatalogCollation, at as CatalogView, b as CatalogExpressionFact, bt as CatalogResolvedIdentity, c as CatalogCompleteObject, ct as IntrospectionFailure, d as CatalogDeferredObject, dt as IntrospectionResult, et as CatalogUniqueConstraint, f as CatalogDeferredObjectKind, ft as IntrospectionSuccess, g as CatalogEntityKind, gt as CatalogIdentityHints, h as CatalogDomain, ht as CatalogIdentityHint, i as CatalogClassificationConfidence, it as CatalogVersion, j as CatalogObject, jt as CatalogQueryOptions, k as CatalogLiteralFact, kt as CatalogConnection, l as CatalogConstraint, lt as IntrospectionMode, m as CatalogDialectExtension, mt as CatalogIdentityFallback, n as CatalogCatalogReference, nt as CatalogUnknownObject, o as CatalogColumn, ot as CompleteIntrospectionCatalog, p as CatalogDialect, pt as CatalogIdentityEntityKind, q as CatalogScalar, r as CatalogCheckConstraint, rt as CatalogValueFact, s as CatalogComment, st as IntrospectionCatalog, t as CatalogCapabilities, tt as CatalogUnknownField, u as CatalogData, ut as IntrospectionOptions, v as CatalogEnum, vt as CatalogIdentitySource, w as CatalogGeneratedColumn, wt as IntrospectionDiagnosticInput, x as CatalogExtensionObject, xt as introspectedPhysicalIdentityPolicy, y as CatalogEnumValue, yt as CatalogPreviousSnapshotIdentitySource, z as CatalogPortableStorageType } from "./types-CSNJTYaM.mjs";
2
- import { t as CompleteSchemaSnapshot } from "./complete-types-BavBtv8J.mjs";
1
+ import { $ as CatalogTrigger, A as CatalogNamespace, At as CatalogQuery, B as CatalogPrimaryKeyConstraint, C as CatalogForeignKeyTarget, Ct as IntrospectionDiagnosticCode, D as CatalogIndexTerm, Dt as createIntrospectionDiagnostic, E as CatalogIndex, Et as IntrospectionError, F as CatalogOpaqueObject, G as CatalogRoutine, H as CatalogProvenanceKind, I as CatalogOwnership, J as CatalogSequence, K as CatalogRoutineParameter, L as CatalogPartition, M as CatalogObjectBase, N as CatalogObjectMetadata, O as CatalogIntrospector, Ot as hasIntrospectionErrors, P as CatalogObjectReference, Q as CatalogTable, R as CatalogPolicy, S as CatalogForeignKeyConstraint, St as IntrospectionDiagnostic, T as CatalogIdentity, Tt as IntrospectionDiagnosticSeverity, U as CatalogQueryRow, V as CatalogProvenance, W as CatalogReference, X as CatalogSqlExpression, Y as CatalogServerInfo, Z as CatalogStorageType, _ as CatalogEntityReference, _t as CatalogIdentityPolicy, a as CatalogCollation, at as CatalogView, b as CatalogExpressionFact, bt as CatalogResolvedIdentity, c as CatalogCompleteObject, ct as IntrospectionFailure, d as CatalogDeferredObject, dt as IntrospectionResult, et as CatalogUniqueConstraint, f as CatalogDeferredObjectKind, ft as IntrospectionSuccess, g as CatalogEntityKind, gt as CatalogIdentityHints, h as CatalogDomain, ht as CatalogIdentityHint, i as CatalogClassificationConfidence, it as CatalogVersion, j as CatalogObject, jt as CatalogQueryOptions, k as CatalogLiteralFact, kt as CatalogConnection, l as CatalogConstraint, lt as IntrospectionMode, m as CatalogDialectExtension, mt as CatalogIdentityFallback, n as CatalogCatalogReference, nt as CatalogUnknownObject, o as CatalogColumn, ot as CompleteIntrospectionCatalog, p as CatalogDialect, pt as CatalogIdentityEntityKind, q as CatalogScalar, r as CatalogCheckConstraint, rt as CatalogValueFact, s as CatalogComment, st as IntrospectionCatalog, t as CatalogCapabilities, tt as CatalogUnknownField, u as CatalogData, ut as IntrospectionOptions, v as CatalogEnum, vt as CatalogIdentitySource, w as CatalogGeneratedColumn, wt as IntrospectionDiagnosticInput, x as CatalogExtensionObject, xt as introspectedPhysicalIdentityPolicy, y as CatalogEnumValue, yt as CatalogPreviousSnapshotIdentitySource, z as CatalogPortableStorageType } from "./types-JSZHpUEj.mjs";
2
+ import { t as CompleteSchemaSnapshot } from "./complete-types-IjEn5VPN.mjs";
3
3
  //#region src/introspection/catalog.d.ts
4
4
  /**
5
- * Materialize every optional object-family collection and deeply freeze the
6
- * normalized catalog. Catalog text and extension data remain values; this
7
- * helper never evaluates SQL or assigns persisted logical identities.
5
+ * Materialize every optional object-family collection and deeply freeze the normalized catalog.
6
+ * Catalog text and extension data remain values; this helper never evaluates SQL or assigns
7
+ * persisted logical identities.
8
8
  */
9
9
  declare function createCompleteIntrospectionCatalog(catalog: IntrospectionCatalog): CompleteIntrospectionCatalog;
10
10
  /** Alias for callers that already use the normalized-catalog terminology. */
@@ -27,9 +27,9 @@ type CompleteSnapshotMappingResult = {
27
27
  readonly lossy: false;
28
28
  };
29
29
  /**
30
- * Map a normalized catalog to strict Snapshot v2 data. This is intentionally
31
- * separate from the Snapshot v1 mapper: complete objects are never fabricated
32
- * as tables, and catalog references remain evidence rather than logical IDs.
30
+ * Map a normalized catalog to strict Snapshot v2 data. This is intentionally separate from the
31
+ * Snapshot v1 mapper: complete objects are never fabricated as tables, and catalog references
32
+ * remain evidence rather than logical IDs.
33
33
  */
34
34
  declare function mapCatalogToCompleteSnapshot(input: IntrospectionCatalog): CompleteSnapshotMappingResult;
35
35
  /** Numbered alias for callers that keep both snapshot mappers available. */