@prisma/orm-family-sql 8.0.0-rc.17-dev.26 → 8.0.0-rc.17-dev.28

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.
@@ -2,7 +2,7 @@ import { l as SqlStorage } from "./sql-storage-BTlJLUID-CGy3wuH4.mjs";
2
2
  import "./types-Uv3oTMAb.mjs";
3
3
  import { r as SqlOperationDescriptors } from "./index-We-mbWnZ.mjs";
4
4
  import { E as CodecRef$1, Pt as SqlCodecCallContext, S as Codec$1, h as AnyQueryAst, ht as LoweredStatement, k as ContractCodecRegistry, mt as LoweredParam } from "./types-Sh5HuaZE-CqThc46M.mjs";
5
- import { c as SqlQueryable, i as SqlDriver, l as SqlStatementStats, r as SqlConnection, u as SqlTransaction } from "./driver-types-DRsYeq3j-X_D6hNMZ.mjs";
5
+ import { c as SqlQueryable, i as SqlDriver, l as SqlStatementStats, r as SqlConnection } from "./driver-types-DRsYeq3j-X_D6hNMZ.mjs";
6
6
  import { n as SqlQueryPlan } from "./plan-cGEaSXHv-j0w37mVT.mjs";
7
7
  import { a as CodecValue, i as CodecTypesBase, l as RawCodecInferer, o as Expression, t as AffectedCount } from "./expression-Ck1wys3N-RNyviMcU.mjs";
8
8
  import "./expression-DWcDQHh9.mjs";
@@ -13,13 +13,13 @@ import { n as ExecutionContext } from "./query-lane-context-C2AXsoFa-COSQOvZz.mj
13
13
  import "./query-lane-context-BsZs5lvB.mjs";
14
14
  import { h as RuntimeScope } from "./types-D09NAayg-CNrpjo7Z.mjs";
15
15
  import "./types-DAkmn9FV.mjs";
16
- import { i as SqlParamRefMutator } from "./middleware-mLwvcOLS-wIYSKgog.mjs";
17
- import "./middleware-FHkIPvYR.mjs";
16
+ import { i as SqlParamRefMutator } from "./middleware-YsFLC19Y-xhimGDiS.mjs";
17
+ import "./middleware-DOKGNt72.mjs";
18
18
  import { AnyCodecDescriptor, CodecDescriptor } from "@prisma/orm-framework/components/codec";
19
19
  import { Contract, JsonValue, PlanMeta } from "@prisma/orm-framework/contract/types";
20
- import { AfterExecuteResult, AfterQueryResult, AsyncIterableResult, ExecuteInterceptResult, ExecutionPlan, MutationDefaultGeneratorContributor, QueryInterceptResult, RuntimeCore, RuntimeExecuteOptions, RuntimeLog, RuntimeMiddleware, RuntimeMiddlewareContext } from "@prisma/orm-framework/components/runtime";
20
+ import { ActivityContext, ActivityEndedResult, ActivityFinalizedResult, AsyncIterableResult, ExecuteInterceptResult, ExecutionPlan, MutationDefaultGeneratorContributor, QueryInterceptResult, RuntimeActivity, RuntimeCore, RuntimeExecuteOptions, RuntimeLog, RuntimeMiddleware } from "@prisma/orm-framework/components/runtime";
21
21
  import { ExecutionStack, RuntimeAdapterDescriptor, RuntimeAdapterInstance, RuntimeDriverDescriptor, RuntimeDriverInstance, RuntimeExtensionDescriptor, RuntimeExtensionInstance, RuntimeTargetDescriptor, RuntimeTargetInstance } from "@prisma/orm-framework/components/execution";
22
- //#region ../../../2-sql/5-runtime/dist/prepared-statement-YtgdlN7e.d.mts
22
+ //#region ../../../2-sql/5-runtime/dist/prepared-statement-Bs9TKj5u.d.mts
23
23
  //#region src/codecs/encoding.d.ts
