@prisma-next/sql-builder 0.0.1 → 0.3.0-dev.162

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.
@@ -0,0 +1,35 @@
1
+ import { _ as Scope, d as Expression, f as FieldProxy, g as QueryContext, m as ExpressionType, p as Functions, t as Db, u as AggregateFunctions, v as ScopeField } from "../db-C7A7Y4tB.mjs";
2
+ import { AnyExpression } from "@prisma-next/sql-relational-core/ast";
3
+ import { SqlStorage } from "@prisma-next/sql-contract/types";
4
+ import { SqlOperationEntry } from "@prisma-next/sql-operations";
5
+ import { Contract } from "@prisma-next/contract/types";
6
+ import { ExecutionContext } from "@prisma-next/sql-relational-core/query-lane-context";
7
+
8
+ //#region src/runtime/expression-impl.d.ts
9
+ /**
10
+ * Runtime wrapper around a relational-core AST expression node.
11
+ * Carries ScopeField metadata (codecId, nullable) for plan generation.
12
+ */
13
+ declare class ExpressionImpl<T extends ScopeField = ScopeField> implements Expression<T> {
14
+ readonly [ExpressionType]: T;
15
+ private readonly ast;
16
+ readonly field: T;
17
+ constructor(ast: AnyExpression, field: T);
18
+ buildAst(): AnyExpression;
19
+ }
20
+ //#endregion
21
+ //#region src/runtime/field-proxy.d.ts
22
+ declare function createFieldProxy<S extends Scope>(scope: S): FieldProxy<S>;
23
+ //#endregion
24
+ //#region src/runtime/functions.d.ts
25
+ declare function createFunctions<QC extends QueryContext>(queryOperationTypes: Readonly<Record<string, SqlOperationEntry>>): Functions<QC>;
26
+ declare function createAggregateFunctions<QC extends QueryContext>(queryOperationTypes: Readonly<Record<string, SqlOperationEntry>>): AggregateFunctions<QC>;
27
+ //#endregion
28
+ //#region src/runtime/sql.d.ts
29
+ interface SqlOptions<C extends Contract<SqlStorage>> {
30
+ readonly context: ExecutionContext<C>;
31
+ }
32
+ declare function sql<C extends Contract<SqlStorage>>(options: SqlOptions<C>): Db<C>;
33
+ //#endregion
34
+ export { type Db, ExpressionImpl, type SqlOptions, createAggregateFunctions, createFieldProxy, createFunctions, sql };
35
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../../src/runtime/expression-impl.ts","../../src/runtime/field-proxy.ts","../../src/runtime/functions.ts","../../src/runtime/sql.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;cASa,yBAAyB,aAAa,uBAAuB,WAAW;EAAxE,UACO,cAAA,CADO,EACU,CADV;EAAW,iBAAA,GAAA;EAAa,SAAA,KAAA,EAGjC,CAHiC;EAAkC,WAAA,CAAA,GAAA,EAKlE,aALkE,EAAA,KAAA,EAK5C,CAL4C;EAChD,QAAA,CAAA,CAAA,EASvB,aATuB;;;;iBCLrB,2BAA2B,cAAc,IAAI,WAAW;;;iBCsJxD,2BAA2B,mCACpB,SAAS,eAAe,sBAC5C,UAAU;iBAiBG,oCAAoC,mCAC7B,SAAS,eAAe,sBAC5C,mBAAmB;;;UCzKL,qBAAqB,SAAS;oBAC3B,iBAAiB;;iBAGrB,cAAc,SAAS,sBAAsB,WAAW,KAAK,GAAG"}