@prisma/orm-family-sql 8.0.0-rc.4-dev.3 → 8.0.0-rc.4-dev.5
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/builder.d.mts +2 -2
- package/dist/builder__runtime.d.mts +2 -2
- package/dist/builder__runtime.mjs +1 -1
- package/dist/builder__types.d.mts +2 -2
- package/dist/{db-BNSe9y6a-C_2R8G2n.d.mts → db-C_ktwEsR-BtOWHdBX.d.mts} +16 -4
- package/dist/db-C_ktwEsR-BtOWHdBX.d.mts.map +1 -0
- package/dist/{expression-CX5mTA-z.mjs → expression-BH-JqphR.mjs} +5 -1
- package/dist/expression-BH-JqphR.mjs.map +1 -0
- package/dist/{expression-FJK6Ar-d.d.mts → expression-DM5Yshj0.d.mts} +12 -3
- package/dist/{expression-FJK6Ar-d.d.mts.map → expression-DM5Yshj0.d.mts.map} +1 -1
- package/dist/family.d.mts +1 -1
- package/dist/family__runtime.d.mts +1 -1
- package/dist/{index-C-vQOMY_.d.mts → index-D_jsPMJK.d.mts} +2 -2
- package/dist/{index-C-vQOMY_.d.mts.map → index-D_jsPMJK.d.mts.map} +1 -1
- package/dist/lane-query-builder.d.mts +1 -1
- package/dist/orm-client.d.mts +1 -1
- package/dist/{prepared-statement-9QpkE6JG-C430V3MO.d.mts → prepared-statement-9QpkE6JG-Nk4rCzyU.d.mts} +2 -2
- package/dist/{prepared-statement-9QpkE6JG-C430V3MO.d.mts.map → prepared-statement-9QpkE6JG-Nk4rCzyU.d.mts.map} +1 -1
- package/dist/relational-core.d.mts +1 -1
- package/dist/relational-core.mjs +1 -1
- package/dist/relational-core__expression.d.mts +1 -1
- package/dist/relational-core__expression.mjs +1 -1
- package/dist/{runtime-DpKF2Yu2.d.mts → runtime-CYrsdEWR.d.mts} +3 -3
- package/dist/{runtime-DpKF2Yu2.d.mts.map → runtime-CYrsdEWR.d.mts.map} +1 -1
- package/dist/runtime.d.mts +2 -2
- package/dist/runtime__internal__prepared-query.d.mts +1 -1
- package/package.json +18 -18
- package/dist/db-BNSe9y6a-C_2R8G2n.d.mts.map +0 -1
- package/dist/expression-CX5mTA-z.mjs.map +0 -1
package/dist/builder.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { o as Expression, x as ScopeField } from "./expression-
|
|
2
|
-
import { _ as SelectQuery, a as DeleteQuery, c as GatedMethod, f as QueryContext, g as Scope, h as ResolveRow, i as Db, l as GroupedQuery, s as Functions, t as AggregateFunctions, u as InsertQuery, v as Subquery, w as UpdateQuery, x as TableProxy } from "./db-
|
|
1
|
+
import { o as Expression, x as ScopeField } from "./expression-DM5Yshj0.mjs";
|
|
2
|
+
import { _ as SelectQuery, a as DeleteQuery, c as GatedMethod, f as QueryContext, g as Scope, h as ResolveRow, i as Db, l as GroupedQuery, s as Functions, t as AggregateFunctions, u as InsertQuery, v as Subquery, w as UpdateQuery, x as TableProxy } from "./db-C_ktwEsR-BtOWHdBX.mjs";
|
|
3
3
|
export type { AggregateFunctions, Db, DeleteQuery, Expression, Functions, GatedMethod, GroupedQuery, InsertQuery, QueryContext, ResolveRow, Scope, ScopeField, SelectQuery, Subquery, TableProxy, UpdateQuery };
|
|
@@ -3,8 +3,8 @@ import "./types-UcHa2cTe.mjs";
|
|
|
3
3
|
import { i as SqlOperationEntry } from "./index-C5I8D-MB.mjs";
|
|
4
4
|
import { s as AnyExpression } from "./types-v3qxLLxo-DCeKv7yY.mjs";
|
|
5
5
|
import "./ast-HFcfQZr-.mjs";
|
|
6
|
-
import { l as RawCodecInferer, o as Expression, x as ScopeField } from "./expression-
|
|
7
|
-
import { S as TableProxyContract, f as QueryContext, g as Scope, i as Db, o as FieldProxy, p as RawLane, s as Functions, t as AggregateFunctions } from "./db-
|
|
6
|
+
import { l as RawCodecInferer, o as Expression, x as ScopeField } from "./expression-DM5Yshj0.mjs";
|
|
7
|
+
import { S as TableProxyContract, f as QueryContext, g as Scope, i as Db, o as FieldProxy, p as RawLane, s as Functions, t as AggregateFunctions } from "./db-C_ktwEsR-BtOWHdBX.mjs";
|
|
8
8
|
import { c as SqlAggregateDescriptorRegistry, r as ExecutionContext } from "./query-lane-context-Qa-eddrE-kuZ8Z86-.mjs";
|
|
9
9
|
import "./query-lane-context-XMvk7fmY.mjs";
|
|
10
10
|
import { Contract } from "@prisma/orm-framework/contract/types";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { C as LiteralExpr, D as OrExpr, F as SubqueryExpr, I as TableSource, L as UpdateAst, O as OrderByItem, P as SelectAst, S as ListExpression, T as NullCheckExpr, V as isAggregateFn, _ as InsertAst, c as DeleteAst, g as IdentifierRef, j as ProjectionItem, k as ParamRef, l as DerivedTableSource, n as AndExpr, o as ColumnRef, p as ExistsExpr, r as BinaryExpr, t as AggregateExpr, y as JoinAst } from "./types-Dt4e_jC--COeP8xzN.mjs";
|
|
2
2
|
import { t as collectOrderedParamRefs } from "./util-DQQgv2j1-D6INZaRG.mjs";
|
|
3
|
-
import { a as toExpr, n as codecOf, r as createRawSql } from "./expression-
|
|
3
|
+
import { a as toExpr, n as codecOf, r as createRawSql } from "./expression-BH-JqphR.mjs";
|
|
4
4
|
import { n as codecRefForStorageColumn } from "./codec-descriptor-registry-N0dhtKaH.mjs";
|
|
5
5
|
import { assertAnnotationsApplicable } from "@prisma/orm-framework/components/runtime";
|
|
6
6
|
//#region ../../../2-sql/4-lanes/sql-builder/dist/runtime/index.mjs
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { o as Expression, x as ScopeField } from "./expression-
|
|
2
|
-
import { C as UnboundTables, S as TableProxyContract, _ as SelectQuery, a as DeleteQuery, b as TableNamesAcrossNamespaces, c as GatedMethod, d as Namespace, f as QueryContext, g as Scope, h as ResolveRow, i as Db, l as GroupedQuery, m as RawTagFor, n as BooleanCodecType, p as RawLane, r as ContractRawTag, s as Functions, t as AggregateFunctions, u as InsertQuery, v as Subquery, w as UpdateQuery, x as TableProxy, y as TableInAnyNamespace } from "./db-
|
|
1
|
+
import { o as Expression, x as ScopeField } from "./expression-DM5Yshj0.mjs";
|
|
2
|
+
import { C as UnboundTables, S as TableProxyContract, _ as SelectQuery, a as DeleteQuery, b as TableNamesAcrossNamespaces, c as GatedMethod, d as Namespace, f as QueryContext, g as Scope, h as ResolveRow, i as Db, l as GroupedQuery, m as RawTagFor, n as BooleanCodecType, p as RawLane, r as ContractRawTag, s as Functions, t as AggregateFunctions, u as InsertQuery, v as Subquery, w as UpdateQuery, x as TableProxy, y as TableInAnyNamespace } from "./db-C_ktwEsR-BtOWHdBX.mjs";
|
|
3
3
|
export type { AggregateFunctions, BooleanCodecType, ContractRawTag, Db, DeleteQuery, Expression, Functions, GatedMethod, GroupedQuery, InsertQuery, Namespace, QueryContext, RawLane, RawTagFor, ResolveRow, Scope, ScopeField, SelectQuery, Subquery, TableInAnyNamespace, TableNamesAcrossNamespaces, TableProxy, TableProxyContract, UnboundTables, UpdateQuery };
|
|
@@ -4,10 +4,10 @@ import { t as StorageColumnMapAt } from "./types-UcHa2cTe.mjs";
|
|
|
4
4
|
import { Et as SelectAst, c as AnyFromSource } from "./types-v3qxLLxo-DCeKv7yY.mjs";
|
|
5
5
|
import "./ast-HFcfQZr-.mjs";
|
|
6
6
|
import { t as SqlQueryPlan } from "./plan-CDxduYaN-pLIyyJaB.mjs";
|
|
7
|
-
import { S as TraitExpression, c as RawAffectedCountQuery, f as RawRowQuery, g as RawSqlInterpolation, h as RawSqlBuilder, i as CodecTypesBase, o as Expression, r as CodecExpression, s as NoReservedRowColumn, x as ScopeField, y as RawSqlTag } from "./expression-
|
|
7
|
+
import { S as TraitExpression, c as RawAffectedCountQuery, f as RawRowQuery, g as RawSqlInterpolation, h as RawSqlBuilder, i as CodecTypesBase, o as Expression, r as CodecExpression, s as NoReservedRowColumn, x as ScopeField, y as RawSqlTag } from "./expression-DM5Yshj0.mjs";
|
|
8
8
|
import "./plan-BHLdb0Z7.mjs";
|
|
9
9
|
import { AnnotationValue, OperationKind, ValidAnnotations } from "@prisma/orm-framework/components/runtime";
|
|
10
|
-
//#region ../../../2-sql/4-lanes/sql-builder/dist/db-
|
|
10
|
+
//#region ../../../2-sql/4-lanes/sql-builder/dist/db-C_ktwEsR.d.mts
|
|
11
11
|
//#region src/scope.d.ts
|
|
12
12
|
type GatedMethod<Capabilities, Required, Method> = Capabilities extends Required ? Method : never;
|
|
13
13
|
declare const JoinOuterScope: unique symbol;
|
|
@@ -327,6 +327,18 @@ type SpecPreResolved<Spec extends ContractRawRowSpec<CT>, CT extends Record<stri
|
|
|
327
327
|
type RawRowFor<Spec extends ContractRawRowSpec<CodecTypes>, CodecTypes extends Record<string, {
|
|
328
328
|
readonly output: unknown;
|
|
329
329
|
}>> = ResolveRow<SpecScopeFields<Spec, CodecTypes>, CodecTypes, SpecPreResolved<Spec, CodecTypes>>;
|
|
330
|
+
/**
|
|
331
|
+
* What a row-spec'd statement publishes as `.returns`. Each declared key gets
|
|
332
|
+
* one column reference. The reference carries the codec id and nullability the
|
|
333
|
+
* entry stated, plus the type the row resolves for that key.
|
|
334
|
+
*
|
|
335
|
+
* A column reference keeps nullability in its own field rather than in the
|
|
336
|
+
* type it carries. These references do the same, so a ref fed back into a row
|
|
337
|
+
* spec resolves the type it came from, whichever form the inner entry took.
|
|
338
|
+
*/
|
|
339
|
+
type ContractRawRefs<Spec extends ContractRawRowSpec<CodecTypes>, CodecTypes extends Record<string, {
|
|
340
|
+
readonly output: unknown;
|
|
341
|
+
}>> = { readonly [K in keyof Spec]: ContractColumnRef<EntryScopeField<Spec[K]>['codecId'], EntryScopeField<Spec[K]>['nullable'], NonNullable<RawRowFor<Spec, CodecTypes>[K]>>; };
|
|
330
342
|
/**
|
|
331
343
|
* A raw template bound to the contract: the same builder the target-agnostic
|
|
332
344
|
* surface returns, with terminators that resolve their row type from the spec.
|
|
@@ -352,7 +364,7 @@ interface ContractRawBuilder<CodecTypes extends Record<string, {
|
|
|
352
364
|
codecId: S;
|
|
353
365
|
nullable: N;
|
|
354
366
|
}>;
|
|
355
|
-
returnsRow<Spec extends ContractRawRowSpec<CodecTypes>>(spec: Spec): RawRowQuery<RawRowFor<Spec, CodecTypes>>;
|
|
367
|
+
returnsRow<Spec extends ContractRawRowSpec<CodecTypes>>(spec: Spec): RawRowQuery<RawRowFor<Spec, CodecTypes>, ContractRawRefs<Spec, CodecTypes>>;
|
|
356
368
|
affectedCount(): RawAffectedCountQuery;
|
|
357
369
|
}
|
|
358
370
|
/** The contract-bound raw tag, as `db.raw.sql` exposes it. */
|
|
@@ -551,4 +563,4 @@ type Namespace<C extends TableProxyContract, NsId extends string & keyof C['stor
|
|
|
551
563
|
type Db<C extends TableProxyContract> = { readonly [Ns in keyof C['storage']['namespaces'] & string]: Namespace<C, Ns>; };
|
|
552
564
|
//#endregion
|
|
553
565
|
export { UnboundTables as C, TableProxyContract as S, SelectQuery as _, DeleteQuery as a, TableNamesAcrossNamespaces as b, GatedMethod as c, Namespace as d, QueryContext as f, Scope as g, ResolveRow as h, Db as i, GroupedQuery as l, RawTagFor as m, BooleanCodecType as n, FieldProxy as o, RawLane as p, ContractRawTag as r, Functions as s, AggregateFunctions as t, InsertQuery as u, Subquery as v, UpdateQuery as w, TableProxy as x, TableInAnyNamespace as y };
|
|
554
|
-
//# sourceMappingURL=db-
|
|
566
|
+
//# sourceMappingURL=db-C_ktwEsR-BtOWHdBX.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"db-C_ktwEsR-BtOWHdBX.d.mts","names":[],"sources":["../../../../2-sql/4-lanes/sql-builder/dist/db-C_ktwEsR.d.mts"],"mappings":";;;;;;;;;;;KAMK,YAAY,cAAc,UAAU,UAAU,qBAAqB,WAAW;cACrE;cACA;KACT,OAAO,QAAQ,WAAW,IAAI,EAAE;KAChC,WAAW,cAAc;KACzB,aAAa,eAAe;KAC5B;EACH,UAAU;EACV,YAAY,eAAe;;KAExB,WAAW,YAAY,YAAY;YAC5B;IACR,UAAU;IACV,YAAY,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4e_jC--COeP8xzN.mjs";
|
|
2
2
|
import { t as planFromAst } from "./plan-Dh0LbYIv-Crx5-ThG.mjs";
|
|
3
|
+
import { invariant } from "@prisma/orm-framework/utils/assertions";
|
|
3
4
|
import { runtimeError } from "@prisma/orm-framework/components/runtime";
|
|
4
5
|
//#region ../../../2-sql/4-lanes/relational-core/dist/exports/expression.mjs
|
|
5
6
|
/**
|
|
@@ -129,7 +130,10 @@ var RawSqlStatementBuilderImpl = class extends RawSqlBuilderImpl {
|
|
|
129
130
|
}
|
|
130
131
|
returnsRow(spec) {
|
|
131
132
|
const node = RawQueryAst.rows(this.parts, resolveRowSpec(spec));
|
|
133
|
+
const result = node.result;
|
|
134
|
+
invariant(result.kind === "rows", "RawQueryAst.rows built a non-rows result");
|
|
132
135
|
return {
|
|
136
|
+
returns: result.columns,
|
|
133
137
|
buildAst: () => node,
|
|
134
138
|
build: () => this.planFor(node)
|
|
135
139
|
};
|
|
@@ -145,4 +149,4 @@ var RawSqlStatementBuilderImpl = class extends RawSqlBuilderImpl {
|
|
|
145
149
|
//#endregion
|
|
146
150
|
export { toExpr as a, param as i, codecOf as n, createRawSql as r, buildOperation as t };
|
|
147
151
|
|
|
148
|
-
//# sourceMappingURL=expression-
|
|
152
|
+
//# sourceMappingURL=expression-BH-JqphR.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"expression-BH-JqphR.mjs","names":[],"sources":["../../../../2-sql/4-lanes/relational-core/dist/exports/expression.mjs"],"sourcesContent":["import { E as OperationExpr, M as RawExpr, N as RawQueryAst, k as ParamRef } from \"../types-Dt4e_jC-.mjs\";\nimport { t as planFromAst } from \"../plan-Dh0LbYIv.mjs\";\nimport { runtimeError } from \"@internal/framework-components/runtime\";\nimport { invariant } from \"@internal/utils/assertions\";\n//#region src/expression.ts\n/**\n* Resolve a raw value or an Expression into an AST expression node.\n*\n* When `value` is an Expression (duck-typed by its `buildAst` method), the AST it wraps is returned. Otherwise the value is embedded as a ParamRef tagged with the caller-supplied {@link CodecRef} (when known). The runtime resolves the ref via `contractCodecs.forCodecRef(codec)`; content-keyed memoisation collapses repeated lookups for the same logical column onto one shared codec.\n*\n* Operation implementations that compare a column-bound expression to a user value derive the column's {@link CodecRef} from the column-bound side (via {@link codecOf}) and forward it here so encode-side dispatch resolves to the per-instance codec for parameterized codec ids (`vector(1024)` vs. `vector(1536)`).\n*/\nfunction toExpr(value, codec) {\n\tif (isExpressionLike(value)) return value.buildAst();\n\tif (codec === void 0) throw runtimeError(\"RUNTIME.PARAM_REF_CODEC_REQUIRED\", `Cannot construct a ParamRef for a ${value === null ? \"null\" : typeof value} value without an explicit codec. Provide a CodecRef at the call site or use a column-bound builder path.`);\n\treturn ParamRef.of(value, { codec });\n}\n/**\n* Construct a `ParamRef` for a value whose codec identity is known at call time. Use this when interpolating a value into a raw SQL expression and the codec cannot be inferred from context — e.g. `param(myDate, { codecId: 'pg/timestamptz@1' })`.\n*/\nfunction param(value, opts) {\n\treturn ParamRef.of(value, { codec: { codecId: opts.codecId } });\n}\n/**\n* Derive the {@link CodecRef} carried by an expression-like value.\n*\n* Resolution order:\n* 1. `wrapper.codec` — explicit column-bound {@link CodecRef} stamped at field-proxy time.\n* 2. `wrapper.returnType.codec` — scope-level codec when the scope was built from contract storage.\n* 3. `{ codecId: wrapper.returnType.codecId }` — minimal ref derived from the expression's declared codec id (covers synthetic expressions like `count()` whose returnType has a known codec id but no explicit column binding).\n*\n* Returns `undefined` for raw scalar values (non-expression-like).\n*/\nfunction codecOf(value) {\n\tif (!isExpressionLike(value)) return void 0;\n\tconst wrapper = value;\n\tif (wrapper.codec) return wrapper.codec;\n\tif (wrapper.returnType?.codec) return wrapper.returnType.codec;\n\tif (wrapper.returnType?.codecId) return { codecId: wrapper.returnType.codecId };\n}\nfunction isExpressionLike(value) {\n\treturn typeof value === \"object\" && value !== null && \"buildAst\" in value && typeof value.buildAst === \"function\";\n}\n/**\n* Construct an OperationExpr AST node and wrap it as a typed Expression. Operation implementations use this to turn their user-facing arguments into the AST node the compilation pipeline eventually lowers to SQL.\n*/\nfunction buildOperation(spec) {\n\tconst [self, ...rest] = spec.args;\n\tconst op = new OperationExpr({\n\t\tmethod: spec.method,\n\t\tself,\n\t\targs: rest.length > 0 ? rest : void 0,\n\t\treturns: spec.returns,\n\t\tlowering: spec.lowering\n\t});\n\treturn {\n\t\treturnType: spec.returns,\n\t\tbuildAst: () => op\n\t};\n}\nfunction resolveInterpolation(adapter, value) {\n\tif (isExpressionLike(value)) return value.buildAst();\n\tif (value instanceof ParamRef) return value;\n\tif (typeof value === \"number\" || typeof value === \"bigint\" || typeof value === \"string\" || typeof value === \"boolean\" || value instanceof Uint8Array) return ParamRef.of(value, { codec: { codecId: adapter.inferCodec(value) } });\n\tthrow runtimeError(\"RUNTIME.RAW_SQL_UNSUPPORTED_INTERPOLATION\", \"unsupported JS value type for raw-SQL interpolation: wrap this value in `param(...)` with an explicit codec\");\n}\nfunction isRawRowQuery(value) {\n\treturn typeof value === \"object\" && value !== null && \"buildAst\" in value && typeof value.buildAst === \"function\" && \"build\" in value && typeof value.build === \"function\";\n}\nfunction templateParts(adapter, strings, values) {\n\tconst parts = [strings[0] ?? \"\"];\n\tvalues.forEach((value, i) => {\n\t\tif (isRawRowQuery(value)) parts.push(...value.buildAst().parts);\n\t\telse parts.push(resolveInterpolation(adapter, value));\n\t\tparts.push(strings[i + 1] ?? \"\");\n\t});\n\treturn parts;\n}\n/**\n* Normalizes each authored entry to a {@link RawQueryColumn}. The record is\n* assembled with `Object.fromEntries`, which defines each key as an own\n* property: a spec built at runtime with a `__proto__` key reaches the AST,\n* which refuses it by name, rather than silently setting the record's\n* prototype and leaving the column to vanish.\n*/\nfunction resolveRowSpec(spec) {\n\treturn Object.fromEntries(Object.entries(spec).map(([name, entry]) => [name, typeof entry === \"string\" ? {\n\t\tcodecId: entry,\n\t\tnullable: false\n\t} : {\n\t\tcodecId: entry.codecId,\n\t\tnullable: entry.nullable ?? false\n\t}]));\n}\nfunction createRawSql(adapter, planContext) {\n\tif (planContext === void 0) return (strings, ...values) => new RawSqlBuilderImpl(templateParts(adapter, strings, values));\n\tconst context = planContext;\n\treturn (strings, ...values) => new RawSqlStatementBuilderImpl(templateParts(adapter, strings, values), context);\n}\nvar RawSqlBuilderImpl = class {\n\tparts;\n\tconstructor(parts) {\n\t\tthis.parts = parts;\n\t}\n\treturns(spec) {\n\t\tconst codecId = typeof spec === \"string\" ? spec : spec.codecId;\n\t\tconst nullable = typeof spec === \"string\" ? false : spec.nullable ?? false;\n\t\tconst paramSpec = {\n\t\t\tcodecId,\n\t\t\tnullable\n\t\t};\n\t\tconst node = new RawExpr({\n\t\t\tparts: this.parts,\n\t\t\treturns: paramSpec\n\t\t});\n\t\treturn {\n\t\t\treturnType: {\n\t\t\t\tcodecId,\n\t\t\t\tnullable\n\t\t\t},\n\t\t\tbuildAst: () => node\n\t\t};\n\t}\n};\nvar RawSqlStatementBuilderImpl = class extends RawSqlBuilderImpl {\n\tplanContext;\n\tconstructor(parts, planContext) {\n\t\tsuper(parts);\n\t\tthis.planContext = planContext;\n\t}\n\treturnsRow(spec) {\n\t\tconst node = RawQueryAst.rows(this.parts, resolveRowSpec(spec));\n\t\tconst result = node.result;\n\t\tinvariant(result.kind === \"rows\", \"RawQueryAst.rows built a non-rows result\");\n\t\treturn {\n\t\t\treturns: result.columns,\n\t\t\tbuildAst: () => node,\n\t\t\tbuild: () => this.planFor(node)\n\t\t};\n\t}\n\taffectedCount() {\n\t\tconst node = RawQueryAst.affectedCount(this.parts);\n\t\treturn { build: () => this.planFor(node) };\n\t}\n\tplanFor(node) {\n\t\treturn planFromAst(node, this.planContext.contract, this.planContext.laneId);\n\t}\n};\n//#endregion\nexport { buildOperation, codecOf, createRawSql, param, toExpr };\n\n//# sourceMappingURL=expression.mjs.map"],"mappings":";;;;;;;;;;;;AAYA,SAAS,OAAO,OAAO,OAAO;CAC7B,IAAI,iBAAiB,KAAK,GAAG,OAAO,MAAM,SAAS;C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,KAAK;GACZ,SAAS;EACV,CAAC;EACD,OAAO;GACN,YAAY;IACX;IACA;GACD;GACA,gBAAgB;EACjB;CACD;AACD;AACA,IAAI,6BAA6B,cAAc,kBAAkB;CAChE;CACA,YAAY,OAAO,aAAa;EAC/B,MAAM,KAAK;EACX,KAAK,cAAc;CACpB;CACA,WAAW,MAAM;EAChB,MAAM,OAAO,YAAY,KAAK,KAAK,OAAO,eAAe,IAAI,CAAC;EAC9D,MAAM,SAAS,KAAK;EACpB,UAAU,OAAO,SAAS,QAAQ,0CAA0C;EAC5E,OAAO;GACN,SAAS,OAAO;GAChB,gBAAgB;GAChB,aAAa,KAAK,QAAQ,IAAI;EAC/B;CACD;CACA,gBAAgB;EACf,MAAM,OAAO,YAAY,cAAc,KAAK,KAAK;EACjD,OAAO,EAAE,aAAa,KAAK,QAAQ,IAAI,EAAE;CAC1C;CACA,QAAQ,MAAM;EACb,OAAO,YAAY,MAAM,KAAK,YAAY,UAAU,KAAK,YAAY,MAAM;CAC5E;AACD"}
|
|
@@ -2,7 +2,7 @@ import { c as SqlStorage } from "./sql-storage-8LqxeLAY-DH4DdUXx.mjs";
|
|
|
2
2
|
import { S as QueryOperationReturn } from "./types-BDUG29Df-LE85dIXP.mjs";
|
|
3
3
|
import "./types-UcHa2cTe.mjs";
|
|
4
4
|
import { t as SqlLoweringSpec } from "./index-C5I8D-MB.mjs";
|
|
5
|
-
import { St as RawQueryAst, T as CodecRef$1, Tt as RawSqlLiteral, _t as ParamRef, s as AnyExpression } from "./types-v3qxLLxo-DCeKv7yY.mjs";
|
|
5
|
+
import { Ct as RawQueryColumn, St as RawQueryAst, T as CodecRef$1, Tt as RawSqlLiteral, _t as ParamRef, s as AnyExpression } from "./types-v3qxLLxo-DCeKv7yY.mjs";
|
|
6
6
|
import { l as SqlStatementStats } from "./driver-types-BQtRkOJ0-Bv2RPSfr.mjs";
|
|
7
7
|
import { t as SqlQueryPlan } from "./plan-CDxduYaN-pLIyyJaB.mjs";
|
|
8
8
|
import { Contract } from "@prisma/orm-framework/contract/types";
|
|
@@ -200,7 +200,16 @@ interface RawPlanContext {
|
|
|
200
200
|
* (including data-modifying CTEs, whose `RETURNING` is what earns them a row
|
|
201
201
|
* spec) expressible.
|
|
202
202
|
*/
|
|
203
|
-
interface RawRowQuery<Row = unknown
|
|
203
|
+
interface RawRowQuery<Row = unknown, Refs extends Readonly<Record<string, RawQueryColumn>> = Readonly<Record<string, RawQueryColumn>>> {
|
|
204
|
+
/**
|
|
205
|
+
* What this statement declared. Each spec key gets one entry naming the
|
|
206
|
+
* codec that decodes the column and whether it may be null.
|
|
207
|
+
*
|
|
208
|
+
* Those entries are row-spec entries themselves. An outer statement that
|
|
209
|
+
* embeds this one can inherit a declaration instead of restating its codec
|
|
210
|
+
* id.
|
|
211
|
+
*/
|
|
212
|
+
readonly returns: Refs;
|
|
204
213
|
buildAst(): RawQueryAst;
|
|
205
214
|
build(): SqlQueryPlan<Row>;
|
|
206
215
|
}
|
|
@@ -254,4 +263,4 @@ declare function createRawSql(adapter: RawCodecInferer, planContext: RawPlanCont
|
|
|
254
263
|
declare function createRawSql(adapter: RawCodecInferer): RawSqlTag;
|
|
255
264
|
//#endregion
|
|
256
265
|
export { buildOperation as C, toExpr as D, param as E, TraitExpression as S, createRawSql as T, RawSqlStatementBuilder as _, CodecValue as a, ScalarListExpression as b, RawAffectedCountQuery as c, RawRow as d, RawRowQuery as f, RawSqlInterpolation as g, RawSqlBuilder as h, CodecTypesBase as i, RawCodecInferer as l, RawRowSpecEntry as m, BuildOperationSpec as n, Expression as o, RawRowSpec as p, CodecExpression as r, NoReservedRowColumn as s, AffectedCount as t, RawPlanContext as u, RawSqlStatementTag as v, codecOf as w, ScopeField as x, RawSqlTag as y };
|
|
257
|
-
//# sourceMappingURL=expression-
|
|
266
|
+
//# sourceMappingURL=expression-DM5Yshj0.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expression-
|
|
1
|
+
{"version":3,"file":"expression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,OAAO,aAAa,0BAA0B,WAAW;;;;;UAKpD;WACC,UAAU,SAAS;WACnB;;;;;;;;;;UAUD,YAAY,eAAe,aAAa,SAAS,eAAe,mBAAmB,SAAS,eAAe;;;;;;;;;WAS1G,SAAS;EAClB,YAAY;EACZ,SAAS,aAAa;;cAEV;;;;;;;;;;UAUJ,sBAAsB;YACpB;;;;;;;;UAQF;EACR,SAAS,aAAa;;;;;;;UAOd,+BAA+B;EACvC,WAAW,aAAa,YAAY,MAAM,OAAO,YAAY,OAAO;EACpE,iBAAiB;;;KAGd,aAAa,SAAS,yBAAyB,QAAQ,0BAA0B;;KAEjF,sBAAsB,SAAS,yBAAyB,QAAQ,0BAA0B;;KAE1F,uBAAuB,WAAW,cAAc,WAAW;;KAE3D,sBAAsB,uBAAuB;;;;;;;;iBAQjC,aAAa,SAAS,iBAAiB,aAAa,iBAAiB;iBACrE,aAAa,SAAS,kBAAkB"}
|
package/dist/family.d.mts
CHANGED
|
@@ -8,6 +8,6 @@ import { a as VerifySqlSchemaByDiffInput, c as computeSqlDiffVerdict, i as Stora
|
|
|
8
8
|
import { i as SqlSchemaVerifierBase, n as SqlContractSerializerBase, r as SqlEntityHydrationFactory, t as SqlContractSerializer } from "./ir-Bghjt-FG.mjs";
|
|
9
9
|
import { t as SqlMigration } from "./migration-CjDRZNep.mjs";
|
|
10
10
|
import { _ as toEnumMemberName, a as PslPrinterOptions, b as toModelName, c as PslTypeResolution, d as deriveBackRelationFieldName, f as deriveRelationFieldName, g as pluralize, h as parseRawDefault, i as InferredRelations, l as RelationField, m as mapDefault, n as DefaultMappingResult, o as PslTypeMap, p as inferRelations, r as EnumInfo, s as PslTypeReference, t as DefaultMappingOptions, u as buildChildRelationField, v as toEnumName, y as toFieldName } from "./psl-infer-CCAD6FWA.mjs";
|
|
11
|
-
import { a as timestampNowRuntimeGenerator, n as UNBOUND_DOMAIN_NAMESPACE_ID, r as resolveDomainModel, t as ResolvedDomainModel } from "./runtime-
|
|
11
|
+
import { a as timestampNowRuntimeGenerator, n as UNBOUND_DOMAIN_NAMESPACE_ID, r as resolveDomainModel, t as ResolvedDomainModel } from "./runtime-CYrsdEWR.mjs";
|
|
12
12
|
import { n as parseContractMarkerRow, t as ContractMarkerRow } from "./verify-zDRnw0Rn.mjs";
|
|
13
13
|
export { type CodecControlHooks, type ContractMarkerRow, type ContractToSchemaIROptions, type ControlPolicySubject, type CreateSqlMigrationPlanOptions, type DefaultMappingOptions, type DefaultMappingResult, type DefaultRenderer, type DefaultResolver, type EnumInfo, type EnumNamespaceSchemaResolver, type ExecuteRequestLowerer, type ExpandNativeTypeInput, type FieldEvent, type FieldEventContext, INIT_ADDITIVE_POLICY, type InferredRelations, type Lowerer, SqlMigration as Migration, type MigrationOperationClass, type MigrationOperationPolicy, type MigrationPlan, type MigrationPlanOperation, type MigrationPlanner, type MigrationPlannerConflict, type MigrationPlannerResult, type NativeTypeExpander, type NativeTypeNormalizer, type PlanFieldEventOperationsOptions, type PslPrinterOptions, type PslTypeMap, type PslTypeReference, type PslTypeResolution, type RelationField, type ResolveIdentityValueInput, type ResolvedDomainModel, type ResolvedStorageTable, SqlContractSerializer, SqlContractSerializerBase, type SqlControlAdapter, type SqlControlExtensionDescriptor, type SqlControlFamilyInstance, type SqlControlTargetDescriptor, type SqlDescribedContractSpace, type SqlDiffVerdict, type SqlDiffVerdictInput, type SqlEntityHydrationFactory, type SqlMigrationPlan, type SqlMigrationPlanContractInfo, type SqlMigrationPlanOperation, type SqlMigrationPlanOperationStep, type SqlMigrationPlanOperationTarget, type SqlMigrationPlanner, type SqlMigrationPlannerPlanOptions, type SqlMigrationRunner, type SqlMigrationRunnerErrorCode, type SqlMigrationRunnerExecuteCallbacks, type SqlMigrationRunnerExecuteOptions, type SqlMigrationRunnerFailure, type SqlMigrationRunnerResult, type SqlMigrationRunnerSuccessValue, type SqlPlanTargetDetails, type SqlPlannerConflict, type SqlPlannerConflictKind, type SqlPlannerConflictLocation, type SqlPlannerFailureResult, type SqlPlannerResult, type SqlPlannerSuccessResult, type SqlSchemaDiffFn, type SqlSchemaDiffInput, type SqlSchemaDiffResult, SqlSchemaVerifierBase, type StorageTypePlanResult, type StorageTypeVerdict, type StorageTypeVerdictInput, type SuppressionRecord, type TargetMigrationsCapability, UNBOUND_DOMAIN_NAMESPACE_ID, type VerifySqlSchemaByDiffInput, arraysEqual, assembleAuthoringContributions, buildChildRelationField, buildNativeTypeExpander, classifyDiffSubjectGranularity, classifySqlDiffIssue, computeSqlDiffVerdict, computeStorageTypeVerdict, contractNamespaceToSchemaIR, contractToSchemaIR, controlPolicyForCall, createMigrationPlan, deriveBackRelationFieldName, deriveRelationFieldName, detectDestructiveChanges, extractCodecControlHooks, inferRelations, mapDefault, parseContractMarkerRow, parseRawDefault, partitionCallsByControlPolicy, partitionIssuesByControlPolicy, planFieldEventOperations, plannerFailure, plannerSuccess, pluralize, resolveDomainModel, resolveStorageTable, runnerFailure, runnerSuccess, temporalAuthoringPresets, temporalCodecPreset, temporalCodecPresetWithPrecision, timestampNowControlDescriptor, timestampNowRuntimeGenerator, toEnumMemberName, toEnumName, toFieldName, toModelName, verifySqlSchemaByDiff };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { n as resolveStorageTable, t as ResolvedStorageTable } from "./resolve-storage-table-Nyrgk4h8.mjs";
|
|
2
|
-
import { a as timestampNowRuntimeGenerator, i as sqlRuntimeFamilyDescriptor, n as UNBOUND_DOMAIN_NAMESPACE_ID, r as resolveDomainModel, t as ResolvedDomainModel } from "./runtime-
|
|
2
|
+
import { a as timestampNowRuntimeGenerator, i as sqlRuntimeFamilyDescriptor, n as UNBOUND_DOMAIN_NAMESPACE_ID, r as resolveDomainModel, t as ResolvedDomainModel } from "./runtime-CYrsdEWR.mjs";
|
|
3
3
|
export { type ResolvedDomainModel, type ResolvedStorageTable, UNBOUND_DOMAIN_NAMESPACE_ID, sqlRuntimeFamilyDescriptor as default, resolveDomainModel, resolveStorageTable, timestampNowRuntimeGenerator };
|
|
@@ -7,7 +7,7 @@ import { t as SqlExecutionPlan } from "./sql-execution-plan--jKyLpe5-CMGhgO0M.mj
|
|
|
7
7
|
import "./plan-BHLdb0Z7.mjs";
|
|
8
8
|
import { n as CodecDescriptorRegistry } from "./query-lane-context-Qa-eddrE-kuZ8Z86-.mjs";
|
|
9
9
|
import "./query-lane-context-XMvk7fmY.mjs";
|
|
10
|
-
import { k as SqlMiddleware } from "./prepared-statement-9QpkE6JG-
|
|
10
|
+
import { k as SqlMiddleware } from "./prepared-statement-9QpkE6JG-Nk4rCzyU.mjs";
|
|
11
11
|
import { Contract } from "@prisma/orm-framework/contract/types";
|
|
12
12
|
import { AfterExecuteResult as AfterExecuteResult$1, AfterQueryResult as AfterQueryResult$1, ExecuteInterceptResult as ExecuteInterceptResult$1, QueryInterceptResult as QueryInterceptResult$1, RuntimeLog as Log } from "@prisma/orm-framework/components/runtime";
|
|
13
13
|
//#region ../../../2-sql/5-runtime/dist/index.d.mts
|
|
@@ -81,4 +81,4 @@ interface LintsOptions {
|
|
|
81
81
|
declare function lints(options?: LintsOptions): SqlMiddleware;
|
|
82
82
|
//#endregion
|
|
83
83
|
export { LintsOptions as a, budgets as c, lints as d, lowerSqlPlan as f, ExecuteInterceptResult$1 as i, createAstCodecRegistry as l, validateContractCodecMappings as m, AfterQueryResult$1 as n, Log as o, validateCodecRegistryCompleteness as p, BudgetsOptions as r, QueryInterceptResult$1 as s, AfterExecuteResult$1 as t, extractCodecIds as u };
|
|
84
|
-
//# sourceMappingURL=index-
|
|
84
|
+
//# sourceMappingURL=index-D_jsPMJK.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-D_jsPMJK.d.mts","names":[],"sources":["../../../../2-sql/5-runtime/dist/index.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;iBAiBiB,uBAAuB,aAAa,0BAA0B;;;iBAG9D,gBAAgB,UAAU,SAAS,cAAc;iBACjD,8BAA8B,UAAU,yBAAyB,UAAU,SAAS;iBACpF,kCAAkC,UAAU,yBAAyB,UAAU,SAAS;;;;;;;;;;;;iBAYxF,aAAa,KAAK,SAAS,QAAQ,aAAa,SAAS,aAAa,mBAAmB,UAAU,SAAS,aAAa,WAAW,aAAa,OAAO,iBAAiB;;;UAGhL;WACC;WACA;WACA,YAAY;WACZ;WACA;aACE;aACA;;;iBAGI,QAAQ,UAAU,iBAAiB;;;UAG1C;WACC;aACE;aACA;aACA;aACA;aACA;;WAEF;;;;;;;;;;;;;;;;iBAgBM,MAAM,UAAU,eAAe"}
|
|
@@ -57,7 +57,7 @@ type TableAsterisk<TTableName extends string = string, THash extends StorageHash
|
|
|
57
57
|
readonly '~table': TTableName;
|
|
58
58
|
} & Brand<'[info] referencing all columns that belong to the following table reference:', `${TTableName}@${THash}`>;
|
|
59
59
|
//#endregion
|
|
60
|
-
//#region ../sql-builder/dist/db-
|
|
60
|
+
//#region ../sql-builder/dist/db-C_ktwEsR.d.mts
|
|
61
61
|
//#endregion
|
|
62
62
|
//#region src/types/db.d.ts
|
|
63
63
|
type CapabilitiesBase = Record<string, Record<string, boolean>>;
|
package/dist/orm-client.d.mts
CHANGED
|
@@ -4,7 +4,7 @@ import { f as ExtractFieldOutputTypes, l as ExtractAggregateTypes, p as ExtractQ
|
|
|
4
4
|
import "./types-UcHa2cTe.mjs";
|
|
5
5
|
import { It as WhereArg, T as CodecRef$1, a as AndExpr, g as BinaryExpr, gt as OrderByItem, ht as OrExpr, pt as NullCheckExpr, r as AggregateFn, s as AnyExpression } from "./types-v3qxLLxo-DCeKv7yY.mjs";
|
|
6
6
|
import "./ast-HFcfQZr-.mjs";
|
|
7
|
-
import { o as Expression } from "./expression-
|
|
7
|
+
import { o as Expression } from "./expression-DM5Yshj0.mjs";
|
|
8
8
|
import { r as ExecutionContext } from "./query-lane-context-Qa-eddrE-kuZ8Z86-.mjs";
|
|
9
9
|
import "./query-lane-context-XMvk7fmY.mjs";
|
|
10
10
|
import { h as RuntimeScope, o as ComputeColumnJsType } from "./types-CyxGtOOh-BggSa6Fe.mjs";
|
|
@@ -5,7 +5,7 @@ import { O as ContractCodecRegistry, Ot as SqlCodecCallContext, T as CodecRef$1,
|
|
|
5
5
|
import { c as SqlQueryable, i as SqlDriver, l as SqlStatementStats, r as SqlConnection } from "./driver-types-BQtRkOJ0-Bv2RPSfr.mjs";
|
|
6
6
|
import { o as MarkerReadResult, t as Adapter } from "./ast-HFcfQZr-.mjs";
|
|
7
7
|
import { t as SqlQueryPlan } from "./plan-CDxduYaN-pLIyyJaB.mjs";
|
|
8
|
-
import { a as CodecValue, i as CodecTypesBase, l as RawCodecInferer, o as Expression, t as AffectedCount } from "./expression-
|
|
8
|
+
import { a as CodecValue, i as CodecTypesBase, l as RawCodecInferer, o as Expression, t as AffectedCount } from "./expression-DM5Yshj0.mjs";
|
|
9
9
|
import { t as SqlExecutionPlan } from "./sql-execution-plan--jKyLpe5-CMGhgO0M.mjs";
|
|
10
10
|
import "./plan-BHLdb0Z7.mjs";
|
|
11
11
|
import { r as ExecutionContext } from "./query-lane-context-Qa-eddrE-kuZ8Z86-.mjs";
|
|
@@ -526,4 +526,4 @@ declare class PreparedExecutionImpl<Params> implements PreparedExecution<Params>
|
|
|
526
526
|
}
|
|
527
527
|
//#endregion
|
|
528
528
|
export { SqlMiddlewareContext as A, TransactionContext as B, RuntimeParameterizedCodecDescriptor as C, SqlExecutionStack as D, RuntimeTransaction as E, SqlRuntimeExtensionDescriptor as F, encodeParamsWithMetadata as G, createExecutionContext as H, SqlRuntimeExtensionInstance as I, withTransaction as J, preparedStatementExecute as K, SqlRuntimeTargetDescriptor as L, SqlRuntimeAdapterInstance as M, SqlRuntimeBase as N, SqlExecutionStackWithDriver as O, SqlRuntimeDriverInstance as P, SqlStaticContributions as R, RuntimeMutationDefaultGenerator as S, RuntimeTelemetryEvent as T, createSqlExecutionStack as U, VerifyMarkerOption as V, deriveParamMetadata as W, PreparedStatementInternals as _, DeclaredNullable as a, RuntimeConnection as b, ParamSpec as c, PreparedExecution as d, PreparedExecutionImpl as f, PreparedStatementImpl as g, PreparedStatementExecuteTarget as h, DeclaredCodecId as i, SqlRuntimeAdapterDescriptor as j, SqlMiddleware as k, ParamsFromDeclaration as l, PreparedStatement as m, ConnectionProvider as n, GeneratorStability as o, PreparedFor as p, preparedStatementQuery as q, Declaration as r, MarkerReader as s, BindSiteParams as t, PrepareCallback as u, PreparedStatementQueryTarget as v, RuntimeQueryable as w, RuntimeFamilyAdapter as x, Runtime as y, TelemetryOutcome as z };
|
|
529
|
-
//# sourceMappingURL=prepared-statement-9QpkE6JG-
|
|
529
|
+
//# sourceMappingURL=prepared-statement-9QpkE6JG-Nk4rCzyU.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prepared-statement-9QpkE6JG-
|
|
1
|
+
{"version":3,"file":"prepared-statement-9QpkE6JG-Nk4rCzyU.d.mts","names":[],"sources":["../../../../2-sql/5-runtime/dist/prepared-statement-9QpkE6JG.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;UAaU;WACC,OAAO;WACP;;iBAEM,oBAAoB,KAAK,uBAAuB;iBAChD,yBAAyB,4BAA4B,mBAAmB,iBAAiB,KAAK,qBAAqB,iBAAiB,wBAAwB;;;UAGnK,6BAA6B;WAC5B,UAAU,SAAS;;;;;;UAMpB;WACC,KAAK;WACL,MAAM;;UAEP,cAAc,kBAAkB,0BAA0B,iCAAiC,kBAAkB,kBAAkB,mBAAmB;WACjJ;;;;;;;;;;;;;;;;;;;EAmBT,eAAe,OAAO,WAAW,KAAK,uBAAuB,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;EA0BrE,aAAa,MAAM,kBAAkB,KAAK,sBAAsB,SAAS,mBAAmB,oBAAoB;EAChH,gBAAgB,MAAM,kBAAkB,KAAK,uBAAuB,QAAQ;EAC5E,OAAO,KAAK,yBAAyB,MAAM,kBAAkB,KAAK,uBAAuB;EACzF,YAAY,MAAM,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,kBAAkB,QAAQ,QAAQ,UAAU,wBAAwB,oBAAoB;;;;;;;;;;cAU1F,sBAAsB,mBAAmB,kBAAkB,SAAS;WACvE;WACA,KAAK;WACL,MAAM;WACN,gBAAgB;WAChB,eAAe;WACf,wBAAwB;EACjC,YAAY,WAAW;EACvB,QAAQ,QAAQ,kBAAkB,QAAQ,QAAQ,UAAU,wBAAwB,QAAQ"}
|
|
@@ -3,7 +3,7 @@ import { a as SqlDriverState, c as SqlQueryable, i as SqlDriver, l as SqlStateme
|
|
|
3
3
|
import { a as DdlColumnDefaultVisitor, c as DdlTableConstraint, d as LiteralColumnDefault, f as PrimaryKeyConstraint, i as DdlColumnDefault, l as ForeignKeyConstraint, m as isDdlNode, n as CheckExpressionConstraint, o as DdlColumnRenderContext, p as UniqueConstraint, r as DdlColumn, s as DdlNode, t as AnyDdlColumnDefault, u as FunctionColumnDefault } from "./ddl-types-CXx4vPz6-BsgrnSUY.mjs";
|
|
4
4
|
import { $ as sqlVarcharColumn, A as sqlCharEncode, B as sqlIntDescriptor, C as SqlVarcharCodec, D as sqlCharColumn, E as compact, F as sqlFloatDescriptor, G as sqlTextEncode, H as sqlTextColumn, I as sqlFloatEncode, J as sqlTimestampDecodeJson, K as sqlTimestampColumn, L as sqlFloatEncodeJson, M as sqlFloatColumn, N as sqlFloatDecode, O as sqlCharDecode, P as sqlFloatDecodeJson, Q as sqlTimestampRenderOutputType, R as sqlIntColumn, S as SqlTimestampDescriptor, T as collectOrderedParamRefs, U as sqlTextDecode, V as sqlIntEncode, W as sqlTextDescriptor, X as sqlTimestampEncode, Y as sqlTimestampDescriptor, Z as sqlTimestampEncodeJson, _ as SqlIntCodec, a as LowererContext, b as SqlTextDescriptor, c as SQL_FLOAT_CODEC_ID, d as SQL_TIMESTAMP_CODEC_ID, et as sqlVarcharDecode, f as SQL_VARCHAR_CODEC_ID, g as SqlFloatDescriptor, h as SqlFloatCodec, i as Lowerer, j as sqlCharRenderOutputType, k as sqlCharDescriptor, l as SQL_INT_CODEC_ID, m as SqlCharDescriptor, n as AdapterProfile, nt as sqlVarcharEncode, o as MarkerReadResult, p as SqlCharCodec, q as sqlTimestampDecode, r as AdapterTarget, rt as sqlVarcharRenderOutputType, s as SQL_CHAR_CODEC_ID, t as Adapter, tt as sqlVarcharDescriptor, u as SQL_TEXT_CODEC_ID, v as SqlIntDescriptor, w as SqlVarcharDescriptor, x as SqlTimestampCodec, y as SqlTextCodec, z as sqlIntDecode } from "./ast-HFcfQZr-.mjs";
|
|
5
5
|
import { n as planFromAst, t as SqlQueryPlan } from "./plan-CDxduYaN-pLIyyJaB.mjs";
|
|
6
|
-
import { C as buildOperation, D as toExpr, E as param, S as TraitExpression, T as createRawSql, _ as RawSqlStatementBuilder, a as CodecValue, b as ScalarListExpression, c as RawAffectedCountQuery, d as RawRow, f as RawRowQuery, g as RawSqlInterpolation, h as RawSqlBuilder, i as CodecTypesBase, l as RawCodecInferer, m as RawRowSpecEntry, n as BuildOperationSpec, o as Expression, p as RawRowSpec, r as CodecExpression, s as NoReservedRowColumn, t as AffectedCount, u as RawPlanContext, v as RawSqlStatementTag, w as codecOf, x as ScopeField, y as RawSqlTag } from "./expression-
|
|
6
|
+
import { C as buildOperation, D as toExpr, E as param, S as TraitExpression, T as createRawSql, _ as RawSqlStatementBuilder, a as CodecValue, b as ScalarListExpression, c as RawAffectedCountQuery, d as RawRow, f as RawRowQuery, g as RawSqlInterpolation, h as RawSqlBuilder, i as CodecTypesBase, l as RawCodecInferer, m as RawRowSpecEntry, n as BuildOperationSpec, o as Expression, p as RawRowSpec, r as CodecExpression, s as NoReservedRowColumn, t as AffectedCount, u as RawPlanContext, v as RawSqlStatementTag, w as codecOf, x as ScopeField, y as RawSqlTag } from "./expression-DM5Yshj0.mjs";
|
|
7
7
|
import { t as SqlExecutionPlan } from "./sql-execution-plan--jKyLpe5-CMGhgO0M.mjs";
|
|
8
8
|
import "./plan-BHLdb0Z7.mjs";
|
|
9
9
|
import { a as MutationDefaultsOptions, c as SqlAggregateDescriptorRegistry, d as TypeHelperRegistry, i as MutationDefaultsOp, n as CodecDescriptorRegistry, o as ResolvedSqlAggregate, r as ExecutionContext, t as AppliedMutationDefault } from "./query-lane-context-Qa-eddrE-kuZ8Z86-.mjs";
|
package/dist/relational-core.mjs
CHANGED
|
@@ -3,6 +3,6 @@ import { a as ForeignKeyConstraint, c as PrimaryKeyConstraint, i as DdlNode, l a
|
|
|
3
3
|
import { n as compact, t as collectOrderedParamRefs } from "./util-DQQgv2j1-D6INZaRG.mjs";
|
|
4
4
|
import { A as sqlFloatDescriptor, B as sqlTextEncode, C as sqlCharDecode, D as sqlFloatColumn, E as sqlCharRenderOutputType, F as sqlIntDescriptor, G as sqlTimestampEncode, H as sqlTimestampDecode, I as sqlIntEncode, J as sqlVarcharColumn, K as sqlTimestampEncodeJson, L as sqlTextColumn, M as sqlFloatEncodeJson, N as sqlIntColumn, O as sqlFloatDecode, P as sqlIntDecode, Q as sqlVarcharRenderOutputType, R as sqlTextDecode, S as sqlCharColumn, T as sqlCharEncode, U as sqlTimestampDecodeJson, V as sqlTimestampColumn, W as sqlTimestampDescriptor, X as sqlVarcharDescriptor, Y as sqlVarcharDecode, Z as sqlVarcharEncode, _ as SqlTextDescriptor, a as SQL_FLOAT_CODEC_ID, b as SqlVarcharCodec, c as SQL_TIMESTAMP_CODEC_ID, d as SqlCharDescriptor, f as SqlFloatCodec, g as SqlTextCodec, h as SqlIntDescriptor, i as SQL_CHAR_CODEC_ID, j as sqlFloatEncode, k as sqlFloatDecodeJson, l as SQL_VARCHAR_CODEC_ID, m as SqlIntCodec, n as JsonDocumentProjection, o as SQL_INT_CODEC_ID, p as SqlFloatDescriptor, q as sqlTimestampRenderOutputType, r as NativeJsonValueProjection, s as SQL_TEXT_CODEC_ID, t as CodecJsonValueProjection, u as SqlCharCodec, v as SqlTimestampCodec, w as sqlCharDescriptor, x as SqlVarcharDescriptor, y as SqlTimestampDescriptor, z as sqlTextDescriptor } from "./ast-Lbl4VwqP.mjs";
|
|
5
5
|
import { t as planFromAst } from "./plan-Dh0LbYIv-Crx5-ThG.mjs";
|
|
6
|
-
import { a as toExpr, i as param, n as codecOf, r as createRawSql, t as buildOperation } from "./expression-
|
|
6
|
+
import { a as toExpr, i as param, n as codecOf, r as createRawSql, t as buildOperation } from "./expression-BH-JqphR.mjs";
|
|
7
7
|
import { t as createSqlParamRefMutator } from "./middleware-CMr4CHNz-DHIUdxlm.mjs";
|
|
8
8
|
export { AggregateExpr, AndExpr, BinaryExpr, CaseExpr, CastExpr, CheckExpressionConstraint, CodecJsonValueProjection, ColumnRef, DdlColumn, DdlColumnDefault, DdlNode, DefaultValueExpr, DeleteAst, DerivedTableSource, DoNothingConflictAction, DoUpdateSetConflictAction, EqColJoinOn, ExistsExpr, ForeignKeyConstraint, FunctionCallExpr, FunctionColumnDefault, FunctionSource, IdentifierRef, InsertAst, InsertOnConflict, JoinAst, JsonArrayAggExpr, JsonDocumentProjection, JsonObjectExpr, ListExpression, LiteralColumnDefault, LiteralExpr, NativeJsonValueProjection, NotExpr, NullCheckExpr, OperationExpr, OrExpr, OrderByItem, ParamRef, PreparedParamRef, PrimaryKeyConstraint, ProjectionItem, RawExpr, RawQueryAst, SQL_CHAR_CODEC_ID, SQL_FLOAT_CODEC_ID, SQL_INT_CODEC_ID, SQL_TEXT_CODEC_ID, SQL_TIMESTAMP_CODEC_ID, SQL_VARCHAR_CODEC_ID, SelectAst, SqlCharCodec, SqlCharDescriptor, SqlFloatCodec, SqlFloatDescriptor, SqlIntCodec, SqlIntDescriptor, SqlTextCodec, SqlTextDescriptor, SqlTimestampCodec, SqlTimestampDescriptor, SqlVarcharCodec, SqlVarcharDescriptor, SubqueryExpr, TableSource, UniqueConstraint, UpdateAst, WindowFuncExpr, aggregateFnNames, buildOperation, codecOf, collectOrderedParamRefs, compact, createRawSql, createSqlParamRefMutator, frozenCodecRef, isAggregateFn, isDdlNode, isQueryAst, isWhereExpr, param, planFromAst, queryAstKinds, sqlCharColumn, sqlCharDecode, sqlCharDescriptor, sqlCharEncode, sqlCharRenderOutputType, sqlFloatColumn, sqlFloatDecode, sqlFloatDecodeJson, sqlFloatDescriptor, sqlFloatEncode, sqlFloatEncodeJson, sqlIntColumn, sqlIntDecode, sqlIntDescriptor, sqlIntEncode, sqlTextColumn, sqlTextDecode, sqlTextDescriptor, sqlTextEncode, sqlTimestampColumn, sqlTimestampDecode, sqlTimestampDecodeJson, sqlTimestampDescriptor, sqlTimestampEncode, sqlTimestampEncodeJson, sqlTimestampRenderOutputType, sqlVarcharColumn, sqlVarcharDecode, sqlVarcharDescriptor, sqlVarcharEncode, sqlVarcharRenderOutputType, toExpr, whereExprKinds };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as buildOperation, D as toExpr, E as param, S as TraitExpression, T as createRawSql, _ as RawSqlStatementBuilder, a as CodecValue, b as ScalarListExpression, c as RawAffectedCountQuery, d as RawRow, f as RawRowQuery, g as RawSqlInterpolation, h as RawSqlBuilder, i as CodecTypesBase, l as RawCodecInferer, m as RawRowSpecEntry, n as BuildOperationSpec, o as Expression, p as RawRowSpec, r as CodecExpression, s as NoReservedRowColumn, t as AffectedCount, u as RawPlanContext, v as RawSqlStatementTag, w as codecOf, x as ScopeField, y as RawSqlTag } from "./expression-
|
|
1
|
+
import { C as buildOperation, D as toExpr, E as param, S as TraitExpression, T as createRawSql, _ as RawSqlStatementBuilder, a as CodecValue, b as ScalarListExpression, c as RawAffectedCountQuery, d as RawRow, f as RawRowQuery, g as RawSqlInterpolation, h as RawSqlBuilder, i as CodecTypesBase, l as RawCodecInferer, m as RawRowSpecEntry, n as BuildOperationSpec, o as Expression, p as RawRowSpec, r as CodecExpression, s as NoReservedRowColumn, t as AffectedCount, u as RawPlanContext, v as RawSqlStatementTag, w as codecOf, x as ScopeField, y as RawSqlTag } from "./expression-DM5Yshj0.mjs";
|
|
2
2
|
export { AffectedCount, BuildOperationSpec, CodecExpression, CodecTypesBase, CodecValue, Expression, NoReservedRowColumn, RawAffectedCountQuery, RawCodecInferer, RawPlanContext, RawRow, RawRowQuery, RawRowSpec, RawRowSpecEntry, RawSqlBuilder, RawSqlInterpolation, RawSqlStatementBuilder, RawSqlStatementTag, RawSqlTag, ScalarListExpression, ScopeField, TraitExpression, buildOperation, codecOf, createRawSql, param, toExpr };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as toExpr, i as param, n as codecOf, r as createRawSql, t as buildOperation } from "./expression-
|
|
1
|
+
import { a as toExpr, i as param, n as codecOf, r as createRawSql, t as buildOperation } from "./expression-BH-JqphR.mjs";
|
|
2
2
|
export { buildOperation, codecOf, createRawSql, param, toExpr };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./resolve-storage-table-Nyrgk4h8.mjs";
|
|
2
|
-
import { S as RuntimeMutationDefaultGenerator } from "./prepared-statement-9QpkE6JG-
|
|
3
|
-
import "./index-
|
|
2
|
+
import { S as RuntimeMutationDefaultGenerator } from "./prepared-statement-9QpkE6JG-Nk4rCzyU.mjs";
|
|
3
|
+
import "./index-D_jsPMJK.mjs";
|
|
4
4
|
import { ResolvedDomainModel, UNBOUND_DOMAIN_NAMESPACE_ID, resolveDomainModel } from "@prisma/orm-framework/contract/types";
|
|
5
5
|
import { RuntimeFamilyDescriptor, RuntimeFamilyInstance } from "@prisma/orm-framework/components/execution";
|
|
6
6
|
//#region ../../../2-sql/9-family/dist/runtime.d.mts
|
|
@@ -44,4 +44,4 @@ declare const sqlRuntimeFamilyDescriptor: RuntimeFamilyDescriptor<'sql', SqlRunt
|
|
|
44
44
|
declare function timestampNowRuntimeGenerator(): RuntimeMutationDefaultGenerator;
|
|
45
45
|
//#endregion
|
|
46
46
|
export { timestampNowRuntimeGenerator as a, sqlRuntimeFamilyDescriptor as i, UNBOUND_DOMAIN_NAMESPACE_ID as n, resolveDomainModel as r, ResolvedDomainModel as t };
|
|
47
|
-
//# sourceMappingURL=runtime-
|
|
47
|
+
//# sourceMappingURL=runtime-CYrsdEWR.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-
|
|
1
|
+
{"version":3,"file":"runtime-CYrsdEWR.d.mts","names":[],"sources":["../../../../2-sql/9-family/dist/runtime.d.mts"],"mappings":";;;;;;;;;;;;;;;UAaU,iCAAiC;;;;;;;;;;;cAW7B,4BAA4B,+BAA+B;;;;;;;;;;;;;;;;;iBAiBxD,gCAAgC"}
|
package/dist/runtime.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { o as MarkerReadResult } from "./ast-HFcfQZr-.mjs";
|
|
2
2
|
import { d as TypeHelperRegistry, r as ExecutionContext } from "./query-lane-context-Qa-eddrE-kuZ8Z86-.mjs";
|
|
3
|
-
import { A as SqlMiddlewareContext, B as TransactionContext, C as RuntimeParameterizedCodecDescriptor, D as SqlExecutionStack, E as RuntimeTransaction, F as SqlRuntimeExtensionDescriptor, G as encodeParamsWithMetadata, H as createExecutionContext, I as SqlRuntimeExtensionInstance, J as withTransaction, L as SqlRuntimeTargetDescriptor, M as SqlRuntimeAdapterInstance, N as SqlRuntimeBase, O as SqlExecutionStackWithDriver, P as SqlRuntimeDriverInstance, R as SqlStaticContributions, S as RuntimeMutationDefaultGenerator, T as RuntimeTelemetryEvent, U as createSqlExecutionStack, V as VerifyMarkerOption, W as deriveParamMetadata, _ as PreparedStatementInternals, a as DeclaredNullable, b as RuntimeConnection, c as ParamSpec, d as PreparedExecution, f as PreparedExecutionImpl, g as PreparedStatementImpl, i as DeclaredCodecId, j as SqlRuntimeAdapterDescriptor, k as SqlMiddleware, l as ParamsFromDeclaration, m as PreparedStatement, n as ConnectionProvider, o as GeneratorStability, p as PreparedFor, r as Declaration, s as MarkerReader, t as BindSiteParams, u as PrepareCallback, w as RuntimeQueryable, x as RuntimeFamilyAdapter, y as Runtime, z as TelemetryOutcome } from "./prepared-statement-9QpkE6JG-
|
|
4
|
-
import { a as LintsOptions, c as budgets, d as lints, f as lowerSqlPlan, i as ExecuteInterceptResult, l as createAstCodecRegistry, m as validateContractCodecMappings, n as AfterQueryResult, o as Log, p as validateCodecRegistryCompleteness, r as BudgetsOptions, s as QueryInterceptResult, t as AfterExecuteResult, u as extractCodecIds } from "./index-
|
|
3
|
+
import { A as SqlMiddlewareContext, B as TransactionContext, C as RuntimeParameterizedCodecDescriptor, D as SqlExecutionStack, E as RuntimeTransaction, F as SqlRuntimeExtensionDescriptor, G as encodeParamsWithMetadata, H as createExecutionContext, I as SqlRuntimeExtensionInstance, J as withTransaction, L as SqlRuntimeTargetDescriptor, M as SqlRuntimeAdapterInstance, N as SqlRuntimeBase, O as SqlExecutionStackWithDriver, P as SqlRuntimeDriverInstance, R as SqlStaticContributions, S as RuntimeMutationDefaultGenerator, T as RuntimeTelemetryEvent, U as createSqlExecutionStack, V as VerifyMarkerOption, W as deriveParamMetadata, _ as PreparedStatementInternals, a as DeclaredNullable, b as RuntimeConnection, c as ParamSpec, d as PreparedExecution, f as PreparedExecutionImpl, g as PreparedStatementImpl, i as DeclaredCodecId, j as SqlRuntimeAdapterDescriptor, k as SqlMiddleware, l as ParamsFromDeclaration, m as PreparedStatement, n as ConnectionProvider, o as GeneratorStability, p as PreparedFor, r as Declaration, s as MarkerReader, t as BindSiteParams, u as PrepareCallback, w as RuntimeQueryable, x as RuntimeFamilyAdapter, y as Runtime, z as TelemetryOutcome } from "./prepared-statement-9QpkE6JG-Nk4rCzyU.mjs";
|
|
4
|
+
import { a as LintsOptions, c as budgets, d as lints, f as lowerSqlPlan, i as ExecuteInterceptResult, l as createAstCodecRegistry, m as validateContractCodecMappings, n as AfterQueryResult, o as Log, p as validateCodecRegistryCompleteness, r as BudgetsOptions, s as QueryInterceptResult, t as AfterExecuteResult, u as extractCodecIds } from "./index-D_jsPMJK.mjs";
|
|
5
5
|
export { type AfterExecuteResult, type AfterQueryResult, type BindSiteParams, type BudgetsOptions, type ConnectionProvider, type Declaration, type DeclaredCodecId, type DeclaredNullable, type ExecuteInterceptResult, type ExecutionContext, type GeneratorStability, type LintsOptions, type Log, type MarkerReadResult, type MarkerReader, type ParamSpec, type ParamsFromDeclaration, type PrepareCallback, type PreparedExecution, PreparedExecutionImpl, type PreparedFor, type PreparedStatement, PreparedStatementImpl, type PreparedStatementInternals, type QueryInterceptResult, type Runtime, type RuntimeConnection, type RuntimeFamilyAdapter, type RuntimeMutationDefaultGenerator, type RuntimeParameterizedCodecDescriptor, type RuntimeQueryable, type RuntimeTelemetryEvent, type RuntimeTransaction, type SqlExecutionStack, type SqlExecutionStackWithDriver, type SqlMiddleware, type SqlMiddlewareContext, type SqlRuntimeAdapterDescriptor, type SqlRuntimeAdapterInstance, SqlRuntimeBase, type SqlRuntimeDriverInstance, type SqlRuntimeExtensionDescriptor, type SqlRuntimeExtensionInstance, type SqlRuntimeTargetDescriptor, type SqlStaticContributions, type TelemetryOutcome, type TransactionContext, type TypeHelperRegistry, type VerifyMarkerOption, budgets, createAstCodecRegistry, createExecutionContext, createSqlExecutionStack, deriveParamMetadata, encodeParamsWithMetadata, extractCodecIds, lints, lowerSqlPlan, validateCodecRegistryCompleteness, validateContractCodecMappings, withTransaction };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { K as preparedStatementExecute, h as PreparedStatementExecuteTarget, q as preparedStatementQuery, v as PreparedStatementQueryTarget } from "./prepared-statement-9QpkE6JG-
|
|
1
|
+
import { K as preparedStatementExecute, h as PreparedStatementExecuteTarget, q as preparedStatementQuery, v as PreparedStatementQueryTarget } from "./prepared-statement-9QpkE6JG-Nk4rCzyU.mjs";
|
|
2
2
|
export { type PreparedStatementExecuteTarget, type PreparedStatementQueryTarget, preparedStatementExecute, preparedStatementQuery };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/orm-family-sql",
|
|
3
|
-
"version": "8.0.0-rc.4-dev.
|
|
3
|
+
"version": "8.0.0-rc.4-dev.5",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
"dist"
|
|
10
10
|
],
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@prisma/orm-framework": "8.0.0-rc.4-dev.
|
|
13
|
-
"@prisma/orm-toolchain": "8.0.0-rc.4-dev.
|
|
12
|
+
"@prisma/orm-framework": "8.0.0-rc.4-dev.5",
|
|
13
|
+
"@prisma/orm-toolchain": "8.0.0-rc.4-dev.5",
|
|
14
14
|
"@standard-schema/spec": "^1.1.0",
|
|
15
15
|
"arktype": "^2.2.2",
|
|
16
16
|
"pathe": "^2.0.3",
|
|
@@ -18,21 +18,21 @@
|
|
|
18
18
|
"ts-toolbelt": "^9.6.0"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@internal/family-sql": "8.0.0-rc.4-dev.
|
|
22
|
-
"@internal/sql-builder": "8.0.0-rc.4-dev.
|
|
23
|
-
"@internal/sql-contract": "8.0.0-rc.4-dev.
|
|
24
|
-
"@internal/sql-contract-emitter": "8.0.0-rc.4-dev.
|
|
25
|
-
"@internal/sql-contract-psl": "8.0.0-rc.4-dev.
|
|
26
|
-
"@internal/sql-contract-ts": "8.0.0-rc.4-dev.
|
|
27
|
-
"@internal/sql-errors": "8.0.0-rc.4-dev.
|
|
28
|
-
"@internal/sql-lane-query-builder": "8.0.0-rc.4-dev.
|
|
29
|
-
"@internal/sql-operations": "8.0.0-rc.4-dev.
|
|
30
|
-
"@internal/sql-orm-client": "8.0.0-rc.4-dev.
|
|
31
|
-
"@internal/sql-relational-core": "8.0.0-rc.4-dev.
|
|
32
|
-
"@internal/sql-runtime": "8.0.0-rc.4-dev.
|
|
33
|
-
"@internal/sql-schema-ir": "8.0.0-rc.4-dev.
|
|
34
|
-
"@repo/tsconfig": "8.0.0-rc.4-dev.
|
|
35
|
-
"@repo/tsdown": "8.0.0-rc.4-dev.
|
|
21
|
+
"@internal/family-sql": "8.0.0-rc.4-dev.5",
|
|
22
|
+
"@internal/sql-builder": "8.0.0-rc.4-dev.5",
|
|
23
|
+
"@internal/sql-contract": "8.0.0-rc.4-dev.5",
|
|
24
|
+
"@internal/sql-contract-emitter": "8.0.0-rc.4-dev.5",
|
|
25
|
+
"@internal/sql-contract-psl": "8.0.0-rc.4-dev.5",
|
|
26
|
+
"@internal/sql-contract-ts": "8.0.0-rc.4-dev.5",
|
|
27
|
+
"@internal/sql-errors": "8.0.0-rc.4-dev.5",
|
|
28
|
+
"@internal/sql-lane-query-builder": "8.0.0-rc.4-dev.5",
|
|
29
|
+
"@internal/sql-operations": "8.0.0-rc.4-dev.5",
|
|
30
|
+
"@internal/sql-orm-client": "8.0.0-rc.4-dev.5",
|
|
31
|
+
"@internal/sql-relational-core": "8.0.0-rc.4-dev.5",
|
|
32
|
+
"@internal/sql-runtime": "8.0.0-rc.4-dev.5",
|
|
33
|
+
"@internal/sql-schema-ir": "8.0.0-rc.4-dev.5",
|
|
34
|
+
"@repo/tsconfig": "8.0.0-rc.4-dev.5",
|
|
35
|
+
"@repo/tsdown": "8.0.0-rc.4-dev.5",
|
|
36
36
|
"tsdown": "0.22.14",
|
|
37
37
|
"typescript": "5.9.3"
|
|
38
38
|
},
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"db-BNSe9y6a-C_2R8G2n.d.mts","names":[],"sources":["../../../../2-sql/4-lanes/sql-builder/dist/db-BNSe9y6a.d.mts"],"mappings":";;;;;;;;;;;KAMK,YAAY,cAAc,UAAU,UAAU,qBAAqB,WAAW;cACrE;cACA;KACT,OAAO,QAAQ,WAAW,IAAI,EAAE;KAChC,WAAW,cAAc;KACzB,aAAa,eAAe;KAC5B;EACH,UAAU;EACV,YAAY,eAAe;;KAExB,WAAW,YAAY,YAAY;YAC5B;IACR,UAAU;IACV,YAAY,OAAO,OAAO;;EAE5B,qBAAqB;EACrB,YAAY;;KAET,aAAa,qBAAqB,cAAc;EACnD,UAAU,yBAAyB;EACnC,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AAO,WAAW,QAAQ,WAAW,iBAAiB,KAAK,UAAU,QAAQ,0BAA0B,eAAe,GAAG,MAAM,SAAS,YAAY,IAAI,gBAAgB;EACxK,UAAU,YAAY,IAAI,gBAAgB;;;;KAIvC,mBAAmB,eAAe;KAClC,mBAAmB,SAAS,eAAe,SAAS;KACpD,kBAAkB,SAAS;WACrB,QAAQ,SAAS;;KAEvB;WACM;aACE,YAAY;;WAEd;aACE,YAAY,SAAS;eACnB,SAAS;;;WAGb,cAAc;;KAEpB,kBAAkB;WACZ,SAAS;KACf,+BAA+B,SAAS,eAAe,iBAAiB,yBAAyB,SAAS,eAAe;KACzH,cAAc,UAAU,kCAAkC,QAAQ,2BAA2B,KAAK,oBAAoB,GAAG;KACzH,2BAA2B,UAAU,yBAAyB,cAAc,mCAAmC,kBAAkB,2BAA2B,yBAAyB;KACrL,oBAAoB,UAAU,oBAAoB,0BAA0B,cAAc,6BAA6B,mBAAmB,kBAAkB,2BAA2B,SAAS,kBAAkB,2BAA2B,OAAO,uBAAuB;KAC3Q,eAAe,UAAU,oBAAoB,qBAAqB,uBAAuB,kBAAkB,2BAA2B,OAAO;KAC7I,UAAU,UAAU,oBAAoB,4BAA4B,0CAA0C,cAAc,kBAAkB,2BAA2B,kBAAkB,WAAW,GAAG,MAAM;;;;;;;;;KAS/M,GAAG,UAAU,kCAAkC,YAAY,sCAAsC,UAAU,GAAG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"expression-CX5mTA-z.mjs","names":[],"sources":["../../../../2-sql/4-lanes/relational-core/dist/exports/expression.mjs"],"sourcesContent":["import { E as OperationExpr, M as RawExpr, N as RawQueryAst, k as ParamRef } from \"../types-Dt4e_jC-.mjs\";\nimport { t as planFromAst } from \"../plan-Dh0LbYIv.mjs\";\nimport { runtimeError } from \"@internal/framework-components/runtime\";\n//#region src/expression.ts\n/**\n* Resolve a raw value or an Expression into an AST expression node.\n*\n* When `value` is an Expression (duck-typed by its `buildAst` method), the AST it wraps is returned. Otherwise the value is embedded as a ParamRef tagged with the caller-supplied {@link CodecRef} (when known). The runtime resolves the ref via `contractCodecs.forCodecRef(codec)`; content-keyed memoisation collapses repeated lookups for the same logical column onto one shared codec.\n*\n* Operation implementations that compare a column-bound expression to a user value derive the column's {@link CodecRef} from the column-bound side (via {@link codecOf}) and forward it here so encode-side dispatch resolves to the per-instance codec for parameterized codec ids (`vector(1024)` vs. `vector(1536)`).\n*/\nfunction toExpr(value, codec) {\n\tif (isExpressionLike(value)) return value.buildAst();\n\tif (codec === void 0) throw runtimeError(\"RUNTIME.PARAM_REF_CODEC_REQUIRED\", `Cannot construct a ParamRef for a ${value === null ? \"null\" : typeof value} value without an explicit codec. Provide a CodecRef at the call site or use a column-bound builder path.`);\n\treturn ParamRef.of(value, { codec });\n}\n/**\n* Construct a `ParamRef` for a value whose codec identity is known at call time. Use this when interpolating a value into a raw SQL expression and the codec cannot be inferred from context — e.g. `param(myDate, { codecId: 'pg/timestamptz@1' })`.\n*/\nfunction param(value, opts) {\n\treturn ParamRef.of(value, { codec: { codecId: opts.codecId } });\n}\n/**\n* Derive the {@link CodecRef} carried by an expression-like value.\n*\n* Resolution order:\n* 1. `wrapper.codec` — explicit column-bound {@link CodecRef} stamped at field-proxy time.\n* 2. `wrapper.returnType.codec` — scope-level codec when the scope was built from contract storage.\n* 3. `{ codecId: wrapper.returnType.codecId }` — minimal ref derived from the expression's declared codec id (covers synthetic expressions like `count()` whose returnType has a known codec id but no explicit column binding).\n*\n* Returns `undefined` for raw scalar values (non-expression-like).\n*/\nfunction codecOf(value) {\n\tif (!isExpressionLike(value)) return void 0;\n\tconst wrapper = value;\n\tif (wrapper.codec) return wrapper.codec;\n\tif (wrapper.returnType?.codec) return wrapper.returnType.codec;\n\tif (wrapper.returnType?.codecId) return { codecId: wrapper.returnType.codecId };\n}\nfunction isExpressionLike(value) {\n\treturn typeof value === \"object\" && value !== null && \"buildAst\" in value && typeof value.buildAst === \"function\";\n}\n/**\n* Construct an OperationExpr AST node and wrap it as a typed Expression. Operation implementations use this to turn their user-facing arguments into the AST node the compilation pipeline eventually lowers to SQL.\n*/\nfunction buildOperation(spec) {\n\tconst [self, ...rest] = spec.args;\n\tconst op = new OperationExpr({\n\t\tmethod: spec.method,\n\t\tself,\n\t\targs: rest.length > 0 ? rest : void 0,\n\t\treturns: spec.returns,\n\t\tlowering: spec.lowering\n\t});\n\treturn {\n\t\treturnType: spec.returns,\n\t\tbuildAst: () => op\n\t};\n}\nfunction resolveInterpolation(adapter, value) {\n\tif (isExpressionLike(value)) return value.buildAst();\n\tif (value instanceof ParamRef) return value;\n\tif (typeof value === \"number\" || typeof value === \"bigint\" || typeof value === \"string\" || typeof value === \"boolean\" || value instanceof Uint8Array) return ParamRef.of(value, { codec: { codecId: adapter.inferCodec(value) } });\n\tthrow runtimeError(\"RUNTIME.RAW_SQL_UNSUPPORTED_INTERPOLATION\", \"unsupported JS value type for raw-SQL interpolation: wrap this value in `param(...)` with an explicit codec\");\n}\nfunction isRawRowQuery(value) {\n\treturn typeof value === \"object\" && value !== null && \"buildAst\" in value && typeof value.buildAst === \"function\" && \"build\" in value && typeof value.build === \"function\";\n}\nfunction templateParts(adapter, strings, values) {\n\tconst parts = [strings[0] ?? \"\"];\n\tvalues.forEach((value, i) => {\n\t\tif (isRawRowQuery(value)) parts.push(...value.buildAst().parts);\n\t\telse parts.push(resolveInterpolation(adapter, value));\n\t\tparts.push(strings[i + 1] ?? \"\");\n\t});\n\treturn parts;\n}\n/**\n* Normalizes each authored entry to a {@link RawQueryColumn}. The record is\n* assembled with `Object.fromEntries`, which defines each key as an own\n* property: a spec built at runtime with a `__proto__` key reaches the AST,\n* which refuses it by name, rather than silently setting the record's\n* prototype and leaving the column to vanish.\n*/\nfunction resolveRowSpec(spec) {\n\treturn Object.fromEntries(Object.entries(spec).map(([name, entry]) => [name, typeof entry === \"string\" ? {\n\t\tcodecId: entry,\n\t\tnullable: false\n\t} : {\n\t\tcodecId: entry.codecId,\n\t\tnullable: entry.nullable ?? false\n\t}]));\n}\nfunction createRawSql(adapter, planContext) {\n\tif (planContext === void 0) return (strings, ...values) => new RawSqlBuilderImpl(templateParts(adapter, strings, values));\n\tconst context = planContext;\n\treturn (strings, ...values) => new RawSqlStatementBuilderImpl(templateParts(adapter, strings, values), context);\n}\nvar RawSqlBuilderImpl = class {\n\tparts;\n\tconstructor(parts) {\n\t\tthis.parts = parts;\n\t}\n\treturns(spec) {\n\t\tconst codecId = typeof spec === \"string\" ? spec : spec.codecId;\n\t\tconst nullable = typeof spec === \"string\" ? false : spec.nullable ?? false;\n\t\tconst paramSpec = {\n\t\t\tcodecId,\n\t\t\tnullable\n\t\t};\n\t\tconst node = new RawExpr({\n\t\t\tparts: this.parts,\n\t\t\treturns: paramSpec\n\t\t});\n\t\treturn {\n\t\t\treturnType: {\n\t\t\t\tcodecId,\n\t\t\t\tnullable\n\t\t\t},\n\t\t\tbuildAst: () => node\n\t\t};\n\t}\n};\nvar RawSqlStatementBuilderImpl = class extends RawSqlBuilderImpl {\n\tplanContext;\n\tconstructor(parts, planContext) {\n\t\tsuper(parts);\n\t\tthis.planContext = planContext;\n\t}\n\treturnsRow(spec) {\n\t\tconst node = RawQueryAst.rows(this.parts, resolveRowSpec(spec));\n\t\treturn {\n\t\t\tbuildAst: () => node,\n\t\t\tbuild: () => this.planFor(node)\n\t\t};\n\t}\n\taffectedCount() {\n\t\tconst node = RawQueryAst.affectedCount(this.parts);\n\t\treturn { build: () => this.planFor(node) };\n\t}\n\tplanFor(node) {\n\t\treturn planFromAst(node, this.planContext.contract, this.planContext.laneId);\n\t}\n};\n//#endregion\nexport { buildOperation, codecOf, createRawSql, param, toExpr };\n\n//# sourceMappingURL=expression.mjs.map"],"mappings":";;;;;;;;;;;AAWA,SAAS,OAAO,OAAO,OAAO;CAC7B,IAAI,iBAAiB,KAAK,GAAG,OAAO,MAAM,SAAS;CACnD,IAAI,UAAU,KAAK,GAAG,MAAM,aAAa,oCAAoC,qCAAqC,UAA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