24
24
  interface ParamMetadata {
25
25
  readonly codec: CodecRef$1 | undefined;
@@ -29,7 +29,7 @@ declare function deriveParamMetadata(ast: AnyQueryAst): readonly ParamMetadata[]
29
29
  declare function encodeParamsWithMetadata(values: readonly unknown[], metadata: readonly ParamMetadata[], ctx: SqlCodecCallContext, contractCodecs?: ContractCodecRegistry): Promise<readonly unknown[]>;
30
30
  //#endregion
31
31
  //#region src/middleware/sql-middleware.d.ts
32
- interface SqlMiddlewareContext extends RuntimeMiddlewareContext {
32
+ interface SqlMiddlewareContext extends ActivityContext {
33
33
  readonly contract: Contract<SqlStorage>;
34
34
  }
35
35
  /**
@@ -42,6 +42,9 @@ interface DraftPlan {
42
42
  }
43
43
  interface SqlMiddleware<TCodecMap extends Record<string, unknown> = Record<string, unknown>> extends RuntimeMiddleware<SqlExecutionPlan, SqlParamRefMutator<TCodecMap>> {
44
44
  readonly familyId?: 'sql';
45
+ activityStarted?(activity: RuntimeActivity, ctx: SqlMiddlewareContext): Promise<void>;
46
+ activityEnded?(activity: RuntimeActivity, result: ActivityEndedResult, ctx: SqlMiddlewareContext): Promise<void>;
47
+ activityFinalized?(activity: RuntimeActivity, result: ActivityFinalizedResult, ctx: SqlMiddlewareContext): Promise<void>;
45
48
  /**
46
49
  * Rewrite the query AST before it is lowered to SQL. Middlewares run in
47
50
  * registration order; each sees the predecessor's output, so rewrites
@@ -62,62 +65,16 @@ interface SqlMiddleware<TCodecMap extends Record<string, unknown> = Record<strin
62
65
  */
63
66
  beforeCompile?(draft: DraftPlan, ctx: SqlMiddlewareContext): Promise<DraftPlan | undefined>;
64
67
  /**
65
- * Mutate `ParamRef.value` slots before encode runs. The third
66
- * `params` argument is a {@link SqlParamRefMutator} scoped to value
67
- * slots only — SQL strings, projections, and `ParamRef` membership
68
- * are not mutable. Existing `(plan)` and `(plan, ctx)` middleware
69
- * bodies that ignore the additional argument continue to compile
70
- * and run unchanged.
68
+ * Runs after lowering, before parameter encoding: `beforeCompile → lowerSqlPlan → beforeEncode → encodeParams → intercept → driver`. Throw to block the statement.
71
69
  *
72
- * Lifecycle position:
73
- * `beforeCompile → lowerSqlPlan → beforeQuery → encodeParams → interceptQuery → driver query`.
74
- *
75
- * The plan handed in is the SQL execution plan after lowering but
76
- * *before* parameter encoding: `plan.params[i]` is the user-domain
77
- * value the mutator's `entries()` iterator surfaces (e.g. an
78
- * `EncryptedEnvelopeBase` for a cipherstash-codec'd column, or a
79
- * plain JS value for non-codec'd ParamRefs). Mutations applied via
80
- * `params.replaceValue` / `replaceValues` are visible to encode,
81
- * which then renders the mutated value through the column's codec.
82
- *
83
- * `ctx.signal` carries the per-operation `AbortSignal` (ADR 207);
84
- * middleware that wraps a network SDK forwards `ctx.signal` to
85
- * that SDK. Cooperative cancellation: a body that ignores the
86
- * signal still surfaces `RUNTIME.ABORTED { phase: 'beforeQuery' }`
87
- * promptly via the runtime's race against the signal.
70
+ * `plan.params[i]` is the user-domain value the mutator's `entries()` surfaces. Changes made through `params.replaceValue` / `replaceValues` are encoded through the column's codec. A body that ignores `ctx.signal` still fails promptly with `RUNTIME.ABORTED { phase: 'beforeEncode' }`.
88
71
  */
89
- beforeQuery?(plan: SqlExecutionPlan, ctx: SqlMiddlewareContext, params?: SqlParamRefMutator<TCodecMap>): void | Promise<void>;
90
- interceptQuery?(plan: SqlExecutionPlan, ctx: SqlMiddlewareContext): Promise<QueryInterceptResult | undefined>;
72
+ beforeEncode?(plan: SqlExecutionPlan, ctx: SqlMiddlewareContext, params?: SqlParamRefMutator<TCodecMap>): void | Promise<void>;
73
+ intercept?: {
74
+ onQuery?(plan: SqlExecutionPlan, ctx: SqlMiddlewareContext): Promise<QueryInterceptResult | undefined>;
75
+ onExecute?(plan: SqlExecutionPlan, ctx: SqlMiddlewareContext): Promise<ExecuteInterceptResult | undefined>;
76
+ };
91
77
  onRow?(row: Record<string, unknown>, plan: SqlExecutionPlan, ctx: SqlMiddlewareContext): Promise<void>;
92
- afterQuery?(plan: SqlExecutionPlan, result: AfterQueryResult, ctx: SqlMiddlewareContext): Promise<void>;
93
- /**
94
- * Mutate `ParamRef.value` slots before encode runs. The third
95
- * `params` argument is a {@link SqlParamRefMutator} scoped to value
96
- * slots only — SQL strings, projections, and `ParamRef` membership
97
- * are not mutable. Existing `(plan)` and `(plan, ctx)` middleware
98
- * bodies that ignore the additional argument continue to compile
99
- * and run unchanged.
100
- *
101
- * Lifecycle position:
102
- * `beforeCompile → lowerSqlPlan → beforeExecute → encodeParams → interceptExecute → driver execute`.
103
- *
104
- * The plan handed in is the SQL execution plan after lowering but
105
- * *before* parameter encoding: `plan.params[i]` is the user-domain
106
- * value the mutator's `entries()` iterator surfaces (e.g. an
107
- * `EncryptedEnvelopeBase` for a cipherstash-codec'd column, or a
108
- * plain JS value for non-codec'd ParamRefs). Mutations applied via
109
- * `params.replaceValue` / `replaceValues` are visible to encode,
110
- * which then renders the mutated value through the column's codec.
111
- *
112
- * `ctx.signal` carries the per-operation `AbortSignal` (ADR 207);
113
- * middleware that wraps a network SDK forwards `ctx.signal` to
114
- * that SDK. Cooperative cancellation: a body that ignores the
115
- * signal still surfaces `RUNTIME.ABORTED { phase: 'beforeExecute' }`
116
- * promptly via the runtime's race against the signal.
117
- */
118
- beforeExecute?(plan: SqlExecutionPlan, ctx: SqlMiddlewareContext, params?: SqlParamRefMutator<TCodecMap>): void | Promise<void>;
119
- interceptExecute?(plan: SqlExecutionPlan, ctx: SqlMiddlewareContext): Promise<ExecuteInterceptResult | undefined>;
120
- afterExecute?(plan: SqlExecutionPlan, result: AfterExecuteResult, ctx: SqlMiddlewareContext): Promise<void>;
121
78
  }
122
79
  //#endregion
123
80
  //#region src/codecs/decoding.d.ts
@@ -320,6 +277,35 @@ declare function createExecutionContext<TContract extends Contract<SqlStorage> =
320
277
  readonly driver?: RuntimeDriverDescriptor<'sql', TTargetId, unknown, SqlRuntimeDriverInstance<TTargetId>>;
321
278
  }): ExecutionContext<TContract>;
