@vibeorm/sql 2.5.0 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/ast.d.ts +339 -12
- package/dist/codecs.d.ts +57 -0
- package/dist/dialect.d.ts +54 -0
- package/dist/dialects/postgres-index-keys.d.ts +1 -0
- package/dist/dialects/postgres-physical-catalog.d.ts +7 -1
- package/dist/dialects/sqlite-fts.d.ts +28 -0
- package/dist/index.d.ts +19 -7
- package/dist/index.js +2100 -983
- package/dist/index.js.map +26 -20
- package/dist/json-list-parameter.d.ts +37 -0
- package/dist/parameter-snapshot.d.ts +6 -0
- package/dist/params.d.ts +7 -8
- package/dist/pg-array.d.ts +13 -0
- package/dist/query/expressions.d.ts +70 -0
- package/dist/query/index.d.ts +6 -0
- package/dist/query/index.js +1078 -0
- package/dist/query/index.js.map +16 -0
- package/dist/query/mutations.d.ts +15 -0
- package/dist/query/reusable.d.ts +17 -0
- package/dist/query/select.d.ts +11 -0
- package/dist/query/sources.d.ts +37 -0
- package/dist/query/state.d.ts +73 -0
- package/dist/query/types.d.ts +188 -0
- package/dist/query-plan.d.ts +97 -0
- package/dist/render.d.ts +11 -1
- package/dist/result-decoder.d.ts +41 -10
- package/dist/sql-bindings.d.ts +84 -0
- package/dist/sql-input.d.ts +98 -0
- package/package.json +9 -3
- package/dist/ast.d.ts.map +0 -1
- package/dist/capabilities.d.ts.map +0 -1
- package/dist/codecs.d.ts.map +0 -1
- package/dist/composable.d.ts.map +0 -1
- package/dist/dialect.d.ts.map +0 -1
- package/dist/dialects/constraint-owned-index.d.ts.map +0 -1
- package/dist/dialects/diagnostics.d.ts.map +0 -1
- package/dist/dialects/external-dependents.d.ts.map +0 -1
- package/dist/dialects/external-ownership.d.ts.map +0 -1
- package/dist/dialects/migration-history.d.ts.map +0 -1
- package/dist/dialects/migration-inventory.d.ts.map +0 -1
- package/dist/dialects/migration-objects.d.ts.map +0 -1
- package/dist/dialects/migration-replay-coverage.d.ts.map +0 -1
- package/dist/dialects/migration-shadow.d.ts.map +0 -1
- package/dist/dialects/migration-visibility.d.ts.map +0 -1
- package/dist/dialects/module-dependency.d.ts.map +0 -1
- package/dist/dialects/mysql-check-probe.d.ts.map +0 -1
- package/dist/dialects/mysql.d.ts.map +0 -1
- package/dist/dialects/postgres-default-identity.d.ts.map +0 -1
- package/dist/dialects/postgres-diagnostics.d.ts.map +0 -1
- package/dist/dialects/postgres-index-keys.d.ts.map +0 -1
- package/dist/dialects/postgres-migration.d.ts.map +0 -1
- package/dist/dialects/postgres-physical-catalog.d.ts.map +0 -1
- package/dist/dialects/postgres-rls-readiness.d.ts.map +0 -1
- package/dist/dialects/postgres-rls.d.ts.map +0 -1
- package/dist/dialects/postgres-type-identity.d.ts.map +0 -1
- package/dist/dialects/postgres.d.ts.map +0 -1
- package/dist/dialects/registry.d.ts.map +0 -1
- package/dist/dialects/sqlite-constraints.d.ts.map +0 -1
- package/dist/dialects/sqlite-session.d.ts.map +0 -1
- package/dist/dialects/sqlite-table-definition.d.ts.map +0 -1
- package/dist/dialects/sqlite.d.ts.map +0 -1
- package/dist/exclusion.d.ts.map +0 -1
- package/dist/identifiers.d.ts.map +0 -1
- package/dist/index-columns.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/json-transport.d.ts.map +0 -1
- package/dist/like.d.ts.map +0 -1
- package/dist/locks.d.ts.map +0 -1
- package/dist/module-journal.d.ts.map +0 -1
- package/dist/native-enum-parameter.d.ts.map +0 -1
- package/dist/params.d.ts.map +0 -1
- package/dist/pg-array.d.ts.map +0 -1
- package/dist/predicate.d.ts.map +0 -1
- package/dist/render.d.ts.map +0 -1
- package/dist/result-decoder.d.ts.map +0 -1
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import type { QualifiedSqlName, ScalarType } from "@vibeorm/schema";
|
|
2
|
+
import type { ResultDecoder, ResultReadDecoder, ResultParameterEncoder, ReusableSqlCommand, ReusableSqlQuery, SqlInput, SqlInputMap, SqlInputTokens, SqlInputValues, SqlParam, SqlCommand, SqlFragment, SqlQuery } from "@vibeorm/sql";
|
|
3
|
+
declare const expressionBrand: unique symbol;
|
|
4
|
+
declare const sourceBrand: unique symbol;
|
|
5
|
+
declare const inputBrand: unique symbol;
|
|
6
|
+
/** An authentic typed expression with a runtime decoder, not a SQL type assertion. */
|
|
7
|
+
export type Expression<T> = {
|
|
8
|
+
readonly [expressionBrand]: T;
|
|
9
|
+
};
|
|
10
|
+
/** Physical column contract. Text transport is an explicit projection-only decoder seam. */
|
|
11
|
+
export type ColumnDefinition<T> = {
|
|
12
|
+
readonly name: string;
|
|
13
|
+
readonly decoder: ResultReadDecoder<T>;
|
|
14
|
+
readonly dbDefault?: boolean;
|
|
15
|
+
/** Optional distinct write contract, required when the projection decoder is decode-only. */
|
|
16
|
+
readonly inputDecoder?: ResultParameterEncoder;
|
|
17
|
+
readonly scalar: ScalarType | "Enum" | "Unknown";
|
|
18
|
+
readonly nullable?: boolean;
|
|
19
|
+
readonly list?: boolean;
|
|
20
|
+
readonly enumValues?: readonly string[];
|
|
21
|
+
readonly enumType?: QualifiedSqlName;
|
|
22
|
+
readonly jsonStorage?: "json" | "jsonb";
|
|
23
|
+
readonly transport?: "text";
|
|
24
|
+
readonly nativeType?: string;
|
|
25
|
+
};
|
|
26
|
+
/** Concrete generated columns, resolved without schema-IR inference. */
|
|
27
|
+
export type ColumnDefinitions<Row> = {
|
|
28
|
+
readonly [K in keyof Row]: ColumnDefinition<Row[K]>;
|
|
29
|
+
};
|
|
30
|
+
/** Authentic physical or read-derived source; columns exist only inside a builder scope. */
|
|
31
|
+
export type Source<Row> = {
|
|
32
|
+
readonly [sourceBrand]: Row;
|
|
33
|
+
};
|
|
34
|
+
/** A writable physical table, with separately generated physical-default insert inputs. */
|
|
35
|
+
export type Table<Row, Input = Partial<Row>> = Source<Row> & {
|
|
36
|
+
readonly [inputBrand]: Input;
|
|
37
|
+
};
|
|
38
|
+
/** Scoped columns. Left-joined sources map every flat field to a nullable expression. */
|
|
39
|
+
export type Columns<Row> = {
|
|
40
|
+
readonly [K in keyof Row]: Expression<Row[K]>;
|
|
41
|
+
};
|
|
42
|
+
/** Named sources visible to one SELECT, not to another with the same aliases. */
|
|
43
|
+
export type Scope<S> = {
|
|
44
|
+
readonly [K in keyof S]: Columns<S[K]>;
|
|
45
|
+
};
|
|
46
|
+
/** Explicit, flat named projection. */
|
|
47
|
+
export type Projection = Readonly<Record<string, Expression<unknown>>>;
|
|
48
|
+
/** Resolved result shape of a projection. */
|
|
49
|
+
export type ProjectionRow<P extends Projection> = {
|
|
50
|
+
[K in keyof P]: P[K] extends Expression<infer T> ? T : never;
|
|
51
|
+
};
|
|
52
|
+
/** Flat outer-join nullability, including columns that are non-null on the base table. */
|
|
53
|
+
export type NullableRow<Row> = {
|
|
54
|
+
[K in keyof Row]: Row[K] | null;
|
|
55
|
+
};
|
|
56
|
+
/** Expression ordering, independent of output aliases. */
|
|
57
|
+
export type Order = {
|
|
58
|
+
readonly expression: Expression<unknown>;
|
|
59
|
+
readonly direction?: "asc" | "desc";
|
|
60
|
+
readonly nulls?: "first" | "last";
|
|
61
|
+
};
|
|
62
|
+
/** Immutable SELECT builder; callback columns carry exact scope identities. */
|
|
63
|
+
export type SelectBuilder<S> = {
|
|
64
|
+
readonly innerJoin: <Row, A extends string>(params: {
|
|
65
|
+
source: Source<Row>;
|
|
66
|
+
as: A;
|
|
67
|
+
on: (scope: Scope<S & Record<A, Row>>) => Expression<boolean | null>;
|
|
68
|
+
}) => SelectBuilder<S & Record<A, Row>>;
|
|
69
|
+
readonly leftJoin: <Row, A extends string>(params: {
|
|
70
|
+
source: Source<Row>;
|
|
71
|
+
as: A;
|
|
72
|
+
on: (scope: Scope<S & Record<A, Row>>) => Expression<boolean | null>;
|
|
73
|
+
}) => SelectBuilder<S & Record<A, NullableRow<Row>>>;
|
|
74
|
+
readonly crossJoin: <Row, A extends string>(params: {
|
|
75
|
+
source: Source<Row>;
|
|
76
|
+
as: A;
|
|
77
|
+
}) => SelectBuilder<S & Record<A, Row>>;
|
|
78
|
+
readonly where: (predicate: (scope: Scope<S>) => Expression<boolean | null>) => SelectBuilder<S>;
|
|
79
|
+
readonly groupBy: (expressions: (scope: Scope<S>) => readonly Expression<unknown>[]) => SelectBuilder<S>;
|
|
80
|
+
readonly having: (predicate: (scope: Scope<S>) => Expression<boolean | null>) => SelectBuilder<S>;
|
|
81
|
+
readonly orderBy: (terms: (scope: Scope<S>) => readonly Order[]) => SelectBuilder<S>;
|
|
82
|
+
readonly limit: (count: number | SqlParam<number>) => SelectBuilder<S>;
|
|
83
|
+
readonly offset: (count: number | SqlParam<number>) => SelectBuilder<S>;
|
|
84
|
+
readonly select: <P extends Projection>(columns: (scope: Scope<S>) => P, options?: {
|
|
85
|
+
readonly distinct?: boolean;
|
|
86
|
+
}) => SqlQuery<ProjectionRow<P>>;
|
|
87
|
+
};
|
|
88
|
+
/** Single-table write, ending explicitly in a command or RETURNING query. */
|
|
89
|
+
export type MutationBuilder<Row> = {
|
|
90
|
+
readonly where: (predicate: (columns: Columns<Row>) => Expression<boolean | null>) => MutationBuilder<Row>;
|
|
91
|
+
readonly returning: <P extends Projection>(columns: (columns: Columns<Row>) => P) => SqlQuery<ProjectionRow<P>>;
|
|
92
|
+
readonly command: () => SqlCommand;
|
|
93
|
+
};
|
|
94
|
+
/** Field-preserving write input, including explicit SQL expressions/defaults. */
|
|
95
|
+
export type WriteValues<Input> = {
|
|
96
|
+
[K in keyof Input]: Input[K] | Expression<Input[K]> | SqlParam<Input[K]>;
|
|
97
|
+
};
|
|
98
|
+
/** Public builder entry, also re-exported by generated lightweight sql entries. */
|
|
99
|
+
export type QueryBuilder = {
|
|
100
|
+
/** Derive a required parameter from a physical column's write contract. */
|
|
101
|
+
readonly input: <Row, Input, K extends keyof Row & keyof Input & string>(params: {
|
|
102
|
+
readonly table: Table<Row, Input>;
|
|
103
|
+
readonly column: K;
|
|
104
|
+
}) => SqlInput<Exclude<Input[K], undefined | Expression<never>>>;
|
|
105
|
+
/** Build once, compile once per dialect, and bind fresh inputs at execution. */
|
|
106
|
+
readonly reusable: {
|
|
107
|
+
<const D extends SqlInputMap, Row>(params: {
|
|
108
|
+
readonly params: D;
|
|
109
|
+
readonly build: (params: SqlInputTokens<D>) => SqlQuery<Row>;
|
|
110
|
+
}): ReusableSqlQuery<SqlInputValues<D>, Row>;
|
|
111
|
+
<const D extends SqlInputMap>(params: {
|
|
112
|
+
readonly params: D;
|
|
113
|
+
readonly build: (params: SqlInputTokens<D>) => SqlCommand;
|
|
114
|
+
}): ReusableSqlCommand<SqlInputValues<D>>;
|
|
115
|
+
};
|
|
116
|
+
readonly table: <Row, Input = Partial<Row>>(params: {
|
|
117
|
+
name: string;
|
|
118
|
+
namespace?: string;
|
|
119
|
+
columns: ColumnDefinitions<Row>;
|
|
120
|
+
readOnly?: boolean;
|
|
121
|
+
required?: readonly (keyof Input & string)[];
|
|
122
|
+
}) => Table<Row, Input>;
|
|
123
|
+
readonly from: <Row, A extends string>(params: {
|
|
124
|
+
source: Source<Row>;
|
|
125
|
+
as: A;
|
|
126
|
+
}) => SelectBuilder<Record<A, Row>>;
|
|
127
|
+
readonly derived: <Row>(params: {
|
|
128
|
+
query: SqlQuery<Row>;
|
|
129
|
+
}) => Source<Row>;
|
|
130
|
+
readonly cte: <Row>(params: {
|
|
131
|
+
query: SqlQuery<Row>;
|
|
132
|
+
name: string;
|
|
133
|
+
}) => Source<Row>;
|
|
134
|
+
readonly union: <Row>(params: {
|
|
135
|
+
queries: readonly [SqlQuery<Row>, SqlQuery<NoInfer<Row>>, ...SqlQuery<NoInfer<Row>>[]];
|
|
136
|
+
all?: boolean;
|
|
137
|
+
}) => SqlQuery<Row>;
|
|
138
|
+
readonly insert: <Row, Input>(params: {
|
|
139
|
+
into: Table<Row, Input>;
|
|
140
|
+
values: WriteValues<NoInfer<Input>> | readonly WriteValues<NoInfer<Input>>[];
|
|
141
|
+
}) => MutationBuilder<Row>;
|
|
142
|
+
readonly update: <Row, Input>(params: {
|
|
143
|
+
table: Table<Row, Input>;
|
|
144
|
+
set: Partial<WriteValues<NoInfer<Input>>>;
|
|
145
|
+
}) => MutationBuilder<Row>;
|
|
146
|
+
readonly delete: <Row, Input>(params: {
|
|
147
|
+
table: Table<Row, Input>;
|
|
148
|
+
}) => MutationBuilder<Row>;
|
|
149
|
+
/** Explicit SQL DEFAULT cell, distinct from undefined and application defaults. */
|
|
150
|
+
readonly default: Expression<never>;
|
|
151
|
+
/** A typed standalone value with an explicit bidirectional scalar contract. */
|
|
152
|
+
readonly value: <T>(params: {
|
|
153
|
+
value: T;
|
|
154
|
+
decoder: ResultDecoder<T>;
|
|
155
|
+
}) => Expression<T>;
|
|
156
|
+
/** An authentic fragment with an explicit result contract and scoped dependencies. */
|
|
157
|
+
readonly raw: <T>(params: {
|
|
158
|
+
sql: SqlFragment;
|
|
159
|
+
decoder: ResultReadDecoder<T>;
|
|
160
|
+
references?: readonly Expression<unknown>[];
|
|
161
|
+
}) => Expression<T>;
|
|
162
|
+
};
|
|
163
|
+
/** Signature map for the named, closed portable expression operators. */
|
|
164
|
+
export type Expressions = {
|
|
165
|
+
readonly eq: <T>(left: Expression<T>, right: Expression<NoInfer<T>> | SqlParam<NoInfer<T>> | NoInfer<T>) => Expression<boolean | null>;
|
|
166
|
+
readonly ne: <T>(left: Expression<T>, right: Expression<NoInfer<T>> | SqlParam<NoInfer<T>> | NoInfer<T>) => Expression<boolean | null>;
|
|
167
|
+
readonly gt: <T>(left: Expression<T>, right: Expression<NoInfer<T>> | SqlParam<NoInfer<T>> | NoInfer<T>) => Expression<boolean | null>;
|
|
168
|
+
readonly gte: <T>(left: Expression<T>, right: Expression<NoInfer<T>> | SqlParam<NoInfer<T>> | NoInfer<T>) => Expression<boolean | null>;
|
|
169
|
+
readonly lt: <T>(left: Expression<T>, right: Expression<NoInfer<T>> | SqlParam<NoInfer<T>> | NoInfer<T>) => Expression<boolean | null>;
|
|
170
|
+
readonly lte: <T>(left: Expression<T>, right: Expression<NoInfer<T>> | SqlParam<NoInfer<T>> | NoInfer<T>) => Expression<boolean | null>;
|
|
171
|
+
readonly isNull: (expression: Expression<unknown>) => Expression<boolean | null>;
|
|
172
|
+
readonly isNotNull: (expression: Expression<unknown>) => Expression<boolean | null>;
|
|
173
|
+
readonly and: (...predicates: readonly Expression<boolean | null>[]) => Expression<boolean | null>;
|
|
174
|
+
readonly or: (...predicates: readonly Expression<boolean | null>[]) => Expression<boolean | null>;
|
|
175
|
+
readonly not: (predicate: Expression<boolean | null>) => Expression<boolean | null>;
|
|
176
|
+
readonly inList: <T>(expression: Expression<T>, values: readonly (NoInfer<T> | SqlParam<NoInfer<T>>)[]) => Expression<boolean | null>;
|
|
177
|
+
readonly notInList: <T>(expression: Expression<T>, values: readonly (NoInfer<T> | SqlParam<NoInfer<T>>)[]) => Expression<boolean | null>;
|
|
178
|
+
readonly count: (expression?: Expression<unknown>, options?: {
|
|
179
|
+
readonly distinct?: boolean;
|
|
180
|
+
}) => Expression<bigint>;
|
|
181
|
+
readonly min: <T>(expression: Expression<T>) => Expression<T | null>;
|
|
182
|
+
readonly max: <T>(expression: Expression<T>) => Expression<T | null>;
|
|
183
|
+
/** Float only. Int/BigInt/Decimal SUM/AVG require an explicit raw decoder instead. */
|
|
184
|
+
readonly sum: (expression: Expression<number | null>) => Expression<number | null>;
|
|
185
|
+
readonly avg: (expression: Expression<number | null>) => Expression<number | null>;
|
|
186
|
+
};
|
|
187
|
+
export {};
|
|
188
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import type { SqlDialect } from "./dialect.ts";
|
|
2
|
+
import { ParamCollector } from "./params.ts";
|
|
3
|
+
import type { ResultReadDecoder } from "./result-decoder.ts";
|
|
4
|
+
import type { SqlInputScope } from "./sql-input.ts";
|
|
5
|
+
declare const queryBrand: unique symbol;
|
|
6
|
+
declare const commandBrand: unique symbol;
|
|
7
|
+
/** Authentic row-returning SQL plan, independent of a client or transaction. */
|
|
8
|
+
export type SqlQuery<Row> = {
|
|
9
|
+
readonly [queryBrand]: Row;
|
|
10
|
+
};
|
|
11
|
+
/** Authentic affected-count SQL plan; never a row-returning contract. */
|
|
12
|
+
export type SqlCommand = {
|
|
13
|
+
readonly [commandBrand]: true;
|
|
14
|
+
};
|
|
15
|
+
/** Render into the enclosing collector, preserving parameter order in compositions. */
|
|
16
|
+
export type SqlPlanRender = (params: {
|
|
17
|
+
dialect: SqlDialect;
|
|
18
|
+
collector: ParamCollector;
|
|
19
|
+
}) => string;
|
|
20
|
+
/** Compiled row query and its captured runtime result contract. */
|
|
21
|
+
export type CompiledSqlQuery<Row> = {
|
|
22
|
+
readonly text: string;
|
|
23
|
+
readonly values: unknown[];
|
|
24
|
+
readonly decoder: ResultReadDecoder<Row>;
|
|
25
|
+
};
|
|
26
|
+
declare const reusableQueryBrand: unique symbol;
|
|
27
|
+
declare const reusableCommandBrand: unique symbol;
|
|
28
|
+
/** Ownerless fixed SQL with required execution inputs and its own result decoder. */
|
|
29
|
+
export type ReusableSqlQuery<Params extends object, Row> = {
|
|
30
|
+
readonly [reusableQueryBrand]: {
|
|
31
|
+
readonly params: Params;
|
|
32
|
+
readonly row: Row;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
/** Ownerless fixed affected-count SQL with required execution inputs. */
|
|
36
|
+
export type ReusableSqlCommand<Params extends object> = {
|
|
37
|
+
readonly [reusableCommandBrand]: Params;
|
|
38
|
+
};
|
|
39
|
+
/** A fresh bound command, ready for the existing raw execution route. */
|
|
40
|
+
export type CompiledSqlCommand = {
|
|
41
|
+
readonly text: string;
|
|
42
|
+
readonly values: unknown[];
|
|
43
|
+
};
|
|
44
|
+
/** Capture a renderer and decoder without opening any execution resource. */
|
|
45
|
+
export declare function createSqlQuery<Row>(params: {
|
|
46
|
+
render: SqlPlanRender;
|
|
47
|
+
decoder: ResultReadDecoder<Row>;
|
|
48
|
+
}): SqlQuery<Row>;
|
|
49
|
+
/** Capture a command renderer without inventing a result-row contract. */
|
|
50
|
+
export declare function createSqlCommand(params: {
|
|
51
|
+
render: SqlPlanRender;
|
|
52
|
+
}): SqlCommand;
|
|
53
|
+
/** Structural copies and assertions are not executable row plans. */
|
|
54
|
+
export declare function isSqlQuery(value: unknown): value is SqlQuery<unknown>;
|
|
55
|
+
/** Structural copies and row plans are not executable commands. */
|
|
56
|
+
export declare function isSqlCommand(value: unknown): value is SqlCommand;
|
|
57
|
+
/** Authentic reusable row plans are distinct from ordinary composable plans. */
|
|
58
|
+
export declare function isReusableSqlQuery(value: unknown): value is ReusableSqlQuery<object, unknown>;
|
|
59
|
+
/** Authentic reusable commands never masquerade as row queries. */
|
|
60
|
+
export declare function isReusableSqlCommand(value: unknown): value is ReusableSqlCommand<object>;
|
|
61
|
+
/** @internal Query-bundle provenance is checked by qb.reusable before this bridge. */
|
|
62
|
+
export declare function createReusableSqlQuery<P extends object, Row>(params: {
|
|
63
|
+
query: SqlQuery<Row>;
|
|
64
|
+
scope: SqlInputScope;
|
|
65
|
+
}): ReusableSqlQuery<P, Row>;
|
|
66
|
+
/** @internal Wrap an admitted builder command without capturing an execution owner. */
|
|
67
|
+
export declare function createReusableSqlCommand<P extends object>(params: {
|
|
68
|
+
query: SqlCommand;
|
|
69
|
+
scope: SqlInputScope;
|
|
70
|
+
}): ReusableSqlCommand<P>;
|
|
71
|
+
/** Compile structure once per dialect and synchronously snapshot/bind this invocation. */
|
|
72
|
+
export declare function compileReusableSqlQuery<P extends object, Row>(params: {
|
|
73
|
+
readonly dialect: SqlDialect;
|
|
74
|
+
readonly query: ReusableSqlQuery<P, Row>;
|
|
75
|
+
readonly params?: unknown;
|
|
76
|
+
}): CompiledSqlQuery<Row>;
|
|
77
|
+
/** Compile structure once per dialect and bind a fresh affected-count command. */
|
|
78
|
+
export declare function compileReusableSqlCommand<P extends object>(params: {
|
|
79
|
+
readonly dialect: SqlDialect;
|
|
80
|
+
readonly query: ReusableSqlCommand<P>;
|
|
81
|
+
readonly params?: unknown;
|
|
82
|
+
}): CompiledSqlCommand;
|
|
83
|
+
/** Compile a row plan once the execution dialect is known. */
|
|
84
|
+
export declare function compileSqlQuery<Row>(params: {
|
|
85
|
+
dialect: SqlDialect;
|
|
86
|
+
query: SqlQuery<Row>;
|
|
87
|
+
}): CompiledSqlQuery<Row>;
|
|
88
|
+
/** Compile an affected-count plan; row terminals are refused. */
|
|
89
|
+
export declare function compileSqlCommand(params: {
|
|
90
|
+
dialect: SqlDialect;
|
|
91
|
+
query: SqlCommand;
|
|
92
|
+
}): {
|
|
93
|
+
text: string;
|
|
94
|
+
values: unknown[];
|
|
95
|
+
};
|
|
96
|
+
export {};
|
|
97
|
+
//# sourceMappingURL=query-plan.d.ts.map
|
package/dist/render.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { DiagnosticStatement } from "./dialects/diagnostics.ts";
|
|
2
2
|
import type { SqlFragmentSpec } from "@vibeorm/schema";
|
|
3
|
-
import type { SqlStatement, RlsReadinessStatement, RlsProbeTableStatement, RlsPolicyPathStatement, SqlExpr } from "./ast.ts";
|
|
3
|
+
import type { ColRef, SqlStatement, RlsReadinessStatement, RlsProbeTableStatement, RlsPolicyPathStatement, SqlExpr } from "./ast.ts";
|
|
4
4
|
import type { SqlDialect } from "./dialect.ts";
|
|
5
5
|
import { ParamCollector } from "./params.ts";
|
|
6
6
|
export type RenderedQuery = {
|
|
@@ -16,6 +16,16 @@ export declare function renderStatement(params: {
|
|
|
16
16
|
dialect: SqlDialect;
|
|
17
17
|
statement: DiagnosticStatement | SqlStatement | RlsReadinessStatement | RlsProbeTableStatement | RlsPolicyPathStatement;
|
|
18
18
|
}): RenderedQuery;
|
|
19
|
+
/**
|
|
20
|
+
* A SELECT list rendered exactly as a {@link SelectStatement}'s columns are —
|
|
21
|
+
* plain references and their wire transforms (`"t"."scores"::text AS
|
|
22
|
+
* "scores"`) — for SQL assembled outside the AST (extension statements), so
|
|
23
|
+
* its rows reach the driver in the same formats as `findMany`'s.
|
|
24
|
+
*/
|
|
25
|
+
export declare function renderProjection(params: {
|
|
26
|
+
dialect: SqlDialect;
|
|
27
|
+
columns: readonly ColRef[];
|
|
28
|
+
}): string;
|
|
19
29
|
/**
|
|
20
30
|
* Render one boolean expression into SQL text, collecting parameters into the
|
|
21
31
|
* shared collector. Public so extension delegates can AND user `where` trees
|
package/dist/result-decoder.d.ts
CHANGED
|
@@ -1,25 +1,46 @@
|
|
|
1
|
-
import type { Dialect } from "@vibeorm/schema";
|
|
1
|
+
import type { Dialect, ScalarType } from "@vibeorm/schema";
|
|
2
2
|
import type { WireFidelity } from "./codecs.ts";
|
|
3
3
|
/** DateTime's explicit opt-in raw projection/parameter representation. NULL is separate. */
|
|
4
4
|
export type ExtendedDateTime = Date | "infinity" | "-infinity";
|
|
5
|
-
/** An explicit
|
|
6
|
-
export type
|
|
5
|
+
/** An explicit read-only result contract using the centralized wire shape. */
|
|
6
|
+
export type ResultReadDecoder<T> = {
|
|
7
7
|
readonly decode: (params: {
|
|
8
8
|
value: unknown;
|
|
9
9
|
dialect: Dialect;
|
|
10
10
|
wire?: WireFidelity;
|
|
11
11
|
}) => T;
|
|
12
|
+
};
|
|
13
|
+
/** Parameter-only contract; transformed outputs do not need a fabricated decoder. */
|
|
14
|
+
export type ResultParameterEncoder = {
|
|
12
15
|
readonly encode: (params: {
|
|
13
16
|
value: unknown;
|
|
14
17
|
dialect: Dialect;
|
|
15
18
|
}) => unknown;
|
|
16
19
|
};
|
|
20
|
+
/** An explicit projection contract, with centralized bidirectional scalar conversion. */
|
|
21
|
+
export type ResultDecoder<T> = ResultReadDecoder<T> & ResultParameterEncoder;
|
|
22
|
+
/** Physical scalar information owned by the built-in decoder that validates it. */
|
|
23
|
+
export type ResultScalarContract = {
|
|
24
|
+
readonly scalar: ScalarType;
|
|
25
|
+
readonly nullable: boolean;
|
|
26
|
+
readonly list: boolean;
|
|
27
|
+
};
|
|
28
|
+
/** Read authentic built-in scalar metadata; arbitrary result decoders do not imply a SQL type. */
|
|
29
|
+
export declare function resultScalarContract(params: {
|
|
30
|
+
decoder: ResultReadDecoder<unknown>;
|
|
31
|
+
}): ResultScalarContract | undefined;
|
|
17
32
|
/** The output of a declared result decoder. */
|
|
18
|
-
export type Decoded<D> = D extends
|
|
33
|
+
export type Decoded<D> = D extends ResultReadDecoder<infer T> ? T : never;
|
|
19
34
|
type Fields = Readonly<Record<string, ResultDecoder<unknown>>>;
|
|
20
35
|
type Shape<F extends Fields> = {
|
|
21
36
|
[K in keyof F]: Decoded<F[K]>;
|
|
22
37
|
};
|
|
38
|
+
/** Write-only composition; elements are encoded once and SQL owns the final array transport. */
|
|
39
|
+
export declare const encode: {
|
|
40
|
+
readonly array: (params: {
|
|
41
|
+
encoder: ResultParameterEncoder;
|
|
42
|
+
}) => ResultParameterEncoder;
|
|
43
|
+
};
|
|
23
44
|
/** Result contracts: scalar codecs, explicit nullability, enum membership, and object projections. */
|
|
24
45
|
export declare const decode: {
|
|
25
46
|
readonly string: ResultDecoder<string>;
|
|
@@ -32,12 +53,22 @@ export declare const decode: {
|
|
|
32
53
|
readonly extendedDateTime: ResultDecoder<ExtendedDateTime>;
|
|
33
54
|
readonly json: ResultDecoder<unknown>;
|
|
34
55
|
readonly bytes: ResultDecoder<Uint8Array>;
|
|
35
|
-
readonly nullable:
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
56
|
+
readonly nullable: {
|
|
57
|
+
<T>(params: {
|
|
58
|
+
decoder: ResultDecoder<T>;
|
|
59
|
+
}): ResultDecoder<T | null>;
|
|
60
|
+
<T>(params: {
|
|
61
|
+
decoder: ResultReadDecoder<T>;
|
|
62
|
+
}): ResultReadDecoder<T | null>;
|
|
63
|
+
};
|
|
64
|
+
readonly array: {
|
|
65
|
+
<T>(params: {
|
|
66
|
+
decoder: ResultDecoder<T>;
|
|
67
|
+
}): ResultDecoder<T[]>;
|
|
68
|
+
<T>(params: {
|
|
69
|
+
decoder: ResultReadDecoder<T>;
|
|
70
|
+
}): ResultReadDecoder<T[]>;
|
|
71
|
+
};
|
|
41
72
|
readonly enum: <T extends string>(params: {
|
|
42
73
|
values: readonly T[];
|
|
43
74
|
}) => ResultDecoder<T>;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import type { QualifiedSqlName } from "@vibeorm/schema";
|
|
2
|
+
import type { SqlDialect } from "./dialect.ts";
|
|
3
|
+
import type { ParamCollector } from "./params.ts";
|
|
4
|
+
import type { SqlInputContract, SqlInputScope, SqlParam } from "./sql-input.ts";
|
|
5
|
+
/** @internal Declared SQL transport is separate from execution-time values. */
|
|
6
|
+
export type SqlParameterTransport = {
|
|
7
|
+
readonly kind: "plain";
|
|
8
|
+
} | {
|
|
9
|
+
readonly kind: "native-enum-array";
|
|
10
|
+
readonly type: QualifiedSqlName;
|
|
11
|
+
} | {
|
|
12
|
+
readonly kind: "json-list";
|
|
13
|
+
readonly storage: "json" | "jsonb";
|
|
14
|
+
readonly whole: boolean;
|
|
15
|
+
};
|
|
16
|
+
/** @internal A binding reads a captured literal or one named input. */
|
|
17
|
+
export type SqlBindingSource = {
|
|
18
|
+
readonly kind: "literal";
|
|
19
|
+
readonly value: unknown;
|
|
20
|
+
} | {
|
|
21
|
+
readonly kind: "input";
|
|
22
|
+
readonly param: SqlParam<unknown>;
|
|
23
|
+
};
|
|
24
|
+
/** @internal Value work reused by ordinary and structural parameter emission. */
|
|
25
|
+
export type SqlBindingEncoder = (params: {
|
|
26
|
+
readonly value: unknown;
|
|
27
|
+
readonly dialect: SqlDialect;
|
|
28
|
+
}) => unknown;
|
|
29
|
+
declare const programBrand: unique symbol;
|
|
30
|
+
/** @internal Binding programs are authentic and never expose their captured values. */
|
|
31
|
+
export type SqlBindingProgram = {
|
|
32
|
+
readonly [programBrand]: true;
|
|
33
|
+
};
|
|
34
|
+
/** @internal Inspect already captured data only; never invoke an encoder. */
|
|
35
|
+
export declare function sqlParameterTransport(params: {
|
|
36
|
+
value: unknown;
|
|
37
|
+
}): SqlParameterTransport;
|
|
38
|
+
/** @internal Shared ordinary/reusable placeholder suffixes. */
|
|
39
|
+
export declare function renderSqlParameterTransport(params: {
|
|
40
|
+
dialect: SqlDialect;
|
|
41
|
+
placeholder: string;
|
|
42
|
+
transport: SqlParameterTransport;
|
|
43
|
+
}): string;
|
|
44
|
+
/** @internal Shared marker unwrapping; ordinary admission remains unchanged. */
|
|
45
|
+
export declare function sqlParameterWireValue(params: {
|
|
46
|
+
value: unknown;
|
|
47
|
+
}): unknown;
|
|
48
|
+
/** @internal Detect structural recording without changing normal collector callers. */
|
|
49
|
+
export declare function isSqlBindingCollector(params: {
|
|
50
|
+
collector: ParamCollector;
|
|
51
|
+
}): boolean;
|
|
52
|
+
/** @internal Start one compiler pass with no execution values. */
|
|
53
|
+
export declare function startSqlBindingCollection(params: {
|
|
54
|
+
collector: ParamCollector;
|
|
55
|
+
dialect: SqlDialect;
|
|
56
|
+
scope: SqlInputScope;
|
|
57
|
+
}): void;
|
|
58
|
+
/** @internal Register an encoded slot without executing its encoder. */
|
|
59
|
+
export declare function recordSqlBinding(params: {
|
|
60
|
+
collector: ParamCollector;
|
|
61
|
+
source: SqlBindingSource;
|
|
62
|
+
contract?: SqlInputContract;
|
|
63
|
+
transport: SqlParameterTransport;
|
|
64
|
+
encode: SqlBindingEncoder;
|
|
65
|
+
rejectNull?: boolean;
|
|
66
|
+
validate?: (value: unknown) => void;
|
|
67
|
+
}): string;
|
|
68
|
+
/** @internal Retain per-call validation when a fixed NULL frame emits no slot. */
|
|
69
|
+
export declare function recordSqlBindingCheck(params: {
|
|
70
|
+
collector: ParamCollector;
|
|
71
|
+
check: () => void;
|
|
72
|
+
}): void;
|
|
73
|
+
/** @internal Seal the rendered program after checking actual emitted input usage. */
|
|
74
|
+
export declare function finishSqlBindingCollection(params: {
|
|
75
|
+
collector: ParamCollector;
|
|
76
|
+
}): SqlBindingProgram;
|
|
77
|
+
/** @internal Snapshot and bind synchronously; no cache entry retains this call's values. */
|
|
78
|
+
export declare function bindSqlBindingProgram(params: {
|
|
79
|
+
program: SqlBindingProgram;
|
|
80
|
+
params?: unknown;
|
|
81
|
+
isHandle: (value: object) => boolean;
|
|
82
|
+
}): unknown[];
|
|
83
|
+
export {};
|
|
84
|
+
//# sourceMappingURL=sql-bindings.d.ts.map
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import type { QualifiedSqlName, ScalarType } from "@vibeorm/schema";
|
|
2
|
+
import type { ResultDecoder, ResultParameterEncoder } from "./result-decoder.ts";
|
|
3
|
+
declare const sqlParamBrand: unique symbol;
|
|
4
|
+
declare const sqlInputBrand: unique symbol;
|
|
5
|
+
declare const scopeBrand: unique symbol;
|
|
6
|
+
/** A write-only named input token, never a result expression. */
|
|
7
|
+
export type SqlParam<T> = {
|
|
8
|
+
readonly [sqlParamBrand]: T;
|
|
9
|
+
};
|
|
10
|
+
/** An authentic column-specific input contract. */
|
|
11
|
+
export type SqlInput<T> = {
|
|
12
|
+
readonly [sqlInputBrand]: T;
|
|
13
|
+
};
|
|
14
|
+
/** Explicit input declarations for a fixed SQL template. */
|
|
15
|
+
export type SqlInputMap = Readonly<Record<string, ResultDecoder<unknown> | SqlInput<unknown>>>;
|
|
16
|
+
/** The value admitted by one input declaration. */
|
|
17
|
+
export type SqlInputValue<D> = D extends SqlInput<infer I> ? I : D extends ResultDecoder<infer I> ? Exclude<I, undefined> : never;
|
|
18
|
+
/** Required values inferred once from the declaration map. */
|
|
19
|
+
export type SqlInputValues<D extends SqlInputMap> = {
|
|
20
|
+
readonly [K in keyof D]-?: SqlInputValue<D[K]>;
|
|
21
|
+
};
|
|
22
|
+
/** Write-only tokens supplied to the synchronous build callback. */
|
|
23
|
+
export type SqlInputTokens<D extends SqlInputMap> = {
|
|
24
|
+
readonly [K in keyof D]-?: SqlParam<SqlInputValue<D[K]>>;
|
|
25
|
+
};
|
|
26
|
+
/** Execution inputs cannot widen the template's declared contract. */
|
|
27
|
+
export type SqlExecutionParams<P extends object> = keyof P extends never ? {
|
|
28
|
+
readonly params?: Readonly<Record<string, never>>;
|
|
29
|
+
} : {
|
|
30
|
+
readonly params: NoInfer<P>;
|
|
31
|
+
};
|
|
32
|
+
/** @internal Opaque lifetime and ownership of a single build callback. */
|
|
33
|
+
export type SqlInputScope = {
|
|
34
|
+
readonly [scopeBrand]: true;
|
|
35
|
+
};
|
|
36
|
+
/** @internal Encoding and physical identity, with no read decoder or client authority. */
|
|
37
|
+
export type SqlInputContract = {
|
|
38
|
+
readonly encoder: ResultParameterEncoder;
|
|
39
|
+
readonly scalar: ScalarType | "Enum" | "Unknown";
|
|
40
|
+
readonly nullable: boolean;
|
|
41
|
+
readonly list: boolean;
|
|
42
|
+
readonly nativeType?: string;
|
|
43
|
+
readonly enumValues?: readonly string[];
|
|
44
|
+
readonly enumType?: QualifiedSqlName;
|
|
45
|
+
readonly jsonStorage?: "json" | "jsonb";
|
|
46
|
+
readonly columnIdentity?: object;
|
|
47
|
+
};
|
|
48
|
+
/** Authentic tokens remain recognizable after their build callback closes. */
|
|
49
|
+
export declare function isSqlParam(value: unknown): value is SqlParam<unknown>;
|
|
50
|
+
/** Authentic `qb.input` descriptors are declarations, never execution values. */
|
|
51
|
+
export declare function isSqlInput(value: unknown): value is SqlInput<unknown>;
|
|
52
|
+
/** @internal Snapshot descriptor metadata, never encode a sample value. */
|
|
53
|
+
export declare function createSqlInput<T>(params: {
|
|
54
|
+
contract: SqlInputContract;
|
|
55
|
+
}): SqlInput<T>;
|
|
56
|
+
/** @internal Read a descriptor or normalize an explicitly supplied decoder. */
|
|
57
|
+
export declare function sqlInputContract(params: {
|
|
58
|
+
input: SqlInput<unknown> | ResultDecoder<unknown>;
|
|
59
|
+
}): SqlInputContract;
|
|
60
|
+
/**
|
|
61
|
+
* @internal Create one isolated environment of authentic named tokens. `isHandle` is the
|
|
62
|
+
* calling builder bundle's own expression/source authenticity check, applied to execution values.
|
|
63
|
+
*/
|
|
64
|
+
export declare function createSqlInputScope<D extends SqlInputMap>(params: {
|
|
65
|
+
inputs: D;
|
|
66
|
+
isHandle: (value: object) => boolean;
|
|
67
|
+
}): {
|
|
68
|
+
readonly scope: SqlInputScope;
|
|
69
|
+
readonly params: SqlInputTokens<D>;
|
|
70
|
+
};
|
|
71
|
+
/** @internal Close admission even when a build callback throws. */
|
|
72
|
+
export declare function sealSqlInputScope(params: {
|
|
73
|
+
scope: SqlInputScope;
|
|
74
|
+
}): void;
|
|
75
|
+
/** @internal Tokens cannot enter new expressions after their build has returned. */
|
|
76
|
+
export declare function assertSqlParamBuilding(params: {
|
|
77
|
+
param: SqlParam<unknown>;
|
|
78
|
+
}): void;
|
|
79
|
+
/** @internal Read the token's write contract without exposing mutable state. */
|
|
80
|
+
export declare function sqlParamContract(params: {
|
|
81
|
+
param: SqlParam<unknown>;
|
|
82
|
+
}): SqlInputContract;
|
|
83
|
+
/** @internal Validate ownership when an admitted expression is structurally rendered. */
|
|
84
|
+
export declare function sqlParamKey(params: {
|
|
85
|
+
param: SqlParam<unknown>;
|
|
86
|
+
scope: SqlInputScope;
|
|
87
|
+
}): string;
|
|
88
|
+
/** @internal Ask the bundle that created this scope whether a value is one of its handles. */
|
|
89
|
+
export declare function sqlInputScopeHandle(params: {
|
|
90
|
+
scope: SqlInputScope;
|
|
91
|
+
value: object;
|
|
92
|
+
}): boolean;
|
|
93
|
+
/** @internal Frozen declaration keys; an open scope cannot be compiled. */
|
|
94
|
+
export declare function sqlInputScopeKeys(params: {
|
|
95
|
+
scope: SqlInputScope;
|
|
96
|
+
}): readonly string[];
|
|
97
|
+
export {};
|
|
98
|
+
//# sourceMappingURL=sql-input.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vibeorm/sql",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "Dialect-aware SQL layer for VibeORM v2 — SQL AST, renderers and capability tables for postgres, sqlite and mysql",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"orm",
|
|
@@ -33,18 +33,24 @@
|
|
|
33
33
|
".": {
|
|
34
34
|
"types": "./dist/index.d.ts",
|
|
35
35
|
"default": "./dist/index.js"
|
|
36
|
+
},
|
|
37
|
+
"./query": {
|
|
38
|
+
"types": "./dist/query/index.d.ts",
|
|
39
|
+
"default": "./dist/query/index.js"
|
|
36
40
|
}
|
|
37
41
|
},
|
|
38
42
|
"files": [
|
|
39
43
|
"dist",
|
|
40
|
-
"
|
|
44
|
+
"!dist/**/*.d.ts.map",
|
|
45
|
+
"README.md",
|
|
46
|
+
"LICENSE"
|
|
41
47
|
],
|
|
42
48
|
"engines": {
|
|
43
49
|
"node": ">=18",
|
|
44
50
|
"bun": ">=1.2.0"
|
|
45
51
|
},
|
|
46
52
|
"dependencies": {
|
|
47
|
-
"@vibeorm/schema": "
|
|
53
|
+
"@vibeorm/schema": "4.0.0"
|
|
48
54
|
},
|
|
49
55
|
"publishConfig": {
|
|
50
56
|
"access": "public"
|
package/dist/ast.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ast.d.ts","sourceRoot":"","sources":["../src/ast.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAC3E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAC9E;;;;;;;GAOG;AAEH,OAAO,KAAK,EACV,gBAAgB,EAChB,YAAY,EACZ,eAAe,EACf,iBAAiB,EACjB,QAAQ,EACR,eAAe,EAChB,MAAM,iBAAiB,CAAC;AAIzB,sDAAsD;AACtD,MAAM,MAAM,MAAM,GAAG;IACnB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,IAAI,EAAE,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