qubu 0.3.5 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{canonical-BbnqavJm.mjs → canonical-BXUguqfo.mjs} +23 -23
- package/dist/codegen.d.mts +25 -33
- package/dist/codegen.mjs +38 -45
- package/dist/column-hqKr7-1I.mjs +620 -0
- package/dist/{complete-D5Djh-zo.mjs → complete-WYyVozgK.mjs} +50 -50
- package/dist/{complete-types-B2PO6wQD.d.mts → complete-types-IjEn5VPN.d.mts} +56 -56
- package/dist/core.d.mts +2 -2
- package/dist/core.mjs +4 -4
- package/dist/ddl.d.mts +12 -12
- package/dist/ddl.mjs +13 -14
- package/dist/{dialect-b2-Z6uBF.mjs → dialect-wUKrnPMB.mjs} +2 -2
- package/dist/diff.d.mts +1 -1
- package/dist/diff.mjs +6 -7
- package/dist/{index-7qc6OcIC.d.mts → index-1DpA3mUh.d.mts} +20 -20
- package/dist/{index-CqWnouTK.d.mts → index-CPvfEheG.d.mts} +13 -15
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +148 -120
- package/dist/introspection.d.mts +8 -8
- package/dist/introspection.mjs +29 -30
- package/dist/{json-CUZlv4HT.mjs → json-Db7XRD91.mjs} +2 -2
- package/dist/migration.d.mts +20 -21
- package/dist/migration.mjs +5 -6
- package/dist/{mysql-DqkqXB6A.mjs → mysql-B_cYzzX2.mjs} +237 -7
- package/dist/mysql.d.mts +1 -1
- package/dist/mysql.mjs +3 -3
- package/dist/{on-conflict-BxnxubMb.mjs → on-conflict-hfPW0KmQ.mjs} +4 -4
- package/dist/postgres.d.mts +5 -5
- package/dist/postgres.mjs +6 -6
- package/dist/{registry-BufIskVN.mjs → registry-BRMLYwDp.mjs} +27 -135
- package/dist/{relational-DCZrrNia.mjs → relational-BZ3WDPzC.mjs} +4 -4
- package/dist/schema.d.mts +2 -2
- package/dist/schema.mjs +6 -6
- package/dist/{snapshot-CWPgzxNx.mjs → snapshot-C-W65HEd.mjs} +5 -5
- package/dist/snapshot.d.mts +3 -3
- package/dist/snapshot.mjs +5 -7
- package/dist/{source-DUoJVXmL.mjs → source-BcS2AsIg.mjs} +7 -9
- package/dist/{serialize-PF1cfH2P.mjs → sqlite-Cg0nwYEH.mjs} +326 -12
- package/dist/sqlite.d.mts +2 -2
- package/dist/sqlite.mjs +2 -2
- package/dist/{standard-BTVYKh_F.mjs → standard-DfcZEVOj.mjs} +1 -1
- package/dist/{table-CCUJ60rB.mjs → table-Bp5irMSj.mjs} +5 -7
- package/dist/{types-D8M1yZF4.d.mts → types-BK1COGZe.d.mts} +2661 -2150
- package/dist/{types-Cec0xzo4.mjs → types-JM3FcAnX.mjs} +8 -8
- package/dist/{types-LBt5rclR.d.mts → types-JSZHpUEj.d.mts} +83 -84
- package/dist/{value-BvilP0oz.mjs → value-Bi71Agyf.mjs} +1 -1
- package/dist/vite/ambient.d.ts +311 -390
- package/dist/vite.d.mts +5 -6
- package/dist/vite.mjs +3 -4
- package/docs/dialects-and-execution.md +121 -81
- package/docs/getting-started.md +4 -4
- package/docs/guides/better-auth.md +57 -0
- package/docs/guides/compose-queries.md +24 -67
- package/docs/guides/drizzle.md +23 -23
- package/docs/guides/extensions/dialects.md +4 -4
- package/docs/guides/extensions/sources-and-clauses.md +15 -15
- package/docs/guides/extensions/typed-expressions.md +13 -17
- package/docs/guides/extensions/unsafe-syntax.md +3 -3
- package/docs/guides/json.md +7 -7
- package/docs/guides/mutations.md +14 -21
- package/docs/guides/select/conditions.md +6 -8
- package/docs/guides/select/grouping-and-windows.md +4 -15
- package/docs/guides/select/ordering-and-pagination.md +6 -19
- package/docs/guides/select/overview.md +12 -26
- package/docs/guides/sql-templates.md +20 -24
- package/docs/guides/vite-plugin.md +9 -13
- package/docs/index.md +5 -7
- package/docs/query-model/fragments.md +4 -15
- package/docs/query-model/result-shapes.md +11 -14
- package/docs/query-model/source-scope.md +31 -49
- package/docs/reference/mysql-snapshot.md +2 -5
- package/docs/reference/postgres-snapshot.md +3 -3
- package/docs/reference/sqlite-snapshot.md +2 -5
- package/docs/reference/supported-surface.md +33 -33
- package/docs/schema/catalog-model.md +2 -5
- package/docs/schema/code-generation.md +18 -18
- package/docs/schema/columns-and-writes.md +17 -25
- package/docs/schema/constraints-and-indexes.md +36 -52
- package/docs/schema/ddl-emission.md +6 -6
- package/docs/schema/diff.md +5 -5
- package/docs/schema/introspection.md +7 -7
- package/docs/schema/migration-plans.md +9 -9
- package/docs/schema/snapshots.md +3 -3
- package/docs/schema/storage-and-schema-sql.md +11 -11
- package/docs/schema/tables-and-names.md +11 -14
- package/docs/sql-semantic-types.md +10 -10
- package/docs/troubleshooting.md +10 -10
- package/package.json +21 -33
- package/skills/qubu/agents/openai.yaml +3 -3
- package/dist/column-CXMxx8Hq.mjs +0 -118
- package/dist/column-CYMbKbOy.mjs +0 -290
- package/dist/drizzle-mysql.d.mts +0 -24
- package/dist/drizzle-mysql.mjs +0 -72
- package/dist/drizzle-postgres.d.mts +0 -24
- package/dist/drizzle-postgres.mjs +0 -73
- package/dist/drizzle-sqlite.d.mts +0 -50
- package/dist/drizzle-sqlite.mjs +0 -108
- package/dist/drizzle.d.mts +0 -13
- package/dist/drizzle.mjs +0 -2
- package/dist/errors-BGCoLe_r.mjs +0 -14
- package/dist/naming-QVCOnSj2.mjs +0 -20
- package/dist/postgres-DEBBeh52.mjs +0 -235
- package/dist/runtime-Cn_Xgzta.mjs +0 -193
- package/dist/sqlite-BU6DBxef.mjs +0 -320
- package/dist/types-Ctlxz1ip.d.mts +0 -45
package/dist/vite/ambient.d.ts
CHANGED
|
@@ -1,449 +1,370 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Opt-in ambient declarations for files carrying the `"use qubu"` hint.
|
|
3
|
-
*
|
|
4
|
-
*
|
|
2
|
+
* Opt-in ambient declarations for files carrying the `"use qubu"` hint. Add `qubu/globals` to the
|
|
3
|
+
* project's TypeScript `types` or include this file explicitly. The Vite plugin supplies the
|
|
4
|
+
* matching runtime imports.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
declare global {
|
|
8
|
-
const add: typeof import(
|
|
9
|
-
const alias: typeof import(
|
|
10
|
-
const all: typeof import(
|
|
11
|
-
const allowAll: typeof import(
|
|
12
|
-
const and: typeof import(
|
|
13
|
-
const asc: typeof import(
|
|
14
|
-
const asValue: typeof import(
|
|
15
|
-
const avg: typeof import(
|
|
16
|
-
const bigint: typeof import(
|
|
17
|
-
const between: typeof import(
|
|
18
|
-
const binary: typeof import(
|
|
19
|
-
const boolean: typeof import(
|
|
20
|
-
const call: typeof import(
|
|
21
|
-
const caseWhen: typeof import(
|
|
22
|
-
const cast: typeof import(
|
|
23
|
-
const check: typeof import(
|
|
24
|
-
const coalesce: typeof import(
|
|
25
|
-
const column: typeof import(
|
|
26
|
-
const concat: typeof import(
|
|
27
|
-
const count: typeof import(
|
|
28
|
-
const countDistinct: typeof import(
|
|
29
|
-
const correlate: typeof import(
|
|
30
|
-
const crossJoin: typeof import(
|
|
31
|
-
const cte: typeof import(
|
|
32
|
-
const date: typeof import(
|
|
33
|
-
const denseRank: typeof import(
|
|
34
|
-
const defaultValues: typeof import(
|
|
35
|
-
const deleteFrom: typeof import(
|
|
36
|
-
const desc: typeof import(
|
|
37
|
-
const distinct: typeof import(
|
|
38
|
-
const divide: typeof import(
|
|
39
|
-
const eq: typeof import(
|
|
40
|
-
const except: typeof import(
|
|
41
|
-
const execute: typeof import(
|
|
42
|
-
const executeRows: typeof import(
|
|
43
|
-
const externalDefault: typeof import(
|
|
44
|
-
const externalGeneratedColumn: typeof import(
|
|
45
|
-
const exists: typeof import(
|
|
46
|
-
const fetchFirst: typeof import(
|
|
47
|
-
const fetchNext: typeof import(
|
|
48
|
-
const foreignKey: typeof import(
|
|
49
|
-
const from: typeof import(
|
|
50
|
-
const fullJoin: typeof import(
|
|
51
|
-
const groupBy: typeof import(
|
|
52
|
-
const generatedColumn: typeof import(
|
|
53
|
-
const gt: typeof import(
|
|
54
|
-
const gte: typeof import(
|
|
55
|
-
const having: typeof import(
|
|
56
|
-
const identityColumn: typeof import(
|
|
57
|
-
const inList: typeof import(
|
|
58
|
-
const inQuery: typeof import(
|
|
59
|
-
const index: typeof import(
|
|
60
|
-
const innerJoin: typeof import(
|
|
61
|
-
const integer: typeof import(
|
|
62
|
-
const insertInto: typeof import(
|
|
63
|
-
const insertSelect: typeof import(
|
|
64
|
-
const intersect: typeof import(
|
|
65
|
-
const isDistinctFrom: typeof import(
|
|
66
|
-
const isNotDistinctFrom: typeof import(
|
|
67
|
-
const isNotNull: typeof import(
|
|
68
|
-
const isNull: typeof import(
|
|
69
|
-
const isTrue: typeof import(
|
|
70
|
-
const json: typeof import(
|
|
71
|
-
const jsonBoolean: typeof import(
|
|
72
|
-
const jsonExists: typeof import(
|
|
73
|
-
const jsonNumber: typeof import(
|
|
74
|
-
const jsonPath: typeof import(
|
|
75
|
-
const jsonText: typeof import(
|
|
76
|
-
const leftJoin: typeof import(
|
|
77
|
-
const lateral: typeof import(
|
|
78
|
-
const like: typeof import(
|
|
79
|
-
const lower: typeof import(
|
|
80
|
-
const lt: typeof import(
|
|
81
|
-
const lte: typeof import(
|
|
82
|
-
const max: typeof import(
|
|
83
|
-
const min: typeof import(
|
|
84
|
-
const modulo: typeof import(
|
|
85
|
-
const multiply: typeof import(
|
|
86
|
-
const naturalJoin: typeof import(
|
|
87
|
-
const nativeColumn: typeof import(
|
|
88
|
-
const nativeStorage: typeof import(
|
|
89
|
-
const ne: typeof import(
|
|
90
|
-
const not: typeof import(
|
|
91
|
-
const notExists: typeof import(
|
|
92
|
-
const notIn: typeof import(
|
|
93
|
-
const notLike: typeof import(
|
|
94
|
-
const nullsFirst: typeof import(
|
|
95
|
-
const nullsLast: typeof import(
|
|
96
|
-
const numeric: typeof import(
|
|
97
|
-
const nullable: typeof import(
|
|
98
|
-
const offset: typeof import(
|
|
99
|
-
const omit: typeof import(
|
|
100
|
-
const or: typeof import(
|
|
101
|
-
const order: typeof import(
|
|
102
|
-
const orderBy: typeof import(
|
|
103
|
-
const over: typeof import(
|
|
104
|
-
const portableStorage: typeof import(
|
|
105
|
-
const primaryKey: typeof import(
|
|
106
|
-
const qubu: typeof import(
|
|
107
|
-
const references: typeof import(
|
|
108
|
-
const recursiveCte: typeof import(
|
|
109
|
-
const render: typeof import(
|
|
110
|
-
const rank: typeof import(
|
|
111
|
-
const rightJoin: typeof import(
|
|
112
|
-
const returning: typeof import(
|
|
113
|
-
const rowNumber: typeof import(
|
|
114
|
-
const scalar: typeof import(
|
|
115
|
-
const schema: typeof import(
|
|
116
|
-
const schemaCall: typeof import(
|
|
117
|
-
const select: typeof import(
|
|
118
|
-
const sql: typeof import(
|
|
119
|
-
const stream: typeof import(
|
|
120
|
-
const subtract: typeof import(
|
|
121
|
-
const sum: typeof import(
|
|
122
|
-
const table: typeof import(
|
|
123
|
-
const text: typeof import(
|
|
124
|
-
const timestamp: typeof import(
|
|
125
|
-
const union: typeof import(
|
|
126
|
-
const unionAll: typeof import(
|
|
127
|
-
const unique: typeof import(
|
|
128
|
-
const update: typeof import(
|
|
129
|
-
const upper: typeof import(
|
|
130
|
-
const value: typeof import(
|
|
131
|
-
const values: typeof import(
|
|
132
|
-
const where: typeof import(
|
|
133
|
-
const withCte: typeof import(
|
|
134
|
-
const uuid: typeof import(
|
|
8
|
+
const add: typeof import("qubu").add
|
|
9
|
+
const alias: typeof import("qubu").alias
|
|
10
|
+
const all: typeof import("qubu").all
|
|
11
|
+
const allowAll: typeof import("qubu").allowAll
|
|
12
|
+
const and: typeof import("qubu").and
|
|
13
|
+
const asc: typeof import("qubu").asc
|
|
14
|
+
const asValue: typeof import("qubu").asValue
|
|
15
|
+
const avg: typeof import("qubu").avg
|
|
16
|
+
const bigint: typeof import("qubu").bigint
|
|
17
|
+
const between: typeof import("qubu").between
|
|
18
|
+
const binary: typeof import("qubu").binary
|
|
19
|
+
const boolean: typeof import("qubu").boolean
|
|
20
|
+
const call: typeof import("qubu").call
|
|
21
|
+
const caseWhen: typeof import("qubu").caseWhen
|
|
22
|
+
const cast: typeof import("qubu").cast
|
|
23
|
+
const check: typeof import("qubu").check
|
|
24
|
+
const coalesce: typeof import("qubu").coalesce
|
|
25
|
+
const column: typeof import("qubu").column
|
|
26
|
+
const concat: typeof import("qubu").concat
|
|
27
|
+
const count: typeof import("qubu").count
|
|
28
|
+
const countDistinct: typeof import("qubu").countDistinct
|
|
29
|
+
const correlate: typeof import("qubu").correlate
|
|
30
|
+
const crossJoin: typeof import("qubu").crossJoin
|
|
31
|
+
const cte: typeof import("qubu").cte
|
|
32
|
+
const date: typeof import("qubu").date
|
|
33
|
+
const denseRank: typeof import("qubu").denseRank
|
|
34
|
+
const defaultValues: typeof import("qubu").defaultValues
|
|
35
|
+
const deleteFrom: typeof import("qubu").deleteFrom
|
|
36
|
+
const desc: typeof import("qubu").desc
|
|
37
|
+
const distinct: typeof import("qubu").distinct
|
|
38
|
+
const divide: typeof import("qubu").divide
|
|
39
|
+
const eq: typeof import("qubu").eq
|
|
40
|
+
const except: typeof import("qubu").except
|
|
41
|
+
const execute: typeof import("qubu").execute
|
|
42
|
+
const executeRows: typeof import("qubu").executeRows
|
|
43
|
+
const externalDefault: typeof import("qubu").externalDefault
|
|
44
|
+
const externalGeneratedColumn: typeof import("qubu").externalGeneratedColumn
|
|
45
|
+
const exists: typeof import("qubu").exists
|
|
46
|
+
const fetchFirst: typeof import("qubu").fetchFirst
|
|
47
|
+
const fetchNext: typeof import("qubu").fetchNext
|
|
48
|
+
const foreignKey: typeof import("qubu").foreignKey
|
|
49
|
+
const from: typeof import("qubu").from
|
|
50
|
+
const fullJoin: typeof import("qubu").fullJoin
|
|
51
|
+
const groupBy: typeof import("qubu").groupBy
|
|
52
|
+
const generatedColumn: typeof import("qubu").generatedColumn
|
|
53
|
+
const gt: typeof import("qubu").gt
|
|
54
|
+
const gte: typeof import("qubu").gte
|
|
55
|
+
const having: typeof import("qubu").having
|
|
56
|
+
const identityColumn: typeof import("qubu").identityColumn
|
|
57
|
+
const inList: typeof import("qubu").inList
|
|
58
|
+
const inQuery: typeof import("qubu").inQuery
|
|
59
|
+
const index: typeof import("qubu").index
|
|
60
|
+
const innerJoin: typeof import("qubu").innerJoin
|
|
61
|
+
const integer: typeof import("qubu").integer
|
|
62
|
+
const insertInto: typeof import("qubu").insertInto
|
|
63
|
+
const insertSelect: typeof import("qubu").insertSelect
|
|
64
|
+
const intersect: typeof import("qubu").intersect
|
|
65
|
+
const isDistinctFrom: typeof import("qubu").isDistinctFrom
|
|
66
|
+
const isNotDistinctFrom: typeof import("qubu").isNotDistinctFrom
|
|
67
|
+
const isNotNull: typeof import("qubu").isNotNull
|
|
68
|
+
const isNull: typeof import("qubu").isNull
|
|
69
|
+
const isTrue: typeof import("qubu").isTrue
|
|
70
|
+
const json: typeof import("qubu").json
|
|
71
|
+
const jsonBoolean: typeof import("qubu").jsonBoolean
|
|
72
|
+
const jsonExists: typeof import("qubu").jsonExists
|
|
73
|
+
const jsonNumber: typeof import("qubu").jsonNumber
|
|
74
|
+
const jsonPath: typeof import("qubu").jsonPath
|
|
75
|
+
const jsonText: typeof import("qubu").jsonText
|
|
76
|
+
const leftJoin: typeof import("qubu").leftJoin
|
|
77
|
+
const lateral: typeof import("qubu").lateral
|
|
78
|
+
const like: typeof import("qubu").like
|
|
79
|
+
const lower: typeof import("qubu").lower
|
|
80
|
+
const lt: typeof import("qubu").lt
|
|
81
|
+
const lte: typeof import("qubu").lte
|
|
82
|
+
const max: typeof import("qubu").max
|
|
83
|
+
const min: typeof import("qubu").min
|
|
84
|
+
const modulo: typeof import("qubu").modulo
|
|
85
|
+
const multiply: typeof import("qubu").multiply
|
|
86
|
+
const naturalJoin: typeof import("qubu").naturalJoin
|
|
87
|
+
const nativeColumn: typeof import("qubu").nativeColumn
|
|
88
|
+
const nativeStorage: typeof import("qubu").nativeStorage
|
|
89
|
+
const ne: typeof import("qubu").ne
|
|
90
|
+
const not: typeof import("qubu").not
|
|
91
|
+
const notExists: typeof import("qubu").notExists
|
|
92
|
+
const notIn: typeof import("qubu").notIn
|
|
93
|
+
const notLike: typeof import("qubu").notLike
|
|
94
|
+
const nullsFirst: typeof import("qubu").nullsFirst
|
|
95
|
+
const nullsLast: typeof import("qubu").nullsLast
|
|
96
|
+
const numeric: typeof import("qubu").numeric
|
|
97
|
+
const nullable: typeof import("qubu").nullable
|
|
98
|
+
const offset: typeof import("qubu").offset
|
|
99
|
+
const omit: typeof import("qubu").omit
|
|
100
|
+
const or: typeof import("qubu").or
|
|
101
|
+
const order: typeof import("qubu").order
|
|
102
|
+
const orderBy: typeof import("qubu").orderBy
|
|
103
|
+
const over: typeof import("qubu").over
|
|
104
|
+
const portableStorage: typeof import("qubu").portableStorage
|
|
105
|
+
const primaryKey: typeof import("qubu").primaryKey
|
|
106
|
+
const qubu: typeof import("qubu").qubu
|
|
107
|
+
const references: typeof import("qubu").references
|
|
108
|
+
const recursiveCte: typeof import("qubu").recursiveCte
|
|
109
|
+
const render: typeof import("qubu").render
|
|
110
|
+
const rank: typeof import("qubu").rank
|
|
111
|
+
const rightJoin: typeof import("qubu").rightJoin
|
|
112
|
+
const returning: typeof import("qubu").returning
|
|
113
|
+
const rowNumber: typeof import("qubu").rowNumber
|
|
114
|
+
const scalar: typeof import("qubu").scalar
|
|
115
|
+
const schema: typeof import("qubu").schema
|
|
116
|
+
const schemaCall: typeof import("qubu").schemaCall
|
|
117
|
+
const select: typeof import("qubu").select
|
|
118
|
+
const sql: typeof import("qubu").sql
|
|
119
|
+
const stream: typeof import("qubu").stream
|
|
120
|
+
const subtract: typeof import("qubu").subtract
|
|
121
|
+
const sum: typeof import("qubu").sum
|
|
122
|
+
const table: typeof import("qubu").table
|
|
123
|
+
const text: typeof import("qubu").text
|
|
124
|
+
const timestamp: typeof import("qubu").timestamp
|
|
125
|
+
const union: typeof import("qubu").union
|
|
126
|
+
const unionAll: typeof import("qubu").unionAll
|
|
127
|
+
const unique: typeof import("qubu").unique
|
|
128
|
+
const update: typeof import("qubu").update
|
|
129
|
+
const upper: typeof import("qubu").upper
|
|
130
|
+
const value: typeof import("qubu").value
|
|
131
|
+
const values: typeof import("qubu").values
|
|
132
|
+
const where: typeof import("qubu").where
|
|
133
|
+
const withCte: typeof import("qubu").withCte
|
|
134
|
+
const uuid: typeof import("qubu").uuid
|
|
135
135
|
|
|
136
|
-
type
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
TIdentity extends import('qubu').IdentityDescriptor | undefined =
|
|
152
|
-
| import('qubu').IdentityDescriptor
|
|
153
|
-
| undefined,
|
|
154
|
-
TOnUpdate extends import('qubu').AnySchemaExpression | undefined =
|
|
155
|
-
| import('qubu').AnySchemaExpression
|
|
156
|
-
| undefined,
|
|
157
|
-
> = import('qubu').ColumnDefinition<
|
|
158
|
-
TOutput,
|
|
159
|
-
TNullable,
|
|
160
|
-
TInsert,
|
|
161
|
-
TUpdate,
|
|
162
|
-
THasDefault,
|
|
163
|
-
TGenerated,
|
|
164
|
-
TSqlType,
|
|
165
|
-
TStorage,
|
|
166
|
-
TDefault,
|
|
167
|
-
TGeneratedColumn,
|
|
168
|
-
TIdentity,
|
|
169
|
-
TOnUpdate
|
|
170
|
-
>
|
|
171
|
-
type ColumnSqlType<T> = import('qubu').ColumnSqlType<T>
|
|
172
|
-
type ColumnDefault = import('qubu').ColumnDefault
|
|
173
|
-
type ColumnDefaultInput = import('qubu').ColumnDefaultInput
|
|
174
|
-
type ColumnDefaultOf<T> = import('qubu').ColumnDefaultOf<T>
|
|
175
|
-
type ColumnGeneratedOf<T> = import('qubu').ColumnGeneratedOf<T>
|
|
176
|
-
type ColumnIdentityOf<T> = import('qubu').ColumnIdentityOf<T>
|
|
177
|
-
type ColumnOnUpdateOf<T> = import('qubu').ColumnOnUpdateOf<T>
|
|
178
|
-
type GeneratedColumnDescriptor = import('qubu').GeneratedColumnDescriptor
|
|
179
|
-
type IdentityDescriptor = import('qubu').IdentityDescriptor
|
|
180
|
-
type MysqlIdentityExtension = import('qubu').MysqlIdentityExtension
|
|
181
|
-
type ColumnStorage = import('qubu').ColumnStorage
|
|
182
|
-
type PortableColumnStorage = import('qubu').PortableColumnStorage
|
|
136
|
+
type ColumnDefinitionConfig = import("qubu").ColumnDefinitionConfig
|
|
137
|
+
type ColumnDefinition<TConfig extends ColumnDefinitionConfig = {}> =
|
|
138
|
+
import("qubu").ColumnDefinition<TConfig>
|
|
139
|
+
type ColumnSqlType<T> = import("qubu").ColumnSqlType<T>
|
|
140
|
+
type ColumnDefault = import("qubu").ColumnDefault
|
|
141
|
+
type ColumnDefaultInput = import("qubu").ColumnDefaultInput
|
|
142
|
+
type ColumnDefaultOf<T> = import("qubu").ColumnDefaultOf<T>
|
|
143
|
+
type ColumnGeneratedOf<T> = import("qubu").ColumnGeneratedOf<T>
|
|
144
|
+
type ColumnIdentityOf<T> = import("qubu").ColumnIdentityOf<T>
|
|
145
|
+
type ColumnOnUpdateOf<T> = import("qubu").ColumnOnUpdateOf<T>
|
|
146
|
+
type GeneratedColumnDescriptor = import("qubu").GeneratedColumnDescriptor
|
|
147
|
+
type IdentityDescriptor = import("qubu").IdentityDescriptor
|
|
148
|
+
type MysqlIdentityExtension = import("qubu").MysqlIdentityExtension
|
|
149
|
+
type ColumnStorage = import("qubu").ColumnStorage
|
|
150
|
+
type PortableColumnStorage = import("qubu").PortableColumnStorage
|
|
183
151
|
type NativeColumnStorage<
|
|
184
152
|
TDialect extends string = string,
|
|
185
153
|
TDeclaration extends string = string,
|
|
186
|
-
> = import(
|
|
187
|
-
type ColumnStorageOf<T> = import(
|
|
188
|
-
type ColumnStorageTypeOf<T> = import(
|
|
189
|
-
type ColumnStorageDialectOf<T> = import(
|
|
190
|
-
type ColumnStorageDeclarationOf<T> =
|
|
191
|
-
|
|
192
|
-
type ColumnStorageKindOf<T> = import('qubu').ColumnStorageKindOf<T>
|
|
154
|
+
> = import("qubu").NativeColumnStorage<TDialect, TDeclaration>
|
|
155
|
+
type ColumnStorageOf<T> = import("qubu").ColumnStorageOf<T>
|
|
156
|
+
type ColumnStorageTypeOf<T> = import("qubu").ColumnStorageTypeOf<T>
|
|
157
|
+
type ColumnStorageDialectOf<T> = import("qubu").ColumnStorageDialectOf<T>
|
|
158
|
+
type ColumnStorageDeclarationOf<T> = import("qubu").ColumnStorageDeclarationOf<T>
|
|
159
|
+
type ColumnStorageKindOf<T> = import("qubu").ColumnStorageKindOf<T>
|
|
193
160
|
type ColumnReference<
|
|
194
161
|
TName extends string = string,
|
|
195
162
|
TMetadata = never,
|
|
196
|
-
> = import(
|
|
163
|
+
> = import("qubu").ColumnReference<TName, TMetadata>
|
|
197
164
|
type Dialect<
|
|
198
|
-
TCapabilities extends
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
type
|
|
202
|
-
type
|
|
203
|
-
type PortableCastType = import('qubu').PortableCastType
|
|
165
|
+
TCapabilities extends import("qubu").DialectCapability = import("qubu").DialectCapability,
|
|
166
|
+
> = import("qubu").Dialect<TCapabilities>
|
|
167
|
+
type DialectCapability = import("qubu").DialectCapability
|
|
168
|
+
type DialectJson = import("qubu").DialectJson
|
|
169
|
+
type PortableCastType = import("qubu").PortableCastType
|
|
204
170
|
type PortableCastTarget<
|
|
205
|
-
TType extends
|
|
206
|
-
|
|
207
|
-
> = import('qubu').PortableCastTarget<TType>
|
|
171
|
+
TType extends import("qubu").PortableCastType = import("qubu").PortableCastType,
|
|
172
|
+
> = import("qubu").PortableCastTarget<TType>
|
|
208
173
|
type NamedCastTarget<TTypeName extends string = string> =
|
|
209
|
-
import(
|
|
210
|
-
type CastTarget = import(
|
|
211
|
-
type DialectCastTypes = import(
|
|
174
|
+
import("qubu").NamedCastTarget<TTypeName>
|
|
175
|
+
type CastTarget = import("qubu").CastTarget
|
|
176
|
+
type DialectCastTypes = import("qubu").DialectCastTypes
|
|
212
177
|
type Expression<
|
|
213
178
|
TMetadata = any,
|
|
214
|
-
TKind extends import(
|
|
215
|
-
> = import(
|
|
216
|
-
type Fragment<TMetadata = any> = import(
|
|
217
|
-
type FragmentMeta = import(
|
|
218
|
-
type JsonPath<
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
)[],
|
|
223
|
-
> = import('qubu').JsonPath<TSegments>
|
|
224
|
-
type JsonScalarKind = import('qubu').JsonScalarKind
|
|
225
|
-
type QueryCardinality = import('qubu').QueryCardinality
|
|
179
|
+
TKind extends import("qubu").ExpressionKind = import("qubu").ExpressionKind,
|
|
180
|
+
> = import("qubu").Expression<TMetadata, TKind>
|
|
181
|
+
type Fragment<TMetadata = any> = import("qubu").Fragment<TMetadata>
|
|
182
|
+
type FragmentMeta = import("qubu").FragmentMeta
|
|
183
|
+
type JsonPath<TSegments extends readonly (string | number)[] = readonly (string | number)[]> =
|
|
184
|
+
import("qubu").JsonPath<TSegments>
|
|
185
|
+
type JsonScalarKind = import("qubu").JsonScalarKind
|
|
186
|
+
type QueryCardinality = import("qubu").QueryCardinality
|
|
226
187
|
type CardinalityMeta<
|
|
227
|
-
TCardinality extends
|
|
228
|
-
|
|
229
|
-
> = import(
|
|
230
|
-
type
|
|
231
|
-
type
|
|
232
|
-
type
|
|
233
|
-
type
|
|
234
|
-
type
|
|
235
|
-
type WindowMeta = import('qubu').WindowMeta
|
|
188
|
+
TCardinality extends import("qubu").QueryCardinality = import("qubu").QueryCardinality,
|
|
189
|
+
> = import("qubu").CardinalityMeta<TCardinality>
|
|
190
|
+
type CardinalityOf<T> = import("qubu").CardinalityOf<T>
|
|
191
|
+
type CapabilitiesOf<T> = import("qubu").CapabilitiesOf<T>
|
|
192
|
+
type HasSubquery<T> = import("qubu").HasSubquery<T>
|
|
193
|
+
type HasWindow<T> = import("qubu").HasWindow<T>
|
|
194
|
+
type SubqueryMeta = import("qubu").SubqueryMeta
|
|
195
|
+
type WindowMeta = import("qubu").WindowMeta
|
|
236
196
|
type ResultMeta<
|
|
237
197
|
TOutput,
|
|
238
198
|
TNullableFrom = never,
|
|
239
|
-
TSqlType extends import(
|
|
240
|
-
> = import(
|
|
241
|
-
type SqlTypeOf<T> = import(
|
|
242
|
-
type SqlSemanticType<TName extends string = string> =
|
|
243
|
-
|
|
244
|
-
type
|
|
245
|
-
type
|
|
246
|
-
type
|
|
247
|
-
type
|
|
248
|
-
type
|
|
249
|
-
type
|
|
250
|
-
|
|
251
|
-
type
|
|
252
|
-
type
|
|
253
|
-
type
|
|
254
|
-
type
|
|
255
|
-
type
|
|
256
|
-
type
|
|
257
|
-
type
|
|
258
|
-
type
|
|
259
|
-
type SqlBigInt = import('qubu').SqlBigInt
|
|
260
|
-
type SqlBinary = import('qubu').SqlBinary
|
|
199
|
+
TSqlType extends import("qubu").AnySqlType = import("qubu").SqlUnknown,
|
|
200
|
+
> = import("qubu").ResultMeta<TOutput, TNullableFrom, TSqlType>
|
|
201
|
+
type SqlTypeOf<T> = import("qubu").SqlTypeOf<T>
|
|
202
|
+
type SqlSemanticType<TName extends string = string> = import("qubu").SqlSemanticType<TName>
|
|
203
|
+
type AnySqlType = import("qubu").AnySqlType
|
|
204
|
+
type SqlUnknown = import("qubu").SqlUnknown
|
|
205
|
+
type SqlTextLike = import("qubu").SqlTextLike
|
|
206
|
+
type SqlNumericLike = import("qubu").SqlNumericLike
|
|
207
|
+
type SqlOrderable<TGroup = unknown> = import("qubu").SqlOrderable<TGroup>
|
|
208
|
+
type SqlEqualityComparable<TGroup = unknown> = import("qubu").SqlEqualityComparable<TGroup>
|
|
209
|
+
type SqlText = import("qubu").SqlText
|
|
210
|
+
type SqlUuid = import("qubu").SqlUuid
|
|
211
|
+
type SqlInteger = import("qubu").SqlInteger
|
|
212
|
+
type SqlDecimal = import("qubu").SqlDecimal
|
|
213
|
+
type SqlBoolean = import("qubu").SqlBoolean
|
|
214
|
+
type SqlDate = import("qubu").SqlDate
|
|
215
|
+
type SqlTimestamp = import("qubu").SqlTimestamp
|
|
216
|
+
type SqlJson<TValue = unknown> = import("qubu").SqlJson<TValue>
|
|
217
|
+
type SqlBigInt = import("qubu").SqlBigInt
|
|
218
|
+
type SqlBinary = import("qubu").SqlBinary
|
|
261
219
|
type SqlFragment<
|
|
262
220
|
TOutput = unknown,
|
|
263
|
-
TSqlType extends import(
|
|
264
|
-
TChild extends import(
|
|
265
|
-
> = import(
|
|
266
|
-
type SqlTag = import(
|
|
221
|
+
TSqlType extends import("qubu").AnySqlType = import("qubu").SqlUnknown,
|
|
222
|
+
TChild extends import("qubu").AnyFragment = never,
|
|
223
|
+
> = import("qubu").SqlFragment<TOutput, TSqlType, TChild>
|
|
224
|
+
type SqlTag = import("qubu").SqlTag
|
|
267
225
|
type TypedSqlTag<
|
|
268
226
|
TOutput,
|
|
269
|
-
TSqlType extends import(
|
|
270
|
-
> = import(
|
|
271
|
-
type SqlTypeSatisfies<TActual, TConstraint> = import(
|
|
227
|
+
TSqlType extends import("qubu").AnySqlType = import("qubu").SqlUnknown,
|
|
228
|
+
> = import("qubu").TypedSqlTag<TOutput, TSqlType>
|
|
229
|
+
type SqlTypeSatisfies<TActual, TConstraint> = import("qubu").SqlTypeSatisfies<
|
|
272
230
|
TActual,
|
|
273
231
|
TConstraint
|
|
274
232
|
>
|
|
275
|
-
type SqlEqualityCompatible<TLeft, TRight> =
|
|
276
|
-
|
|
277
|
-
type SqlOrderCompatible<TLeft, TRight> = import('qubu').SqlOrderCompatible<
|
|
278
|
-
TLeft,
|
|
279
|
-
TRight
|
|
280
|
-
>
|
|
233
|
+
type SqlEqualityCompatible<TLeft, TRight> = import("qubu").SqlEqualityCompatible<TLeft, TRight>
|
|
234
|
+
type SqlOrderCompatible<TLeft, TRight> = import("qubu").SqlOrderCompatible<TLeft, TRight>
|
|
281
235
|
type FieldLike<
|
|
282
|
-
TOptions extends
|
|
283
|
-
|
|
284
|
-
> = import(
|
|
285
|
-
type
|
|
286
|
-
type
|
|
287
|
-
type
|
|
288
|
-
type
|
|
289
|
-
|
|
290
|
-
type ProvidesOuterSourceMeta<TSource> =
|
|
291
|
-
import('qubu').ProvidesOuterSourceMeta<TSource>
|
|
292
|
-
type NullableSourceMeta<TSource> = import('qubu').NullableSourceMeta<TSource>
|
|
236
|
+
TOptions extends import("qubu").FieldLikeOptions = import("qubu").FieldLikeOptions,
|
|
237
|
+
> = import("qubu").FieldLike<TOptions>
|
|
238
|
+
type SourceLike<TShape extends object> = import("qubu").SourceLike<TShape>
|
|
239
|
+
type TableLike<TShape extends object> = import("qubu").TableLike<TShape>
|
|
240
|
+
type RequiresSourceMeta<TSource> = import("qubu").RequiresSourceMeta<TSource>
|
|
241
|
+
type RequiresOuterSourceMeta<TSource> = import("qubu").RequiresOuterSourceMeta<TSource>
|
|
242
|
+
type ProvidesOuterSourceMeta<TSource> = import("qubu").ProvidesOuterSourceMeta<TSource>
|
|
243
|
+
type NullableSourceMeta<TSource> = import("qubu").NullableSourceMeta<TSource>
|
|
293
244
|
type RequiresCapabilityMeta<
|
|
294
|
-
TCapability extends
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
type
|
|
298
|
-
type ExecutionRequest = import('qubu').ExecutionRequest
|
|
245
|
+
TCapability extends import("qubu").DialectCapability = import("qubu").DialectCapability,
|
|
246
|
+
> = import("qubu").RequiresCapabilityMeta<TCapability>
|
|
247
|
+
type ExecutionOptions = import("qubu").ExecutionOptions
|
|
248
|
+
type ExecutionRequest = import("qubu").ExecutionRequest
|
|
299
249
|
type ExecutionResult<TRow extends object = Record<string, unknown>> =
|
|
300
|
-
import(
|
|
301
|
-
type QubuClient<
|
|
302
|
-
|
|
303
|
-
> = import('qubu').QubuClient<TAdapter>
|
|
250
|
+
import("qubu").ExecutionResult<TRow>
|
|
251
|
+
type QubuClient<TAdapter extends import("qubu").QueryAdapter = import("qubu").QueryAdapter> =
|
|
252
|
+
import("qubu").QubuClient<TAdapter>
|
|
304
253
|
type QubuStreamingClient<
|
|
305
|
-
TAdapter extends
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
type QubuStreamingTransaction = import('qubu').QubuStreamingTransaction
|
|
254
|
+
TAdapter extends import("qubu").StreamingQueryAdapter = import("qubu").StreamingQueryAdapter,
|
|
255
|
+
> = import("qubu").QubuStreamingClient<TAdapter>
|
|
256
|
+
type QubuStreamingTransaction = import("qubu").QubuStreamingTransaction
|
|
309
257
|
type QubuStreamingTransactionalClient<
|
|
310
|
-
TAdapter extends
|
|
311
|
-
import(
|
|
312
|
-
> = import(
|
|
313
|
-
type QueryAdapter = import(
|
|
258
|
+
TAdapter extends import("qubu").StreamingTransactionalQueryAdapter =
|
|
259
|
+
import("qubu").StreamingTransactionalQueryAdapter,
|
|
260
|
+
> = import("qubu").QubuStreamingTransactionalClient<TAdapter>
|
|
261
|
+
type QueryAdapter = import("qubu").QueryAdapter
|
|
314
262
|
type StreamableQuery<TRow extends object = Record<string, unknown>> =
|
|
315
|
-
import(
|
|
316
|
-
type StreamingQueryAdapter = import(
|
|
317
|
-
type StreamingTransactionalQueryAdapter =
|
|
318
|
-
|
|
319
|
-
type
|
|
320
|
-
type MutationQuery<
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
> = import(
|
|
325
|
-
type
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
type
|
|
332
|
-
TRow extends object = Record<string, unknown>,
|
|
333
|
-
TCardinality extends
|
|
334
|
-
import('qubu').QueryCardinality = import('qubu').QueryCardinality,
|
|
335
|
-
TMetadata = never,
|
|
336
|
-
> = import('qubu').SelectQuery<TRow, TCardinality, TMetadata>
|
|
337
|
-
type Source<
|
|
338
|
-
TIdentity = unknown,
|
|
339
|
-
TRow extends object = Record<string, unknown>,
|
|
340
|
-
TMetadata = never,
|
|
341
|
-
TSqlTypes extends {
|
|
342
|
-
readonly [K in keyof TRow]: import('qubu').AnySqlType
|
|
343
|
-
} = { readonly [K in keyof TRow]: import('qubu').SqlUnknown },
|
|
344
|
-
TConstraints extends import('qubu').SourceConstraintsRecord = {},
|
|
345
|
-
> = import('qubu').Source<TIdentity, TRow, TMetadata, TSqlTypes, TConstraints>
|
|
346
|
-
type SourceConstraint = import('qubu').SourceConstraint
|
|
347
|
-
type SourceConstraintsRecord = import('qubu').SourceConstraintsRecord
|
|
348
|
-
type SourceIndexesRecord = import('qubu').SourceIndexesRecord
|
|
349
|
-
type SourceIndex = import('qubu').SourceIndex
|
|
350
|
-
type SchemaDialect = import('qubu').SchemaDialect
|
|
263
|
+
import("qubu").StreamableQuery<TRow>
|
|
264
|
+
type StreamingQueryAdapter = import("qubu").StreamingQueryAdapter
|
|
265
|
+
type StreamingTransactionalQueryAdapter = import("qubu").StreamingTransactionalQueryAdapter
|
|
266
|
+
type RenderedQuery = import("qubu").RenderedQuery
|
|
267
|
+
type MutationQueryConfig = import("qubu").MutationQueryConfig
|
|
268
|
+
type MutationQuery<TConfig extends MutationQueryConfig = {}> =
|
|
269
|
+
import("qubu").MutationQuery<TConfig>
|
|
270
|
+
type QueryConfig = import("qubu").QueryConfig
|
|
271
|
+
type Query<TConfig extends QueryConfig = {}> = import("qubu").Query<TConfig>
|
|
272
|
+
type SelectQuery<TConfig extends QueryConfig = {}> = import("qubu").SelectQuery<TConfig>
|
|
273
|
+
type SourceConfig = import("qubu").SourceConfig
|
|
274
|
+
type Source<TConfig extends SourceConfig = {}> = import("qubu").Source<TConfig>
|
|
275
|
+
type SourceConstraint = import("qubu").SourceConstraint
|
|
276
|
+
type SourceConstraintsRecord = import("qubu").SourceConstraintsRecord
|
|
277
|
+
type SourceIndexesRecord = import("qubu").SourceIndexesRecord
|
|
278
|
+
type SourceIndex = import("qubu").SourceIndex
|
|
279
|
+
type SchemaDialect = import("qubu").SchemaDialect
|
|
351
280
|
type SchemaDialectExtension<TDialect extends string = string> =
|
|
352
|
-
import(
|
|
353
|
-
type SchemaObjectIdentity = import(
|
|
354
|
-
type SchemaObjectNameOptions = import(
|
|
355
|
-
type SchemaMetadataDiagnostic = import(
|
|
356
|
-
type ConstraintDialectExtension = import(
|
|
357
|
-
type PostgresConstraintExtension = import(
|
|
358
|
-
type SqliteConstraintExtension = import(
|
|
359
|
-
type MysqlConstraintExtension = import(
|
|
281
|
+
import("qubu").SchemaDialectExtension<TDialect>
|
|
282
|
+
type SchemaObjectIdentity = import("qubu").SchemaObjectIdentity
|
|
283
|
+
type SchemaObjectNameOptions = import("qubu").SchemaObjectNameOptions
|
|
284
|
+
type SchemaMetadataDiagnostic = import("qubu").SchemaMetadataDiagnostic
|
|
285
|
+
type ConstraintDialectExtension = import("qubu").ConstraintDialectExtension
|
|
286
|
+
type PostgresConstraintExtension = import("qubu").PostgresConstraintExtension
|
|
287
|
+
type SqliteConstraintExtension = import("qubu").SqliteConstraintExtension
|
|
288
|
+
type MysqlConstraintExtension = import("qubu").MysqlConstraintExtension
|
|
360
289
|
type ConstraintOptions<
|
|
361
|
-
TExtension extends import(
|
|
362
|
-
| import(
|
|
290
|
+
TExtension extends import("qubu").ConstraintDialectExtension | undefined =
|
|
291
|
+
| import("qubu").ConstraintDialectExtension
|
|
363
292
|
| undefined,
|
|
364
|
-
> = import(
|
|
293
|
+
> = import("qubu").ConstraintOptions<TExtension>
|
|
365
294
|
type KeyConstraintOptions<
|
|
366
|
-
TExtension extends import(
|
|
367
|
-
| import(
|
|
295
|
+
TExtension extends import("qubu").ConstraintDialectExtension | undefined =
|
|
296
|
+
| import("qubu").ConstraintDialectExtension
|
|
368
297
|
| undefined,
|
|
369
|
-
> = import(
|
|
298
|
+
> = import("qubu").KeyConstraintOptions<TExtension>
|
|
370
299
|
type UniqueConstraintOptions<
|
|
371
|
-
TExtension extends import(
|
|
372
|
-
| import(
|
|
300
|
+
TExtension extends import("qubu").ConstraintDialectExtension | undefined =
|
|
301
|
+
| import("qubu").ConstraintDialectExtension
|
|
373
302
|
| undefined,
|
|
374
|
-
> = import(
|
|
303
|
+
> = import("qubu").UniqueConstraintOptions<TExtension>
|
|
375
304
|
type ForeignKeyOptions<
|
|
376
|
-
TExtension extends import(
|
|
377
|
-
| import(
|
|
305
|
+
TExtension extends import("qubu").ConstraintDialectExtension | undefined =
|
|
306
|
+
| import("qubu").ConstraintDialectExtension
|
|
378
307
|
| undefined,
|
|
379
|
-
> = import(
|
|
380
|
-
type UniqueNullSemantics = import(
|
|
381
|
-
type ReferentialAction = import(
|
|
382
|
-
type ForeignKeyMatch = import(
|
|
383
|
-
type ConstraintTiming = import(
|
|
384
|
-
type AnyKeyColumn = import(
|
|
308
|
+
> = import("qubu").ForeignKeyOptions<TExtension>
|
|
309
|
+
type UniqueNullSemantics = import("qubu").UniqueNullSemantics
|
|
310
|
+
type ReferentialAction = import("qubu").ReferentialAction
|
|
311
|
+
type ForeignKeyMatch = import("qubu").ForeignKeyMatch
|
|
312
|
+
type ConstraintTiming = import("qubu").ConstraintTiming
|
|
313
|
+
type AnyKeyColumn = import("qubu").AnyKeyColumn
|
|
385
314
|
type KeyConstraint<
|
|
386
|
-
TKind extends
|
|
387
|
-
TColumns extends readonly import(
|
|
388
|
-
string,
|
|
389
|
-
|
|
390
|
-
>[] = readonly import('qubu').ColumnReference<string, any>[],
|
|
391
|
-
> = import('qubu').KeyConstraint<TKind, TColumns>
|
|
315
|
+
TKind extends "primary-key" | "unique" = "primary-key" | "unique",
|
|
316
|
+
TColumns extends readonly import("qubu").ColumnReference<string, any>[] =
|
|
317
|
+
readonly import("qubu").ColumnReference<string, any>[],
|
|
318
|
+
> = import("qubu").KeyConstraint<TKind, TColumns>
|
|
392
319
|
type UniqueConstraint<
|
|
393
|
-
TColumns extends
|
|
394
|
-
readonly import(
|
|
395
|
-
TNulls extends
|
|
396
|
-
|
|
397
|
-
> = import('qubu').UniqueConstraint<TColumns, TNulls>
|
|
320
|
+
TColumns extends readonly import("qubu").AnyKeyColumn[] =
|
|
321
|
+
readonly import("qubu").AnyKeyColumn[],
|
|
322
|
+
TNulls extends import("qubu").UniqueNullSemantics = import("qubu").UniqueNullSemantics,
|
|
323
|
+
> = import("qubu").UniqueConstraint<TColumns, TNulls>
|
|
398
324
|
type ForeignKeyTarget<
|
|
399
|
-
TTable extends
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
> = import('qubu').ForeignKeyTarget<TTable, TColumns>
|
|
325
|
+
TTable extends import("qubu").TableLike<any> = import("qubu").TableLike<any>,
|
|
326
|
+
TColumns extends readonly import("qubu").AnyKeyColumn[] =
|
|
327
|
+
readonly import("qubu").AnyKeyColumn[],
|
|
328
|
+
> = import("qubu").ForeignKeyTarget<TTable, TColumns>
|
|
404
329
|
type ForeignKeyTargetInput<
|
|
405
|
-
TTarget extends
|
|
406
|
-
|
|
407
|
-
> = import('qubu').ForeignKeyTargetInput<TTarget>
|
|
330
|
+
TTarget extends import("qubu").ForeignKeyTarget = import("qubu").ForeignKeyTarget,
|
|
331
|
+
> = import("qubu").ForeignKeyTargetInput<TTarget>
|
|
408
332
|
type ForeignKeyConstraint<
|
|
409
|
-
TColumns extends
|
|
410
|
-
readonly import(
|
|
411
|
-
TTarget extends
|
|
412
|
-
|
|
413
|
-
> = import('qubu').ForeignKeyConstraint<TColumns, TTarget>
|
|
333
|
+
TColumns extends readonly import("qubu").AnyKeyColumn[] =
|
|
334
|
+
readonly import("qubu").AnyKeyColumn[],
|
|
335
|
+
TTarget extends import("qubu").ForeignKeyTargetInput = import("qubu").ForeignKeyTargetInput,
|
|
336
|
+
> = import("qubu").ForeignKeyConstraint<TColumns, TTarget>
|
|
414
337
|
type CheckConstraint<
|
|
415
|
-
TExpression extends
|
|
416
|
-
|
|
417
|
-
> = import('qubu').CheckConstraint<TExpression>
|
|
338
|
+
TExpression extends import("qubu").AnyExpression = import("qubu").AnyExpression,
|
|
339
|
+
> = import("qubu").CheckConstraint<TExpression>
|
|
418
340
|
type CheckConstraintOptions<
|
|
419
|
-
TExtension extends import(
|
|
420
|
-
| import(
|
|
341
|
+
TExtension extends import("qubu").ConstraintDialectExtension | undefined =
|
|
342
|
+
| import("qubu").ConstraintDialectExtension
|
|
421
343
|
| undefined,
|
|
422
|
-
> = import(
|
|
423
|
-
type IndexDialectExtension = import(
|
|
424
|
-
type PostgresIndexExtension = import(
|
|
425
|
-
type SqliteIndexExtension = import(
|
|
426
|
-
type MysqlIndexExtension = import(
|
|
427
|
-
type IndexTerm = import(
|
|
344
|
+
> = import("qubu").CheckConstraintOptions<TExtension>
|
|
345
|
+
type IndexDialectExtension = import("qubu").IndexDialectExtension
|
|
346
|
+
type PostgresIndexExtension = import("qubu").PostgresIndexExtension
|
|
347
|
+
type SqliteIndexExtension = import("qubu").SqliteIndexExtension
|
|
348
|
+
type MysqlIndexExtension = import("qubu").MysqlIndexExtension
|
|
349
|
+
type IndexTerm = import("qubu").IndexTerm
|
|
428
350
|
type IndexOptions<
|
|
429
|
-
TPredicate extends import(
|
|
430
|
-
| import(
|
|
351
|
+
TPredicate extends import("qubu").AnyExpression | undefined =
|
|
352
|
+
| import("qubu").AnyExpression
|
|
431
353
|
| undefined,
|
|
432
|
-
TExtension extends import(
|
|
433
|
-
| import(
|
|
354
|
+
TExtension extends import("qubu").IndexDialectExtension | undefined =
|
|
355
|
+
| import("qubu").IndexDialectExtension
|
|
434
356
|
| undefined,
|
|
435
|
-
> = import(
|
|
357
|
+
> = import("qubu").IndexOptions<TPredicate, TExtension>
|
|
436
358
|
type TableIndex<
|
|
437
|
-
TTerms extends readonly import(
|
|
438
|
-
TOptions extends import(
|
|
439
|
-
> = import(
|
|
359
|
+
TTerms extends readonly import("qubu").IndexTerm[] = any,
|
|
360
|
+
TOptions extends import("qubu").IndexOptions<any> = any,
|
|
361
|
+
> = import("qubu").TableIndex<TTerms, TOptions>
|
|
440
362
|
type Table<
|
|
441
363
|
TName extends string = string,
|
|
442
|
-
TDefinitions extends
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
> = import('qubu').Table<TName, TDefinitions, TConstraints, TIndexes>
|
|
364
|
+
TDefinitions extends import("qubu").TableDefinitions = import("qubu").TableDefinitions,
|
|
365
|
+
TConstraints extends import("qubu").SourceConstraintsRecord = {},
|
|
366
|
+
TIndexes extends import("qubu").SourceIndexesRecord = {},
|
|
367
|
+
> = import("qubu").Table<TName, TDefinitions, TConstraints, TIndexes>
|
|
447
368
|
}
|
|
448
369
|
|
|
449
370
|
export {}
|