322
279
  //#endregion
280
+ //#region src/transaction-state.d.ts
281
+ /**
282
+ * What the database did with a transaction the runtime wrapped. `withTransaction` and the ORM read it to tell a failed `COMMIT` or `ROLLBACK` from an `activityEnded` hook that threw after the database had already settled the transaction.
283
+ */
284
+ declare const transactionSettlement: unique symbol;
285
+ interface TransactionSettlementState {
286
+ /** The driver's `COMMIT` resolved. */
287
+ readonly committed: boolean;
288
+ /** The driver's `ROLLBACK` resolved. */
289
+ readonly rolledBack: boolean;
290
+ /** Passes an `activityEnded` error the caller does not receive to the transaction's log, so it is not lost. */
291
+ logDroppedError(error: unknown): void;
292
+ }
293
+ interface SettledTransactionTarget {
294
+ readonly [transactionSettlement]: TransactionSettlementState;
295
+ }
296
+ declare function settlementOf(transaction: object): TransactionSettlementState | undefined;
297
+ /**
298
+ * How the last transaction start on a connection the runtime made went. `withTransaction` releases the connection after a start the `activityStarted` hooks refused before any `BEGIN` was sent, and destroys it after any other start failure.
299
+ */
300
+ declare const transactionStart: unique symbol;
301
+ interface TransactionStart {
302
+ refusedBeforeBegin: boolean;
303
+ }
304
+ interface TransactionStartTarget {
305
+ readonly [transactionStart]: TransactionStart;
306
+ }
307
+ declare function createTransactionStart(): TransactionStart;
308
+ //#endregion
323
309
  //#region src/sql-runtime.d.ts
324
310
  type Log = RuntimeLog;
325
311
  /**
@@ -405,9 +391,8 @@ declare abstract class SqlRuntimeBase<TContract extends Contract<SqlStorage> = C
405
391
  * Implementation note: SQL splits lower-then-encode across
406
392
  * {@link lowerToDraft} + {@link encodeDraftParams} so the selected
407
393
  * operation's middleware chain can run between them:
408
- * {@link prepareQueryExecution} uses `runBeforeQueryChain` for `query()`,
409
- * while {@link prepareExecuteExecution} uses `runBeforeExecuteChain` for
410
- * `execute()` (cipherstash bulk-encrypt, for example, mutates pre-encode
394
+ * {@link prepareOperation} runs the statement's `beforeEncode` chain
395
+ * between them (cipherstash bulk-encrypt, for example, mutates pre-encode
411
396
  * `ParamRef.value` slots). This protected hook composes the two back into
412
397
  * the cross-family `lower()` shape `RuntimeCore` expects. The production
413
398
  * operation methods use the matching split form before driver execution.
@@ -437,10 +422,8 @@ declare abstract class SqlRuntimeBase<TContract extends Contract<SqlStorage> = C
437
422
  protected runDriver(exec: SqlExecutionPlan): AsyncIterable<Record<string, unknown>>;
438
423
  protected runExecute(exec: SqlExecutionPlan): Promise<SqlStatementStats>;
439
424
  /**
440
- * SQL pre-compile hook. Runs the registered middleware `beforeCompile` chain over the plan's draft (AST + meta). Returns the original plan unchanged when no middleware rewrote the AST; otherwise returns a new plan carrying the rewritten AST and meta. The AST is the authoritative source of execution metadata, so a rewrite needs no sidecar reconciliation here — the lowering adapter and the encoder both walk the rewritten
441
- * AST directly.
425
+ * Runs the registered middleware `beforeCompile` chain over the plan's draft (AST + meta). Returns the original plan unchanged when no middleware rewrote the AST; otherwise returns a new plan carrying the rewritten AST and meta. The lowering adapter and the encoder both walk the rewritten AST directly.
442
426
  */
