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.
- 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-BavBtv8J.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-DH0qV6aS.d.mts → index-1DpA3mUh.d.mts} +20 -20
- package/dist/{index-D3ZOwPT-.d.mts → index-CPvfEheG.d.mts} +13 -15
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +94 -95
- 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-CKEKGnj4.mjs → mysql-B_cYzzX2.mjs} +237 -7
- package/dist/mysql.d.mts +2 -2
- package/dist/mysql.mjs +3 -3
- package/dist/{on-conflict-4MOBl51J.mjs → on-conflict-hfPW0KmQ.mjs} +3 -4
- package/dist/postgres.d.mts +5 -5
- package/dist/postgres.mjs +6 -6
- package/dist/{registry-CXV8u7Pt.mjs → registry-BRMLYwDp.mjs} +26 -29
- package/dist/{relational-DuQ9IHSb.mjs → relational-BZ3WDPzC.mjs} +2 -2
- package/dist/schema.d.mts +1 -1
- package/dist/schema.mjs +5 -6
- package/dist/{snapshot-DJpfmxhQ.mjs → snapshot-C-W65HEd.mjs} +5 -5
- package/dist/snapshot.d.mts +3 -3
- package/dist/snapshot.mjs +5 -7
- package/dist/{source-DGO3DRgg.mjs → source-BcS2AsIg.mjs} +6 -8
- package/dist/{serialize-CFtYYAdk.mjs → sqlite-Cg0nwYEH.mjs} +326 -12
- package/dist/sqlite.d.mts +1 -1
- package/dist/sqlite.mjs +2 -2
- package/dist/{standard-BTVYKh_F.mjs → standard-DfcZEVOj.mjs} +1 -1
- package/dist/{table-D6rcs8SB.mjs → table-Bp5irMSj.mjs} +2 -3
- package/dist/{types-Deo_q43Y.d.mts → types-BK1COGZe.d.mts} +1113 -1128
- package/dist/{types-g-vVvj1B.mjs → types-JM3FcAnX.mjs} +7 -8
- package/dist/{types-CSNJTYaM.d.mts → types-JSZHpUEj.d.mts} +83 -84
- package/dist/{value-b6OFZXVS.mjs → value-Bi71Agyf.mjs} +1 -1
- package/dist/vite/ambient.d.ts +309 -340
- package/dist/vite.d.mts +5 -6
- package/dist/vite.mjs +3 -4
- package/docs/dialects-and-execution.md +45 -55
- 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 +26 -26
- 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-D-8OqGuV.mjs +0 -328
- package/dist/column-LV7oGQde.mjs +0 -296
- 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 -57
- 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/postgres-BK2APkKP.mjs +0 -236
- package/dist/runtime-Cn_Xgzta.mjs +0 -193
- package/dist/sqlite-CrsK0Fza.mjs +0 -320
- package/dist/types-DZsueVoI.d.mts +0 -45
package/dist/vite/ambient.d.ts
CHANGED
|
@@ -1,401 +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 ColumnDefinitionConfig = import(
|
|
136
|
+
type ColumnDefinitionConfig = import("qubu").ColumnDefinitionConfig
|
|
137
137
|
type ColumnDefinition<TConfig extends ColumnDefinitionConfig = {}> =
|
|
138
|
-
import(
|
|
139
|
-
type ColumnSqlType<T> = import(
|
|
140
|
-
type ColumnDefault = import(
|
|
141
|
-
type ColumnDefaultInput = import(
|
|
142
|
-
type ColumnDefaultOf<T> = import(
|
|
143
|
-
type ColumnGeneratedOf<T> = import(
|
|
144
|
-
type ColumnIdentityOf<T> = import(
|
|
145
|
-
type ColumnOnUpdateOf<T> = import(
|
|
146
|
-
type GeneratedColumnDescriptor = import(
|
|
147
|
-
type IdentityDescriptor = import(
|
|
148
|
-
type MysqlIdentityExtension = import(
|
|
149
|
-
type ColumnStorage = import(
|
|
150
|
-
type PortableColumnStorage = import(
|
|
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
|
|
151
151
|
type NativeColumnStorage<
|
|
152
152
|
TDialect extends string = string,
|
|
153
153
|
TDeclaration extends string = string,
|
|
154
|
-
> = import(
|
|
155
|
-
type ColumnStorageOf<T> = import(
|
|
156
|
-
type ColumnStorageTypeOf<T> = import(
|
|
157
|
-
type ColumnStorageDialectOf<T> = import(
|
|
158
|
-
type ColumnStorageDeclarationOf<T> =
|
|
159
|
-
|
|
160
|
-
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>
|
|
161
160
|
type ColumnReference<
|
|
162
161
|
TName extends string = string,
|
|
163
162
|
TMetadata = never,
|
|
164
|
-
> = import(
|
|
163
|
+
> = import("qubu").ColumnReference<TName, TMetadata>
|
|
165
164
|
type Dialect<
|
|
166
|
-
TCapabilities extends
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
type
|
|
170
|
-
type
|
|
171
|
-
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
|
|
172
170
|
type PortableCastTarget<
|
|
173
|
-
TType extends
|
|
174
|
-
|
|
175
|
-
> = import('qubu').PortableCastTarget<TType>
|
|
171
|
+
TType extends import("qubu").PortableCastType = import("qubu").PortableCastType,
|
|
172
|
+
> = import("qubu").PortableCastTarget<TType>
|
|
176
173
|
type NamedCastTarget<TTypeName extends string = string> =
|
|
177
|
-
import(
|
|
178
|
-
type CastTarget = import(
|
|
179
|
-
type DialectCastTypes = import(
|
|
174
|
+
import("qubu").NamedCastTarget<TTypeName>
|
|
175
|
+
type CastTarget = import("qubu").CastTarget
|
|
176
|
+
type DialectCastTypes = import("qubu").DialectCastTypes
|
|
180
177
|
type Expression<
|
|
181
178
|
TMetadata = any,
|
|
182
|
-
TKind extends import(
|
|
183
|
-
> = import(
|
|
184
|
-
type Fragment<TMetadata = any> = import(
|
|
185
|
-
type FragmentMeta = import(
|
|
186
|
-
type JsonPath<
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
)[],
|
|
191
|
-
> = import('qubu').JsonPath<TSegments>
|
|
192
|
-
type JsonScalarKind = import('qubu').JsonScalarKind
|
|
193
|
-
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
|
|
194
187
|
type CardinalityMeta<
|
|
195
|
-
TCardinality extends
|
|
196
|
-
|
|
197
|
-
> = import(
|
|
198
|
-
type
|
|
199
|
-
type
|
|
200
|
-
type
|
|
201
|
-
type
|
|
202
|
-
type
|
|
203
|
-
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
|
|
204
196
|
type ResultMeta<
|
|
205
197
|
TOutput,
|
|
206
198
|
TNullableFrom = never,
|
|
207
|
-
TSqlType extends import(
|
|
208
|
-
> = import(
|
|
209
|
-
type SqlTypeOf<T> = import(
|
|
210
|
-
type SqlSemanticType<TName extends string = string> =
|
|
211
|
-
|
|
212
|
-
type
|
|
213
|
-
type
|
|
214
|
-
type
|
|
215
|
-
type
|
|
216
|
-
type
|
|
217
|
-
type
|
|
218
|
-
|
|
219
|
-
type
|
|
220
|
-
type
|
|
221
|
-
type
|
|
222
|
-
type
|
|
223
|
-
type
|
|
224
|
-
type
|
|
225
|
-
type
|
|
226
|
-
type
|
|
227
|
-
type SqlBigInt = import('qubu').SqlBigInt
|
|
228
|
-
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
|
|
229
219
|
type SqlFragment<
|
|
230
220
|
TOutput = unknown,
|
|
231
|
-
TSqlType extends import(
|
|
232
|
-
TChild extends import(
|
|
233
|
-
> = import(
|
|
234
|
-
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
|
|
235
225
|
type TypedSqlTag<
|
|
236
226
|
TOutput,
|
|
237
|
-
TSqlType extends import(
|
|
238
|
-
> = import(
|
|
239
|
-
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<
|
|
240
230
|
TActual,
|
|
241
231
|
TConstraint
|
|
242
232
|
>
|
|
243
|
-
type SqlEqualityCompatible<TLeft, TRight> =
|
|
244
|
-
|
|
245
|
-
type SqlOrderCompatible<TLeft, TRight> = import('qubu').SqlOrderCompatible<
|
|
246
|
-
TLeft,
|
|
247
|
-
TRight
|
|
248
|
-
>
|
|
233
|
+
type SqlEqualityCompatible<TLeft, TRight> = import("qubu").SqlEqualityCompatible<TLeft, TRight>
|
|
234
|
+
type SqlOrderCompatible<TLeft, TRight> = import("qubu").SqlOrderCompatible<TLeft, TRight>
|
|
249
235
|
type FieldLike<
|
|
250
|
-
TOptions extends
|
|
251
|
-
|
|
252
|
-
> = import(
|
|
253
|
-
type
|
|
254
|
-
type
|
|
255
|
-
type
|
|
256
|
-
type
|
|
257
|
-
|
|
258
|
-
type ProvidesOuterSourceMeta<TSource> =
|
|
259
|
-
import('qubu').ProvidesOuterSourceMeta<TSource>
|
|
260
|
-
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>
|
|
261
244
|
type RequiresCapabilityMeta<
|
|
262
|
-
TCapability extends
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
type
|
|
266
|
-
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
|
|
267
249
|
type ExecutionResult<TRow extends object = Record<string, unknown>> =
|
|
268
|
-
import(
|
|
269
|
-
type QubuClient<
|
|
270
|
-
|
|
271
|
-
> = 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>
|
|
272
253
|
type QubuStreamingClient<
|
|
273
|
-
TAdapter extends
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
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
|
|
277
257
|
type QubuStreamingTransactionalClient<
|
|
278
|
-
TAdapter extends
|
|
279
|
-
import(
|
|
280
|
-
> = import(
|
|
281
|
-
type QueryAdapter = import(
|
|
258
|
+
TAdapter extends import("qubu").StreamingTransactionalQueryAdapter =
|
|
259
|
+
import("qubu").StreamingTransactionalQueryAdapter,
|
|
260
|
+
> = import("qubu").QubuStreamingTransactionalClient<TAdapter>
|
|
261
|
+
type QueryAdapter = import("qubu").QueryAdapter
|
|
282
262
|
type StreamableQuery<TRow extends object = Record<string, unknown>> =
|
|
283
|
-
import(
|
|
284
|
-
type StreamingQueryAdapter = import(
|
|
285
|
-
type StreamingTransactionalQueryAdapter =
|
|
286
|
-
|
|
287
|
-
type
|
|
288
|
-
type MutationQueryConfig = import('qubu').MutationQueryConfig
|
|
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
|
|
289
268
|
type MutationQuery<TConfig extends MutationQueryConfig = {}> =
|
|
290
|
-
import(
|
|
291
|
-
type QueryConfig = import(
|
|
292
|
-
type Query<TConfig extends QueryConfig = {}> = import(
|
|
293
|
-
type SelectQuery<TConfig extends QueryConfig = {}> =
|
|
294
|
-
|
|
295
|
-
type SourceConfig = import(
|
|
296
|
-
type
|
|
297
|
-
|
|
298
|
-
type
|
|
299
|
-
type
|
|
300
|
-
type
|
|
301
|
-
type SourceIndex = import('qubu').SourceIndex
|
|
302
|
-
type SchemaDialect = import('qubu').SchemaDialect
|
|
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
|
|
303
280
|
type SchemaDialectExtension<TDialect extends string = string> =
|
|
304
|
-
import(
|
|
305
|
-
type SchemaObjectIdentity = import(
|
|
306
|
-
type SchemaObjectNameOptions = import(
|
|
307
|
-
type SchemaMetadataDiagnostic = import(
|
|
308
|
-
type ConstraintDialectExtension = import(
|
|
309
|
-
type PostgresConstraintExtension = import(
|
|
310
|
-
type SqliteConstraintExtension = import(
|
|
311
|
-
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
|
|
312
289
|
type ConstraintOptions<
|
|
313
|
-
TExtension extends import(
|
|
314
|
-
| import(
|
|
290
|
+
TExtension extends import("qubu").ConstraintDialectExtension | undefined =
|
|
291
|
+
| import("qubu").ConstraintDialectExtension
|
|
315
292
|
| undefined,
|
|
316
|
-
> = import(
|
|
293
|
+
> = import("qubu").ConstraintOptions<TExtension>
|
|
317
294
|
type KeyConstraintOptions<
|
|
318
|
-
TExtension extends import(
|
|
319
|
-
| import(
|
|
295
|
+
TExtension extends import("qubu").ConstraintDialectExtension | undefined =
|
|
296
|
+
| import("qubu").ConstraintDialectExtension
|
|
320
297
|
| undefined,
|
|
321
|
-
> = import(
|
|
298
|
+
> = import("qubu").KeyConstraintOptions<TExtension>
|
|
322
299
|
type UniqueConstraintOptions<
|
|
323
|
-
TExtension extends import(
|
|
324
|
-
| import(
|
|
300
|
+
TExtension extends import("qubu").ConstraintDialectExtension | undefined =
|
|
301
|
+
| import("qubu").ConstraintDialectExtension
|
|
325
302
|
| undefined,
|
|
326
|
-
> = import(
|
|
303
|
+
> = import("qubu").UniqueConstraintOptions<TExtension>
|
|
327
304
|
type ForeignKeyOptions<
|
|
328
|
-
TExtension extends import(
|
|
329
|
-
| import(
|
|
305
|
+
TExtension extends import("qubu").ConstraintDialectExtension | undefined =
|
|
306
|
+
| import("qubu").ConstraintDialectExtension
|
|
330
307
|
| undefined,
|
|
331
|
-
> = import(
|
|
332
|
-
type UniqueNullSemantics = import(
|
|
333
|
-
type ReferentialAction = import(
|
|
334
|
-
type ForeignKeyMatch = import(
|
|
335
|
-
type ConstraintTiming = import(
|
|
336
|
-
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
|
|
337
314
|
type KeyConstraint<
|
|
338
|
-
TKind extends
|
|
339
|
-
TColumns extends readonly import(
|
|
340
|
-
string,
|
|
341
|
-
|
|
342
|
-
>[] = readonly import('qubu').ColumnReference<string, any>[],
|
|
343
|
-
> = 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>
|
|
344
319
|
type UniqueConstraint<
|
|
345
|
-
TColumns extends
|
|
346
|
-
readonly import(
|
|
347
|
-
TNulls extends
|
|
348
|
-
|
|
349
|
-
> = 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>
|
|
350
324
|
type ForeignKeyTarget<
|
|
351
|
-
TTable extends
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
> = 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>
|
|
356
329
|
type ForeignKeyTargetInput<
|
|
357
|
-
TTarget extends
|
|
358
|
-
|
|
359
|
-
> = import('qubu').ForeignKeyTargetInput<TTarget>
|
|
330
|
+
TTarget extends import("qubu").ForeignKeyTarget = import("qubu").ForeignKeyTarget,
|
|
331
|
+
> = import("qubu").ForeignKeyTargetInput<TTarget>
|
|
360
332
|
type ForeignKeyConstraint<
|
|
361
|
-
TColumns extends
|
|
362
|
-
readonly import(
|
|
363
|
-
TTarget extends
|
|
364
|
-
|
|
365
|
-
> = 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>
|
|
366
337
|
type CheckConstraint<
|
|
367
|
-
TExpression extends
|
|
368
|
-
|
|
369
|
-
> = import('qubu').CheckConstraint<TExpression>
|
|
338
|
+
TExpression extends import("qubu").AnyExpression = import("qubu").AnyExpression,
|
|
339
|
+
> = import("qubu").CheckConstraint<TExpression>
|
|
370
340
|
type CheckConstraintOptions<
|
|
371
|
-
TExtension extends import(
|
|
372
|
-
| import(
|
|
341
|
+
TExtension extends import("qubu").ConstraintDialectExtension | undefined =
|
|
342
|
+
| import("qubu").ConstraintDialectExtension
|
|
373
343
|
| undefined,
|
|
374
|
-
> = import(
|
|
375
|
-
type IndexDialectExtension = import(
|
|
376
|
-
type PostgresIndexExtension = import(
|
|
377
|
-
type SqliteIndexExtension = import(
|
|
378
|
-
type MysqlIndexExtension = import(
|
|
379
|
-
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
|
|
380
350
|
type IndexOptions<
|
|
381
|
-
TPredicate extends import(
|
|
382
|
-
| import(
|
|
351
|
+
TPredicate extends import("qubu").AnyExpression | undefined =
|
|
352
|
+
| import("qubu").AnyExpression
|
|
383
353
|
| undefined,
|
|
384
|
-
TExtension extends import(
|
|
385
|
-
| import(
|
|
354
|
+
TExtension extends import("qubu").IndexDialectExtension | undefined =
|
|
355
|
+
| import("qubu").IndexDialectExtension
|
|
386
356
|
| undefined,
|
|
387
|
-
> = import(
|
|
357
|
+
> = import("qubu").IndexOptions<TPredicate, TExtension>
|
|
388
358
|
type TableIndex<
|
|
389
|
-
TTerms extends readonly import(
|
|
390
|
-
TOptions extends import(
|
|
391
|
-
> = import(
|
|
359
|
+
TTerms extends readonly import("qubu").IndexTerm[] = any,
|
|
360
|
+
TOptions extends import("qubu").IndexOptions<any> = any,
|
|
361
|
+
> = import("qubu").TableIndex<TTerms, TOptions>
|
|
392
362
|
type Table<
|
|
393
363
|
TName extends string = string,
|
|
394
|
-
TDefinitions extends
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
> = 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>
|
|
399
368
|
}
|
|
400
369
|
|
|
401
370
|
export {}
|