443
- protected runBeforeCompile(plan: SqlQueryPlan): Promise<SqlQueryPlan>;
444
427
  private compilePlan;
445
428
  query<Row>(plan: (SqlExecutionPlan<unknown> | SqlQueryPlan<unknown>) & {
446
429
  readonly _row?: Row;
@@ -457,19 +440,17 @@ declare abstract class SqlRuntimeBase<TContract extends Contract<SqlStorage> = C
457
440
  protected acquireRawConnection(): Promise<SqlConnection>;
458
441
  private setupDriverExecution;
459
442
  private beginOperation;
460
- private scheduleAfterTransaction;
443
+ private parentOf;
461
444
  protected getListDecoder(): ListDecoder;
462
- private streamRows;
463
445
  private streamDecodedRows;
464
446
  private createQueryContexts;
465
- private prepareQueryExecution;
466
- private prepareExecuteExecution;
467
447
  private prepareOperation;
468
448
  /** Query rows against a caller-supplied queryable through the shared preparation pipeline. */
469
449
  protected queryAgainstQueryable<Row>(plan: SqlExecutionPlan<unknown> | SqlQueryPlan<unknown>, queryable: SqlQueryable, options?: RuntimeExecuteOptions): AsyncIterableResult<Row>;
470
450
  /** Execute statistics against a caller-supplied queryable through the shared preparation pipeline. */
471
451
  protected executeStatisticsAgainstQueryable(plan: SqlExecutionPlan<unknown> | SqlQueryPlan<unknown>, queryable: SqlQueryable, options?: RuntimeExecuteOptions): Promise<SqlStatementStats>;
472
452
  private executeStatisticsInFlight;
453
+ private executeOn;
473
454
  private executeEncodedPlan;
474
455
  prepare<D extends Declaration<CT>, Row, CT extends CodecTypesBase = CodecTypesBase>(declaration: D, callback: PrepareCallback<D, Row>): Promise<PreparedFor<ParamsFromDeclaration<D, CT>, Row>>;
475
456
  /** Query prepared rows against a caller-supplied queryable through the full pipeline. */
@@ -478,12 +459,13 @@ declare abstract class SqlRuntimeBase<TContract extends Contract<SqlStorage> = C
478
459
  /** Execute a prepared statement's statistics against a caller-supplied queryable through the full pipeline. */
479
460
  protected runPreparedExecuteAgainstQueryable<P>(ps: PreparedExecutionImpl<P>, userParams: unknown, queryable: SqlQueryable, options?: RuntimeExecuteOptions): Promise<SqlStatementStats>;
480
461
  private runPreparedExecuteInFlight;
462
+ private executePrepared;
481
463
  connection(): Promise<RuntimeConnection>;
482
464
  /**
483
- * Wraps a driver transaction so every query run on it passes through the runtime with `scope: 'transaction'`, and fires each query's `afterTransaction` stage once when the transaction ends. `connection` is the connection `driverTx` was begun on. A query sent on it, or on the transaction, from now until `commit()` or `rollback()` is called runs inside the transaction, so its stage also fires when the transaction ends. A subclass that begins a driver transaction itself returns it through this wrapper. A transaction a subclass wraps reads the contract marker through the driver; only the connections and transactions this class hands out read it through themselves.
465
+ * Begins a transaction on `connection`, which `owner` wraps, as a transaction activity. When the transaction's `activityStarted` hooks refuse the start, no `BEGIN` is sent, `owner` is recorded as clean, and `withTransaction` releases it; after any other start failure it destroys it. The transaction's `activityStarted` hooks run before `BEGIN`. Every statement sent on the transaction, or on `connection`, from the end of `BEGIN` until `commit()` or `rollback()` is called is the transaction's child, and is finalized when the transaction ends, with its outcome. `commit()` and `rollback()` resolve after every finalization hook has run. A subclass that holds its own connection begins its transactions here.
484
466
  */
485
- protected wrapTransaction(driverTx: SqlTransaction, connection: SqlConnection): RuntimeTransaction;
486
- private rememberQueriesUntilEnd;
467
+ protected beginTransactionOn(connection: SqlConnection, owner: TransactionStartTarget): Promise<RuntimeTransaction>;
468
+ private wrapTransaction;
487
469
  telemetry(): RuntimeTelemetryEvent | null;
488
470
  close(): Promise<void>;
489
471
  private closeDriverAfterWork;
@@ -492,9 +474,11 @@ declare abstract class SqlRuntimeBase<TContract extends Contract<SqlStorage> = C
492
474
  private verifyMarker;
493
475
  private recordTelemetry;
494
476
  }
495
- /** Minimal structural type `withTransaction` depends on — anything that can open a connection. */
477
+ /**
478
+ * Minimal structural type `withTransaction` depends on — anything that can open a connection. A connection the runtime made also carries its last transaction start, and its transactions carry their settlement; `withTransaction` reads both to decide whether a failure left the connection clean and which error to report.
479
+ */
496
480
  interface ConnectionProvider {
497
- connection(): Promise<RuntimeConnection>;
481
+ connection(): Promise<RuntimeConnection & Partial<TransactionStartTarget>>;
498
482
  }
499
483
  declare function withTransaction<R>(runtime: ConnectionProvider, fn: (tx: TransactionContext) => PromiseLike<R>): Promise<R>;
500
484
  //#endregion
@@ -536,5 +520,5 @@ declare class PreparedExecutionImpl<Params> implements PreparedExecution<Params>
536
520
  execute(target: RuntimeQueryable, params: Params, options?: RuntimeExecuteOptions): Promise<SqlStatementStats>;
537
521
  }
538
522
  //#endregion
539
- 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, RuntimeOptions as S, RuntimeTelemetryEvent as T, createSqlExecutionStack as U, VerifyMarkerOption as V, deriveParamMetadata as W, PreparedStatementInternals as _, DeclaredCodecId as a, RuntimeConnection as b, ParamSpec as c, PreparedExecution as d, PreparedExecutionImpl as f, PreparedStatementImpl as g, PreparedStatementExecuteTarget as h, Declaration as i, SqlRuntimeAdapterDescriptor as j, SqlMiddleware as k, ParamsFromDeclaration as l, PreparedStatement as m, CloseRefusal as n, DeclaredNullable as o, PreparedFor as p, preparedStatementQuery as q, ConnectionProvider 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 };
540
- //# sourceMappingURL=prepared-statement-YtgdlN7e-DqHHwo30.d.mts.map
523
+ export { settlementOf as $, SqlMiddleware as A, TelemetryOutcome as B, RuntimeParameterizedCodecDescriptor as C, SettledTransactionTarget as D, RuntimeTransaction as E, SqlRuntimeDriverInstance as F, VerifyMarkerOption as G, TransactionSettlementState as H, SqlRuntimeExtensionDescriptor as I, createTransactionStart as J, createExecutionContext as K, SqlRuntimeExtensionInstance as L, SqlRuntimeAdapterDescriptor as M, SqlRuntimeAdapterInstance as N, SqlExecutionStack as O, SqlRuntimeBase as P, preparedStatementQuery as Q, SqlRuntimeTargetDescriptor as R, RuntimeOptions as S, RuntimeTelemetryEvent as T, TransactionStart as U, TransactionContext as V, TransactionStartTarget as W, encodeParamsWithMetadata as X, deriveParamMetadata as Y, preparedStatementExecute as Z, PreparedStatementInternals as _, DeclaredCodecId as a, RuntimeConnection as b, ParamSpec as c, PreparedExecution as d, transactionSettlement as et, PreparedExecutionImpl as f, PreparedStatementImpl as g, PreparedStatementExecuteTarget as h, Declaration as i, SqlMiddlewareContext as j, SqlExecutionStackWithDriver as k, ParamsFromDeclaration as l, PreparedStatement as m, CloseRefusal as n, withTransaction as nt, DeclaredNullable as o, PreparedFor as p, createSqlExecutionStack as q, ConnectionProvider as r, MarkerReader as s, BindSiteParams as t, transactionStart as tt, PrepareCallback as u, PreparedStatementQueryTarget as v, RuntimeQueryable as w, RuntimeFamilyAdapter as x, Runtime as y, SqlStaticContributions as z };
524
+ //# sourceMappingURL=prepared-statement-Bs9TKj5u-CInk8vXF.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prepared-statement-Bs9TKj5u-CInk8vXF.d.mts","names":[],"sources":["../../../../2-sql/5-runtime/dist/prepared-statement-Bs9TKj5u.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;EACT,iBAAiB,UAAU,iBAAiB,KAAK,uBA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QAAQ;;;;YAIZ,mBAAmB,YAAY,eAAe,OAAO,yBAAyB,QAAQ;UACxF;EACR,aAAa;EACb,SAAS;UACD;UACA;UACA;UACA;UACA;;;;;UAKA;EACR,cAAc,QAAQ,oBAAoB,QAAQ;;iBAEnC,gBAAgB,GAAG,SAAS,oBAAoB,KAAK,IAAI,uBAAuB,YAAY,KAAK,QAAQ;;;UAGhH;WACC;WACA,KAAK;WACL,MAAM;WACN,gBAAgB;WAChB,eAAe;WACf,wBAAwB;;cAErB,sBAAsB,QAAQ,gBAAgB,kBAAkB,QAAQ,MAAM;WACjF;WACA,KAAK;WACL,MAAM;WACN,gBAAgB;WAChB,eAAe;WACf,wBAAwB;EACjC,YAAY,WAAW;EACvB,MAAM,QAAQ,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"}
@@ -10,5 +10,5 @@ import "./plan-_8dKi13Q.mjs";
10
10
  import { a as SqlAggregateDescriptorRegistry, c as TypeHelperRegistry, n as ExecutionContext, r as ResolvedSqlAggregate, t as CodecDescriptorRegistry } from "./query-lane-context-C2AXsoFa-COSQOvZz.mjs";
11
11
  import "./query-lane-context-BsZs5lvB.mjs";
12
12
  import { S as TablesOf, _ as SqlOrmPlan, a as ColumnsOf, b as TableKey, c as META, d as ModelMetadata, f as OperationTypeSignature, g as SqlBuilderOptions, h as RuntimeScope, i as ColumnResolutionContract, l as Meta, m as OperationsForTypeId, n as BuildParamsMap, o as ComputeColumnJsType, p as OperationTypes, r as CodecTypes, s as Expr, t as BuildOptions, u as ModelDef, v as SqlPlan, x as TableMetadata, y as TableDef } from "./types-D09NAayg-CNrpjo7Z.mjs";
13
- import { a as SqlParamRefMutatorInternal, i as SqlParamRefMutator, n as ParamRefEntryUnion, o as createSqlParamRefMutator, r as ParamRefHandle, t as ParamRefEntry } from "./middleware-mLwvcOLS-wIYSKgog.mjs";
13
+ import { a as SqlParamRefMutatorInternal, i as SqlParamRefMutator, n as ParamRefEntryUnion, o as createSqlParamRefMutator, r as ParamRefHandle, t as ParamRefEntry } from "./middleware-YsFLC19Y-xhimGDiS.mjs";
14
14
  export { Adapter, AdapterProfile, AdapterTarget, AffectedCount, AggregateCountFn, AggregateExpr, AggregateFn, AggregateOpFn, AndExpr, AnyCodecDescriptor, AnyCodecDescriptorTemplate, AnyDdlColumnDefault, AnyExpression, AnyFromSource, AnyInsertOnConflictAction, AnyInsertValue, AnyJsonValueProjection, AnyOperationArg, AnyParamRef, AnyQueryAst, AstRewriter, BinaryExpr, BinaryOp, BuildOperationSpec, BuildOptions, BuildParamsMap, CapabilityRequirement, CaseBranch, CaseExpr, CastExpr, CheckExpressionConstraint, Codec$1 as Codec, type CodecCallContext$1 as CodecCallContext, type CodecDescriptor$1 as CodecDescriptor, CodecDescriptorRegistry, CodecExpression, CodecJsonValueProjection, type CodecRef$1 as CodecRef, type CodecTrait$1 as CodecTrait, CodecTypes, CodecTypesBase, CodecValue, ColumnRef, ColumnResolutionContract, ColumnsOf, ComputeColumnJsType, ContractCodecRegistry, DdlColumn, DdlColumnDefault, DdlNode, DdlTableConstraint, DefaultValueExpr, DeleteAst, DerivedTableSource, DescriptorCodecId, DescriptorCodecInput, DescriptorCodecJson, DescriptorCodecTraits, Direction, DoNothingConflictAction, DoUpdateSetConflictAction, EncodedLiteralDefault, EqColJoinOn, ExecutionContext, ExistsExpr, Expr, ExprVisitor, Expression, ExpressionFolder, ExpressionImpl, ExpressionRewriter, ExpressionSource, ExtractCodecTypes, ForeignKeyConstraint, FunctionCallExpr, FunctionColumnDefault, FunctionSource, FunctionSourceAlias, IdentifierRef, InsertAst, InsertOnConflict, InsertValue, JoinAst, JoinOnExpr, JsonArrayAggExpr, JsonDocumentProjection, JsonObjectEntry, JsonObjectExpr, JsonValueProjectionVisitor, LimitOffsetValue, ListExpression, LiteralColumnDefault, LiteralDefaultColumn, LiteralExpr, LockConflict, LockOptionCapabilities, LockStrength, LockStrengthCapabilities, LockWaitOptions, LockWaitPolicy, LockWaitRequest, LockingClause, LockingClauseOptions, LoweredParam, LoweredStatement, Lowerer, LowererContext, META, MarkerReadResult, Meta, ModelDef, ModelMetadata, NativeJsonValueProjection, NoReservedRowColumn, NotExpr, NullCheckExpr, OpaqueSql, OperationExpr, OperationTypeSignature, OperationTypes, OperationsForTypeId, OrExpr, OrderByItem, OrderByNulls, ParamRef, type ParamRefEntry, type ParamRefEntryUnion, type ParamRefHandle, Preparable, PreparedExecuteRequest, PreparedParamRef, PreparedStatementHandle, PrimaryKeyConstraint, ProjectionExpr, ProjectionItem, RawAffectedCountQuery, RawCodecInferer, RawExpr, RawPlanContext, RawQueryAst, RawQueryColumn, RawQueryResult, RawRow, RawRowQuery, RawRowSpec, RawRowSpecEntry, RawSqlBuilder, RawSqlInterpolation, RawSqlLiteral, RawSqlStatementBuilder, RawSqlStatementTag, RawSqlTag, ResolvedSqlAggregate, type RuntimeScope, SQL_CHAR_CODEC_ID, SQL_FLOAT_CODEC_ID, SQL_INT_CODEC_ID, SQL_TEXT_CODEC_ID, SQL_VARCHAR_CODEC_ID, ScalarListExpression, ScopeField, SelectAst, SelectAstOptions, SqlAggregateDescriptorRegistry, SqlBuilderOptions, SqlCharCodec, SqlCharDescriptor, SqlCodecCallContext, SqlCodecInstanceContext, SqlColumnRef, SqlConnection, SqlDriver, SqlDriverState, SqlExecuteRequest, type SqlExecutionPlan, SqlExplainResult, SqlFloatCodec, SqlFloatDescriptor, SqlIntCodec, SqlIntDescriptor, type SqlOrmPlan, type SqlParamRefMutator, type SqlParamRefMutatorInternal, SqlPlan, SqlQueryPlan, SqlQueryable, SqlStatementStats, SqlTextCodec, SqlTextDescriptor, SqlTransaction, SqlVarcharCodec, SqlVarcharDescriptor, StorageColumnScopeField, SubqueryExpr, TableDef, TableKey, TableMetadata, TableRef, TableSource, TablesOf, ToWhereExpr, TraitExpression, TypeHelperRegistry, UniqueConstraint, UpdateAst, WhereArg, WindowFn, WindowFuncExpr, aggregateFnNames, buildOperation, checkLimitOffset, codecOf, collectOrderedParamRefs, compact, createRawSql, createSqlParamRefMutator, encodeListLiteralDefault, encodeLiteralDefault, frozenCodecRef, isAggregateFn, isAggregateProjection, isDdlNode, isExpression, isOrderByDirection, isOrderByNulls, isQueryAst, isWhereExpr, lockIncompatible, lockOptionCapabilities, lockStrengthCapabilities, lockWaitPolicyOf, missingCapability, opaqueSql, param, planFromAst, queryAstKinds, renderOpaqueSql, sqlCharColumn, sqlCharDecode, sqlCharDescriptor, sqlCharEncode, sqlCharRenderOutputType, sqlFloatColumn, sqlFloatDecode, sqlFloatDescriptor, sqlFloatEncode, sqlIntColumn, sqlIntDecode, sqlIntDescriptor, sqlIntEncode, sqlTextColumn, sqlTextDecode, sqlTextDescriptor, sqlTextEncode, sqlVarcharColumn, sqlVarcharDecode, sqlVarcharDescriptor, sqlVarcharEncode, sqlVarcharRenderOutputType, toExpr, whereExprKinds };
@@ -1,3 +1,3 @@
1
- import { a as SqlParamRefMutatorInternal, i as SqlParamRefMutator, n as ParamRefEntryUnion, o as createSqlParamRefMutator, r as ParamRefHandle, t as ParamRefEntry } from "./middleware-mLwvcOLS-wIYSKgog.mjs";
2
- import "./middleware-FHkIPvYR.mjs";
1
+ import { a as SqlParamRefMutatorInternal, i as SqlParamRefMutator, n as ParamRefEntryUnion, o as createSqlParamRefMutator, r as ParamRefHandle, t as ParamRefEntry } from "./middleware-YsFLC19Y-xhimGDiS.mjs";
2
+ import "./middleware-DOKGNt72.mjs";
3
3
  export { type ParamRefEntry, type ParamRefEntryUnion, type ParamRefHandle, type SqlParamRefMutator, type SqlParamRefMutatorInternal, createSqlParamRefMutator };
@@ -1,5 +1,5 @@
1
1
  import { m as MarkerReadResult } from "./ast-Dp6lQXUX.mjs";
2
2
  import { c as TypeHelperRegistry, n as ExecutionContext } from "./query-lane-context-C2AXsoFa-COSQOvZz.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 RuntimeOptions, T as RuntimeTelemetryEvent, U as createSqlExecutionStack, V as VerifyMarkerOption, W as deriveParamMetadata, _ as PreparedStatementInternals, a as DeclaredCodecId, b as RuntimeConnection, c as ParamSpec, d as PreparedExecution, f as PreparedExecutionImpl, g as PreparedStatementImpl, i as Declaration, j as SqlRuntimeAdapterDescriptor, k as SqlMiddleware, l as ParamsFromDeclaration, m as PreparedStatement, n as CloseRefusal, o as DeclaredNullable, p as PreparedFor, r as ConnectionProvider, s as MarkerReader, t as BindSiteParams, u as PrepareCallback, w as RuntimeQueryable, x as RuntimeFamilyAdapter, y as Runtime, z as TelemetryOutcome } from "./prepared-statement-YtgdlN7e-DqHHwo30.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-ZHk0SsBA.mjs";
5
- export { type AfterExecuteResult, type AfterQueryResult, type BindSiteParams, type BudgetsOptions, type CloseRefusal, type ConnectionProvider, type Declaration, type DeclaredCodecId, type DeclaredNullable, type ExecuteInterceptResult, type ExecutionContext, 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 RuntimeOptions, 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 };
3
+ import { A as SqlMiddleware, B as TelemetryOutcome, C as RuntimeParameterizedCodecDescriptor, E as RuntimeTransaction, F as SqlRuntimeDriverInstance, G as VerifyMarkerOption, I as SqlRuntimeExtensionDescriptor, K as createExecutionContext, L as SqlRuntimeExtensionInstance, M as SqlRuntimeAdapterDescriptor, N as SqlRuntimeAdapterInstance, O as SqlExecutionStack, P as SqlRuntimeBase, R as SqlRuntimeTargetDescriptor, S as RuntimeOptions, T as RuntimeTelemetryEvent, V as TransactionContext, X as encodeParamsWithMetadata, Y as deriveParamMetadata, _ as PreparedStatementInternals, a as DeclaredCodecId, b as RuntimeConnection, c as ParamSpec, d as PreparedExecution, f as PreparedExecutionImpl, g as PreparedStatementImpl, i as Declaration, j as SqlMiddlewareContext, k as SqlExecutionStackWithDriver, l as ParamsFromDeclaration, m as PreparedStatement, n as CloseRefusal, nt as withTransaction, o as DeclaredNullable, p as PreparedFor, q as createSqlExecutionStack, r as ConnectionProvider, s as MarkerReader, t as BindSiteParams, u as PrepareCallback, w as RuntimeQueryable, x as RuntimeFamilyAdapter, y as Runtime, z as SqlStaticContributions } from "./prepared-statement-Bs9TKj5u-CInk8vXF.mjs";
4
+ import { _ as lowerSqlPlan, a as LintsOptions, c as RuntimeActivity, d as TransactionActivity, f as TransactionEnded, g as lints, h as extractCodecIds, i as ExecuteInterceptResult, l as StatementActivity, m as createAstCodecRegistry, n as ActivityFinalizedResult, o as Log, p as budgets, r as BudgetsOptions, s as QueryInterceptResult, t as ActivityEndedResult, u as StatementEnded, v as validateCodecRegistryCompleteness, y as validateContractCodecMappings } from "./index-qr6LA3dl.mjs";
5
+ export { type ActivityEndedResult, type ActivityFinalizedResult, type BindSiteParams, type BudgetsOptions, type CloseRefusal, type ConnectionProvider, type Declaration, type DeclaredCodecId, type DeclaredNullable, type ExecuteInterceptResult, type ExecutionContext, 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 RuntimeActivity, type RuntimeConnection, type RuntimeFamilyAdapter, type RuntimeOptions, 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 StatementActivity, type StatementEnded, type TelemetryOutcome, type TransactionActivity, type TransactionContext, type TransactionEnded, type TypeHelperRegistry, type VerifyMarkerOption, budgets, createAstCodecRegistry, createExecutionContext, createSqlExecutionStack, deriveParamMetadata, encodeParamsWithMetadata, extractCodecIds, lints, lowerSqlPlan, validateCodecRegistryCompleteness, validateContractCodecMappings, withTransaction };