@dbsp/adapter-pgsql 3.2.2 → 3.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import * as _dbsp_core from '@dbsp/core';
2
2
  import { IndexInfo, TruncateOptions, VacuumOptions, AlterColumnOptions, CreateIndexOptions, DropIndexOptions, ExpressionRef, ModelIR as ModelIR$1, ExecutionCoordinator, CapabilityDescriptor } from '@dbsp/core';
3
3
  export { normalizeSQL } from '@dbsp/core';
4
4
  import * as _dbsp_types from '@dbsp/types';
5
- import { DialectCapabilities, ModelIR, ColumnListInput, ParamIntent, JsonAggOrderByEntry, IndexIR, HierarchyIR, Adapter, DbCasing, AdapterLogger, AdapterCapabilities, PlanReport, CompiledNqlQuery, CompileOptions, CompiledQuery, CompileResultWithIncludes, SubqueryIncludeInfo, ExpressionIntent, InsertIntent, InsertFromIntent, UpdateIntent, BatchUpdateIntent, DeleteIntent, UpsertIntent, UpsertFromIntent, RecursivePlanReport, CteQueryIntent, SetOperationIntent, DumpMeta, Dump, AdapterStreamOptions, PinnedConnectionOptions, TransactionOptions, CompileOnlyAdapter, ColumnIR, MutationReturningItem, WhereIntent, OutputDescriptor, QueryIntent, OperationKindRef, SemanticArtifactRef, TransitionRunJournal, ObservationIssuer, ObservationContext, TypeRef, ExpressionValue, CollationRef, LogicalIdentity, PhysicalOperation, OperationEffectAssessment, EvidenceObservation, FingerprintManifest, DurableIntentRecord, IssuedObservation, ApplyGuard, AdvisoryObservation, TransactionalCompletionRecord, StepJournal, UnsafeNativeFragment, ResourceAddress, ExecutableAssertion, Assumption, TransitionRule, TransitionCompositionFact, TrustRoot, RequiredEnumLabelIR } from '@dbsp/types';
5
+ import { DialectCapabilities, ModelIR, ColumnListInput, ParamIntent, JsonAggOrderByEntry, IndexIR, HierarchyIR, Adapter, DbCasing, AdapterLogger, AdapterCapabilities, PlanReport, CompiledNqlQuery, CompileOptions, CompiledQuery, CompileResultWithIncludes, SubqueryIncludeInfo, ExpressionIntent, InsertIntent, InsertFromIntent, UpdateIntent, BatchUpdateIntent, DeleteIntent, UpsertIntent, UpsertFromIntent, RecursivePlanReport, CteQueryIntent, SetOperationIntent, DumpMeta, Dump, AdapterStreamOptions, PinnedConnectionOptions, TransactionOptions, CompileOnlyAdapter, ColumnIR, MutationReturningItem, WhereIntent, OutputDescriptor, QueryIntent, OperationKindRef, SemanticArtifactRef, TransitionRunJournal, TransitionLessor, ObservationIssuer, ObservationRequest, ObservationContext, EvidenceObservation, TypeRef, ExpressionValue, CollationRef, LogicalIdentity, PhysicalOperation, OperationEffectAssessment, FingerprintManifest, TransitionSessionClient, DurableIntentRecord, IssuedObservation, ApplyGuard, AdvisoryObservation, TransactionalCompletionRecord, StepJournal, UnsafeNativeFragment, ResourceAddress, ExecutableAssertion, Assumption, TransitionRule, TransitionCompositionFact, TrustRoot, RequiredEnumLabelIR } from '@dbsp/types';
6
6
  import * as _pgsql_types from '@pgsql/types';
7
7
  import { Node, OnConflictClause, ParamRef } from '@pgsql/types';
8
8
  import { Pool, PoolClient } from 'pg';
@@ -2781,6 +2781,27 @@ declare function renderCreateTransitionJournalTableSql(): string;
2781
2781
  declare function ensureTransitionJournal(executor: TransitionJournalQueryable): Promise<void>;
2782
2782
  declare function readTransitionJournal(executor: TransitionJournalQueryable, runId: string): Promise<TransitionRunJournal>;
2783
2783
 
2784
+ /**
2785
+ * Declare a pg Pool as a source of transition leases.
2786
+ *
2787
+ * The typed Pool argument and this explicit factory call are the declaration.
2788
+ * Neither check below infers ownership; each rejects a declaration that
2789
+ * contradicts itself.
2790
+ *
2791
+ * A pg Pool and a pg Client are structurally identical — both expose connect(),
2792
+ * query() and end(), and neither exposes release() — so the argument cannot be
2793
+ * classified on sight. What connect() returns can be: a Pool leases a
2794
+ * PoolClient, which carries release(); a Client resolves to itself, which does
2795
+ * not. The lease is therefore checked at the first acquisition, which costs one
2796
+ * connection to learn and is why the constructor cannot report it.
2797
+ *
2798
+ * This deliberately avoids `instanceof Client`, which would be sound but
2799
+ * requires importing pg at runtime. Nothing else in this package does, so the
2800
+ * compiler and the SQL renderer work without a driver, and one guard is not
2801
+ * worth spending that.
2802
+ */
2803
+ declare function createPgTransitionLessor(pool: Pool): TransitionLessor;
2804
+
2784
2805
  type ObservationTarget = {
2785
2806
  readonly table: string;
2786
2807
  readonly column?: string;
@@ -2793,8 +2814,11 @@ type EnumObservationTarget = {
2793
2814
  readonly label?: string;
2794
2815
  readonly schema?: string;
2795
2816
  };
2817
+ /** Acquire one lease, issue the observation, then release that lease. */
2818
+ declare function executePgObservationFromLessor(lessor: TransitionLessor, request: ObservationRequest, context: ObservationContext): Promise<EvidenceObservation>;
2819
+ /** Acquire one lease, read context, then release that lease. */
2820
+ declare function readPgObservationContextFromLessor(lessor: TransitionLessor, schema?: string, observationTarget?: ObservationTarget | EnumObservationTarget): Promise<ObservationContext>;
2796
2821
  declare function createPgObservationIssuer(): ObservationIssuer;
2797
- declare function readPgObservationContext(target: unknown, schema?: string, observationTarget?: ObservationTarget | EnumObservationTarget): Promise<ObservationContext>;
2798
2822
 
2799
2823
  interface SetNotNullColumnShapeExpectation {
2800
2824
  readonly kind: 'postgresql.set-not-null.column-shape.v1';
@@ -2829,7 +2853,7 @@ type AlterColumnSetNotNullPayload = {
2829
2853
  readonly expectedColumnShape?: SetNotNullColumnShapeExpectation;
2830
2854
  };
2831
2855
  type TransitionExecutionClient$3 = {
2832
- readonly opaqueClient: unknown;
2856
+ readonly opaqueClient: TransitionSessionClient;
2833
2857
  };
2834
2858
  declare function renderAlterColumnSetNotNullSql(payload: AlterColumnSetNotNullPayload, context: ObservationContext): string;
2835
2859
  declare function renderSetNotNullLockSql(payload: AlterColumnSetNotNullPayload, context: ObservationContext): string;
@@ -2843,8 +2867,6 @@ declare function createAlterColumnSetNotNullOperationRuntime(): {
2843
2867
  supportsOperation(operation: PhysicalOperation): boolean;
2844
2868
  effectsOf(operation: PhysicalOperation, context: ObservationContext): OperationEffectAssessment;
2845
2869
  buildFingerprints: typeof beforeAfterFingerprints$3;
2846
- checkout(target: unknown): Promise<TransitionExecutionClient$3>;
2847
- release(client: TransitionExecutionClient$3, error?: unknown): void;
2848
2870
  writeIntentJournal(client: TransitionExecutionClient$3, record: DurableIntentRecord): Promise<void>;
2849
2871
  begin(client: TransitionExecutionClient$3): Promise<void>;
2850
2872
  setLockTimeout(client: TransitionExecutionClient$3, maxWaitMs: number): Promise<void>;
@@ -2878,7 +2900,7 @@ type AlterTypeAddValuePayload = {
2878
2900
  readonly expectedAfter: readonly string[];
2879
2901
  };
2880
2902
  type TransitionExecutionClient$2 = {
2881
- readonly opaqueClient: unknown;
2903
+ readonly opaqueClient: TransitionSessionClient;
2882
2904
  };
2883
2905
  declare function renderAlterTypeAddValueSql(payload: AlterTypeAddValuePayload, context: ObservationContext): string;
2884
2906
  declare function beforeAfterFingerprints$2(operation: PhysicalOperation, evidence: readonly EvidenceObservation[], context: ObservationContext): {
@@ -2891,8 +2913,6 @@ declare function createAlterTypeAddValueOperationRuntime(): {
2891
2913
  supportsOperation(operation: PhysicalOperation): boolean;
2892
2914
  effectsOf(operation: PhysicalOperation, context: ObservationContext): OperationEffectAssessment;
2893
2915
  buildFingerprints: typeof beforeAfterFingerprints$2;
2894
- checkout(target: unknown): Promise<TransitionExecutionClient$2>;
2895
- release(client: TransitionExecutionClient$2, error?: unknown): void;
2896
2916
  writeIntentJournal(client: TransitionExecutionClient$2, record: DurableIntentRecord): Promise<void>;
2897
2917
  begin(client: TransitionExecutionClient$2): Promise<void>;
2898
2918
  setLockTimeout(client: TransitionExecutionClient$2, maxWaitMs: number): Promise<void>;
@@ -2926,7 +2946,7 @@ type AttachLogicalIdentityPayload = {
2926
2946
  readonly authenticated: false;
2927
2947
  };
2928
2948
  type TransitionExecutionClient$1 = {
2929
- readonly opaqueClient: unknown;
2949
+ readonly opaqueClient: TransitionSessionClient;
2930
2950
  };
2931
2951
  declare function renderAttachLogicalIdentityLockSql(payload: AttachLogicalIdentityPayload): string;
2932
2952
  declare function renderCreateLogicalIdentitySideTableSql(_schema: string): string;
@@ -2941,8 +2961,6 @@ declare function createAttachLogicalIdentityOperationRuntime(): {
2941
2961
  supportsOperation(operation: PhysicalOperation): boolean;
2942
2962
  effectsOf(operation: PhysicalOperation, context: ObservationContext): OperationEffectAssessment;
2943
2963
  buildFingerprints: typeof beforeAfterFingerprints$1;
2944
- checkout(target: unknown): Promise<TransitionExecutionClient$1>;
2945
- release(client: TransitionExecutionClient$1, error?: unknown): void;
2946
2964
  writeIntentJournal(client: TransitionExecutionClient$1, record: DurableIntentRecord): Promise<void>;
2947
2965
  begin(client: TransitionExecutionClient$1): Promise<void>;
2948
2966
  setLockTimeout(client: TransitionExecutionClient$1, maxWaitMs: number): Promise<void>;
@@ -2974,7 +2992,7 @@ type ManualSqlPayload = {
2974
2992
  readonly postconditions: readonly ExecutableAssertion[];
2975
2993
  };
2976
2994
  type TransitionExecutionClient = {
2977
- readonly opaqueClient: unknown;
2995
+ readonly opaqueClient: TransitionSessionClient;
2978
2996
  };
2979
2997
  declare function normalizeManualSqlPayload(payload: ManualSqlPayload, context: ObservationContext): ManualSqlPayload;
2980
2998
  declare function beforeAfterFingerprints(operation: PhysicalOperation, _evidence: readonly EvidenceObservation[], context: ObservationContext): {
@@ -2987,8 +3005,6 @@ declare function createManualSqlOperationRuntime(): {
2987
3005
  supportsOperation(operation: PhysicalOperation): boolean;
2988
3006
  effectsOf(operation: PhysicalOperation, context: ObservationContext): OperationEffectAssessment;
2989
3007
  buildFingerprints: typeof beforeAfterFingerprints;
2990
- checkout(target: unknown): Promise<TransitionExecutionClient>;
2991
- release(client: TransitionExecutionClient, error?: unknown): void;
2992
3008
  writeIntentJournal(client: TransitionExecutionClient, record: DurableIntentRecord): Promise<void>;
2993
3009
  begin(client: TransitionExecutionClient): Promise<void>;
2994
3010
  setLockTimeout(_client: TransitionExecutionClient, _maxWaitMs: number): Promise<void>;
@@ -3097,56 +3113,50 @@ declare function createPgTransitionPack(options?: PgTransitionPackOptions): {
3097
3113
  expectedBefore: _dbsp_types.FingerprintManifest;
3098
3114
  expectedAfter: _dbsp_types.FingerprintManifest;
3099
3115
  };
3100
- checkout(target: unknown): Promise<{
3101
- readonly opaqueClient: unknown;
3102
- }>;
3103
- release(client: {
3104
- readonly opaqueClient: unknown;
3105
- }, error?: unknown): void;
3106
3116
  writeIntentJournal(client: {
3107
- readonly opaqueClient: unknown;
3117
+ readonly opaqueClient: _dbsp_types.TransitionSessionClient;
3108
3118
  }, record: _dbsp_types.DurableIntentRecord): Promise<void>;
3109
3119
  begin(client: {
3110
- readonly opaqueClient: unknown;
3120
+ readonly opaqueClient: _dbsp_types.TransitionSessionClient;
3111
3121
  }): Promise<void>;
3112
3122
  setLockTimeout(client: {
3113
- readonly opaqueClient: unknown;
3123
+ readonly opaqueClient: _dbsp_types.TransitionSessionClient;
3114
3124
  }, maxWaitMs: number): Promise<void>;
3115
3125
  acquireLocks(client: {
3116
- readonly opaqueClient: unknown;
3126
+ readonly opaqueClient: _dbsp_types.TransitionSessionClient;
3117
3127
  }, operation: _dbsp_types.PhysicalOperation, _effects: _dbsp_types.OperationEffectAssessment, context: _dbsp_types.ObservationContext): Promise<void>;
3118
3128
  observeContext(client: {
3119
- readonly opaqueClient: unknown;
3129
+ readonly opaqueClient: _dbsp_types.TransitionSessionClient;
3120
3130
  }, operation: _dbsp_types.PhysicalOperation, _proofContext: _dbsp_types.ObservationContext): Promise<_dbsp_types.ObservationContext>;
3121
3131
  observeOperation(client: {
3122
- readonly opaqueClient: unknown;
3132
+ readonly opaqueClient: _dbsp_types.TransitionSessionClient;
3123
3133
  }, operation: _dbsp_types.PhysicalOperation, context: _dbsp_types.ObservationContext, _phase: "before" | "after", issuer: _dbsp_types.ObservationIssuer): Promise<{
3124
3134
  observations: _dbsp_types.IssuedObservation[];
3125
3135
  fingerprint: _dbsp_types.FingerprintManifest;
3126
3136
  }>;
3127
3137
  checkGuard(client: {
3128
- readonly opaqueClient: unknown;
3138
+ readonly opaqueClient: _dbsp_types.TransitionSessionClient;
3129
3139
  }, operation: _dbsp_types.PhysicalOperation, guard: _dbsp_types.ApplyGuard, context: _dbsp_types.ObservationContext): Promise<{
3130
3140
  passed: boolean;
3131
3141
  observations: _dbsp_types.AdvisoryObservation[];
3132
3142
  recovery: readonly _dbsp_types.RecoveryArtefact[];
3133
3143
  }>;
3134
3144
  executeOperation(client: {
3135
- readonly opaqueClient: unknown;
3145
+ readonly opaqueClient: _dbsp_types.TransitionSessionClient;
3136
3146
  }, operation: _dbsp_types.PhysicalOperation, context: _dbsp_types.ObservationContext, duringGuards?: readonly _dbsp_types.ApplyGuard[]): Promise<{
3137
3147
  kind: string;
3138
3148
  }>;
3139
3149
  writeCompletionJournal(client: {
3140
- readonly opaqueClient: unknown;
3150
+ readonly opaqueClient: _dbsp_types.TransitionSessionClient;
3141
3151
  }, operation: _dbsp_types.PhysicalOperation, record: _dbsp_types.TransactionalCompletionRecord): Promise<void>;
3142
3152
  commit(client: {
3143
- readonly opaqueClient: unknown;
3153
+ readonly opaqueClient: _dbsp_types.TransitionSessionClient;
3144
3154
  }): Promise<void>;
3145
3155
  rollback(client: {
3146
- readonly opaqueClient: unknown;
3156
+ readonly opaqueClient: _dbsp_types.TransitionSessionClient;
3147
3157
  }): Promise<void>;
3148
3158
  writeObservedJournal(client: {
3149
- readonly opaqueClient: unknown;
3159
+ readonly opaqueClient: _dbsp_types.TransitionSessionClient;
3150
3160
  }, journal: _dbsp_types.StepJournal): Promise<void>;
3151
3161
  isLockTimeout(error: unknown): boolean;
3152
3162
  } | {
@@ -3158,56 +3168,50 @@ declare function createPgTransitionPack(options?: PgTransitionPackOptions): {
3158
3168
  expectedBefore: _dbsp_types.FingerprintManifest;
3159
3169
  expectedAfter: _dbsp_types.FingerprintManifest;
3160
3170
  };
3161
- checkout(target: unknown): Promise<{
3162
- readonly opaqueClient: unknown;
3163
- }>;
3164
- release(client: {
3165
- readonly opaqueClient: unknown;
3166
- }, error?: unknown): void;
3167
3171
  writeIntentJournal(client: {
3168
- readonly opaqueClient: unknown;
3172
+ readonly opaqueClient: _dbsp_types.TransitionSessionClient;
3169
3173
  }, record: _dbsp_types.DurableIntentRecord): Promise<void>;
3170
3174
  begin(client: {
3171
- readonly opaqueClient: unknown;
3175
+ readonly opaqueClient: _dbsp_types.TransitionSessionClient;
3172
3176
  }): Promise<void>;
3173
3177
  setLockTimeout(client: {
3174
- readonly opaqueClient: unknown;
3178
+ readonly opaqueClient: _dbsp_types.TransitionSessionClient;
3175
3179
  }, maxWaitMs: number): Promise<void>;
3176
3180
  acquireLocks(client: {
3177
- readonly opaqueClient: unknown;
3181
+ readonly opaqueClient: _dbsp_types.TransitionSessionClient;
3178
3182
  }, operation: _dbsp_types.PhysicalOperation): Promise<void>;
3179
3183
  observeContext(client: {
3180
- readonly opaqueClient: unknown;
3184
+ readonly opaqueClient: _dbsp_types.TransitionSessionClient;
3181
3185
  }, operation: _dbsp_types.PhysicalOperation, _proofContext: _dbsp_types.ObservationContext): Promise<_dbsp_types.ObservationContext>;
3182
3186
  observeOperation(client: {
3183
- readonly opaqueClient: unknown;
3187
+ readonly opaqueClient: _dbsp_types.TransitionSessionClient;
3184
3188
  }, operation: _dbsp_types.PhysicalOperation, context: _dbsp_types.ObservationContext, _phase: "before" | "after", issuer: _dbsp_types.ObservationIssuer): Promise<{
3185
3189
  observations: _dbsp_types.IssuedObservation[];
3186
3190
  fingerprint: _dbsp_types.FingerprintManifest;
3187
3191
  }>;
3188
3192
  checkGuard(client: {
3189
- readonly opaqueClient: unknown;
3193
+ readonly opaqueClient: _dbsp_types.TransitionSessionClient;
3190
3194
  }, operation: _dbsp_types.PhysicalOperation, guard: _dbsp_types.ApplyGuard, context: _dbsp_types.ObservationContext): Promise<{
3191
3195
  passed: boolean;
3192
3196
  observations: _dbsp_types.EvidenceObservation[];
3193
3197
  recovery: readonly _dbsp_types.RecoveryArtefact[];
3194
3198
  }>;
3195
3199
  executeOperation(client: {
3196
- readonly opaqueClient: unknown;
3200
+ readonly opaqueClient: _dbsp_types.TransitionSessionClient;
3197
3201
  }, operation: _dbsp_types.PhysicalOperation, context: _dbsp_types.ObservationContext, duringGuards?: readonly _dbsp_types.ApplyGuard[]): Promise<{
3198
3202
  kind: string;
3199
3203
  }>;
3200
3204
  writeCompletionJournal(client: {
3201
- readonly opaqueClient: unknown;
3205
+ readonly opaqueClient: _dbsp_types.TransitionSessionClient;
3202
3206
  }, operation: _dbsp_types.PhysicalOperation, record: _dbsp_types.TransactionalCompletionRecord): Promise<void>;
3203
3207
  commit(client: {
3204
- readonly opaqueClient: unknown;
3208
+ readonly opaqueClient: _dbsp_types.TransitionSessionClient;
3205
3209
  }): Promise<void>;
3206
3210
  rollback(client: {
3207
- readonly opaqueClient: unknown;
3211
+ readonly opaqueClient: _dbsp_types.TransitionSessionClient;
3208
3212
  }): Promise<void>;
3209
3213
  writeObservedJournal(client: {
3210
- readonly opaqueClient: unknown;
3214
+ readonly opaqueClient: _dbsp_types.TransitionSessionClient;
3211
3215
  }, journal: _dbsp_types.StepJournal): Promise<void>;
3212
3216
  isLockTimeout(error: unknown): boolean;
3213
3217
  } | {
@@ -3219,36 +3223,30 @@ declare function createPgTransitionPack(options?: PgTransitionPackOptions): {
3219
3223
  expectedBefore: _dbsp_types.FingerprintManifest;
3220
3224
  expectedAfter: _dbsp_types.FingerprintManifest;
3221
3225
  };
3222
- checkout(target: unknown): Promise<{
3223
- readonly opaqueClient: unknown;
3224
- }>;
3225
- release(client: {
3226
- readonly opaqueClient: unknown;
3227
- }, error?: unknown): void;
3228
3226
  writeIntentJournal(client: {
3229
- readonly opaqueClient: unknown;
3227
+ readonly opaqueClient: _dbsp_types.TransitionSessionClient;
3230
3228
  }, record: _dbsp_types.DurableIntentRecord): Promise<void>;
3231
3229
  begin(_client: {
3232
- readonly opaqueClient: unknown;
3230
+ readonly opaqueClient: _dbsp_types.TransitionSessionClient;
3233
3231
  }): Promise<never>;
3234
3232
  setLockTimeout(_client: {
3235
- readonly opaqueClient: unknown;
3233
+ readonly opaqueClient: _dbsp_types.TransitionSessionClient;
3236
3234
  }, _maxWaitMs: number): Promise<void>;
3237
3235
  acquireLocks(): Promise<void>;
3238
3236
  observeContext(client: {
3239
- readonly opaqueClient: unknown;
3237
+ readonly opaqueClient: _dbsp_types.TransitionSessionClient;
3240
3238
  }, operation: _dbsp_types.PhysicalOperation, _proofContext: _dbsp_types.ObservationContext): Promise<_dbsp_types.ObservationContext>;
3241
3239
  observeOperation(client: {
3242
- readonly opaqueClient: unknown;
3240
+ readonly opaqueClient: _dbsp_types.TransitionSessionClient;
3243
3241
  }, operation: _dbsp_types.PhysicalOperation, context: _dbsp_types.ObservationContext, phase: "before" | "after", issuer: _dbsp_types.ObservationIssuer): Promise<{
3244
3242
  observations: _dbsp_types.IssuedObservation[];
3245
3243
  fingerprint: _dbsp_types.FingerprintManifest;
3246
3244
  }>;
3247
3245
  checkGuard(_client: {
3248
- readonly opaqueClient: unknown;
3246
+ readonly opaqueClient: _dbsp_types.TransitionSessionClient;
3249
3247
  }, _operation: _dbsp_types.PhysicalOperation, guard: _dbsp_types.ApplyGuard): Promise<never>;
3250
3248
  executeOperation(client: {
3251
- readonly opaqueClient: unknown;
3249
+ readonly opaqueClient: _dbsp_types.TransitionSessionClient;
3252
3250
  }, operation: _dbsp_types.PhysicalOperation, context: _dbsp_types.ObservationContext, duringGuards?: readonly _dbsp_types.ApplyGuard[], executionTracker?: _dbsp_core.NonRollbackableExecutionTracker): Promise<{
3253
3251
  kind: "partially-applied";
3254
3252
  recovery: _dbsp_types.RecoveryArtefact[];
@@ -3265,16 +3263,16 @@ declare function createPgTransitionPack(options?: PgTransitionPackOptions): {
3265
3263
  nonRollbackableFootprint: string;
3266
3264
  }>;
3267
3265
  writeCompletionJournal(client: {
3268
- readonly opaqueClient: unknown;
3266
+ readonly opaqueClient: _dbsp_types.TransitionSessionClient;
3269
3267
  }, operation: _dbsp_types.PhysicalOperation, record: _dbsp_types.TransactionalCompletionRecord): Promise<void>;
3270
3268
  commit(_client: {
3271
- readonly opaqueClient: unknown;
3269
+ readonly opaqueClient: _dbsp_types.TransitionSessionClient;
3272
3270
  }): Promise<never>;
3273
3271
  rollback(_client: {
3274
- readonly opaqueClient: unknown;
3272
+ readonly opaqueClient: _dbsp_types.TransitionSessionClient;
3275
3273
  }): Promise<never>;
3276
3274
  writeObservedJournal(client: {
3277
- readonly opaqueClient: unknown;
3275
+ readonly opaqueClient: _dbsp_types.TransitionSessionClient;
3278
3276
  }, journal: _dbsp_types.StepJournal): Promise<void>;
3279
3277
  isLockTimeout(error: unknown): boolean;
3280
3278
  })[];
@@ -3359,4 +3357,4 @@ declare function sanitizeForDisplay(value: string): string;
3359
3357
  */
3360
3358
  declare function validateSqlExpression(sql: string, context: string): void;
3361
3359
 
3362
- export { ADD_CHECK_RULE_ID, ALTER_AUTHORITY_OBSERVATION, ALTER_COLUMN_SET_NOT_NULL_OPERATION_KIND, ALTER_TYPE_ADD_VALUE_OPERATION_KIND, ATTACH_LOGICAL_IDENTITY_OPERATION_KIND, type AddedEnumValue, type AlterColumnSetNotNullPayload, type AlterTypeAddValuePayload, type AttachLogicalIdentityPayload, type BatchValuesJoinDecision, COLUMN_EXISTS_OBSERVATION, CamelCaseNamingPlugin, type CanonicalizeCheckConstraintsOptions, type ChangeKind, CheckConstraintCanonicalizationError, type CheckConstraintCanonicalizationWarning, CheckConstraintNewEnumValueError, type ComparePgsqlDatabaseSchemaOptions, type CompareSchemataOptions, type CompiledResult, type CompilerContext, type CompilerOptions, type CompilerState, type ConflictAction, type ConflictTarget, type CursorHoldOption, type CursorOptions, type CursorScrollOption, DBSP_LOGICAL_IDENTITY_TABLE, DBSP_META_SCHEMA, DBSP_TRANSITION_JOURNAL_TABLE, DBSP_TRANSITION_RUN_TABLE, DEFAULT_PK_COLUMN, DEFAULT_REDACTION_PATTERNS, type Decision, type DeleteConfig, type DetectedHierarchy, type DiffSummary, ENGINE_VERSION_OBSERVATION, ENUM_ADD_VALUE_RULE_ID, ENUM_LABEL_VISIBLE_OBSERVATION, ENUM_TYPE_EXISTS_OBSERVATION, type EnumAddValueMatch, type EnumAddValueRuleOptions, type ExplainFormat, type ExplainOptions, type ExplainPlan, ExpressionCanonicalizationUnavailableError, type ExpressionHandler, type FetchDirection, type FetchOptions, type FkColumnDerivation, type GenerateDDLOptions, type IdentityAdoptionAsserter, IdentityNamingPlugin, type IncludeHandler, type IncludeResult, type IndexCapabilityContext, IndexFeatureUnsupportedError, type IndexRenderSpec, type InsertConfig, type IntrospectedModelIR, type IntrospectionOptions, InvalidIdentifierError, type JoinDecision, LOGICAL_IDENTITY_ADOPTION_RULE_ID, LOGICAL_IDENTITY_CARRIER_OBSERVATION, type LeafCompileFn, type LogicalIdentityAdoptionMatch, type LogicalIdentityAdoptionRuleOptions, MANUAL_SQL_OPERATION_KIND, type ManualSqlPayload, type MigrationRecord, type MigrationSQLOptions, NO_NULLS_GUARD, type NamingPlugin, NonConvergentSchemaDiffError, PG_INTROSPECTION_ARTIFACT, PG_OPERATION_PACK_ARTIFACT, PG_RULE_PACK_ARTIFACT, type ParamRefValidationResult, type ParsedMigrationFile, type PgAdvisoryLockKey, type PgAdvisoryLockResult, type PgTransitionPackOptions, PgsqlAdapter, type PgsqlAdapterOptions, PgsqlAdvisoryLockOptionsError, type PgsqlBorrowedClientAdapterOptions, PgsqlPinnedConnectionAbortSignalError, type PgsqlPoolAdapterOptions, PgsqlRawSqlTransactionControlError, PgsqlTransactionAbortSignalError, PgsqlTransactionAbortedCommitError, PgsqlTransactionAbortedError, PgsqlTransactionOptionsError, PgsqlTransactionTimeoutError, PlanCompiler, type PlanDecision, type PrecompiledJoinDecision, type RedactionConfig, type RedactionPattern, SET_NOT_NULL_RULE_ID, type SchemaChange, type SchemaDiff, type SchemaScopeOptions, type SetNotNullMatch, type SetNotNullRuleOptions, type SetOperationResult, type SimplifiedPlanReport, type StreamConfig, type UpdateConfig, type UpsertConfig, type WhereDispatcher, type WhereHandler, assertCreateIndexSupported, assertCreateIndexesSupported, assertNoRepeatedExpressionSurfaceDrift, bm25Search, booleanSearch, boost, buildCloseCursor, buildDeclareCursor, buildExplain, buildExplainAnalyzeJson, buildExplainPlan, buildExplainVerbose, buildFetch, buildFetchAll, buildFetchFirst, buildFetchForward, buildFetchNext, buildOnConflictClause, buildStreamingStatements, camelCaseNaming, canGenerateCreateIndex, canonicalizeCheckConstraints, collectAndValidateParamRefs, comparePgsqlDatabaseSchema, compareSchemata, compileDelete, compileInsert, compileMutation, compilePlan, compileSetOperation, compileUpdate, compileUpsert, conditionalUpdate, cosineDistance, createAlterColumnSetNotNullOperationRuntime, createAlterTypeAddValueOperationRuntime, createAnyExpr, createAttachLogicalIdentityOperationRuntime, createEnumAddValueRule, createEqualityExpr, createLeafCompileFn, createLogicalIdentityAdoptionRule, createManualSqlOperationRuntime, createParamRef, createPgObservationIssuer, createPgTransitionPack, createPgsqlAdapter, createPgsqlCompileOnlyAdapter, createSetNotNullRule, createTypeCastParamRef, defaultFkDerivation, derivePostgresqlCapabilitiesForVersion, ensureMigrationsTable, ensureTransitionJournal, excludedRef, generateCreateIndex, generateCursorName, generateDDL, generateDownSQL, generateMigrationFile, generateMigrationSQL, generateSeries, getAppliedMigrations, getNamingPluginForDbCasing, getNextSchemaVersion, getRowEstimates, getTotalExecutionTime, identityNaming, innerProduct, introspect, isBatchValuesJoinDecision, isDestructiveDown, isJoinDecision, isMigrationApplied, isPrecompiledJoinDecision, isReservedKeyword, l2Distance, mapColumnType, mapOnDeleteAction, nextval, normalizeManualSqlPayload, parse, parseExplainJson, parseMigrationFile, rawDistance, readPgObservationContext, readTransitionJournal, recordMigration, redactParams, removeMigrationRecord, renderAlterColumnSetNotNullSql, renderAlterTypeAddValueSql, renderAttachLogicalIdentityLockSql, renderCreateDbspMetaSchemaSql, renderCreateIndex, renderCreateLogicalIdentityIndexesSql, renderCreateLogicalIdentitySideTableSql, renderCreateTransitionJournalTableSql, renderCreateTransitionRunTableSql, renderInsertLogicalIdentitySql, renderNoNullsCheckSql, renderSetNotNullLockSql, resolveLogicalName, sanitizeForDisplay, score, validateIdentifier, validateIdentifiers, validateParamRef, validateQualifiedIdentifier, validateSqlExpression, vectorDims, withMigrationLock };
3360
+ export { ADD_CHECK_RULE_ID, ALTER_AUTHORITY_OBSERVATION, ALTER_COLUMN_SET_NOT_NULL_OPERATION_KIND, ALTER_TYPE_ADD_VALUE_OPERATION_KIND, ATTACH_LOGICAL_IDENTITY_OPERATION_KIND, type AddedEnumValue, type AlterColumnSetNotNullPayload, type AlterTypeAddValuePayload, type AttachLogicalIdentityPayload, type BatchValuesJoinDecision, COLUMN_EXISTS_OBSERVATION, CamelCaseNamingPlugin, type CanonicalizeCheckConstraintsOptions, type ChangeKind, CheckConstraintCanonicalizationError, type CheckConstraintCanonicalizationWarning, CheckConstraintNewEnumValueError, type ComparePgsqlDatabaseSchemaOptions, type CompareSchemataOptions, type CompiledResult, type CompilerContext, type CompilerOptions, type CompilerState, type ConflictAction, type ConflictTarget, type CursorHoldOption, type CursorOptions, type CursorScrollOption, DBSP_LOGICAL_IDENTITY_TABLE, DBSP_META_SCHEMA, DBSP_TRANSITION_JOURNAL_TABLE, DBSP_TRANSITION_RUN_TABLE, DEFAULT_PK_COLUMN, DEFAULT_REDACTION_PATTERNS, type Decision, type DeleteConfig, type DetectedHierarchy, type DiffSummary, ENGINE_VERSION_OBSERVATION, ENUM_ADD_VALUE_RULE_ID, ENUM_LABEL_VISIBLE_OBSERVATION, ENUM_TYPE_EXISTS_OBSERVATION, type EnumAddValueMatch, type EnumAddValueRuleOptions, type ExplainFormat, type ExplainOptions, type ExplainPlan, ExpressionCanonicalizationUnavailableError, type ExpressionHandler, type FetchDirection, type FetchOptions, type FkColumnDerivation, type GenerateDDLOptions, type IdentityAdoptionAsserter, IdentityNamingPlugin, type IncludeHandler, type IncludeResult, type IndexCapabilityContext, IndexFeatureUnsupportedError, type IndexRenderSpec, type InsertConfig, type IntrospectedModelIR, type IntrospectionOptions, InvalidIdentifierError, type JoinDecision, LOGICAL_IDENTITY_ADOPTION_RULE_ID, LOGICAL_IDENTITY_CARRIER_OBSERVATION, type LeafCompileFn, type LogicalIdentityAdoptionMatch, type LogicalIdentityAdoptionRuleOptions, MANUAL_SQL_OPERATION_KIND, type ManualSqlPayload, type MigrationRecord, type MigrationSQLOptions, NO_NULLS_GUARD, type NamingPlugin, NonConvergentSchemaDiffError, PG_INTROSPECTION_ARTIFACT, PG_OPERATION_PACK_ARTIFACT, PG_RULE_PACK_ARTIFACT, type ParamRefValidationResult, type ParsedMigrationFile, type PgAdvisoryLockKey, type PgAdvisoryLockResult, type PgTransitionPackOptions, PgsqlAdapter, type PgsqlAdapterOptions, PgsqlAdvisoryLockOptionsError, type PgsqlBorrowedClientAdapterOptions, PgsqlPinnedConnectionAbortSignalError, type PgsqlPoolAdapterOptions, PgsqlRawSqlTransactionControlError, PgsqlTransactionAbortSignalError, PgsqlTransactionAbortedCommitError, PgsqlTransactionAbortedError, PgsqlTransactionOptionsError, PgsqlTransactionTimeoutError, PlanCompiler, type PlanDecision, type PrecompiledJoinDecision, type RedactionConfig, type RedactionPattern, SET_NOT_NULL_RULE_ID, type SchemaChange, type SchemaDiff, type SchemaScopeOptions, type SetNotNullMatch, type SetNotNullRuleOptions, type SetOperationResult, type SimplifiedPlanReport, type StreamConfig, type UpdateConfig, type UpsertConfig, type WhereDispatcher, type WhereHandler, assertCreateIndexSupported, assertCreateIndexesSupported, assertNoRepeatedExpressionSurfaceDrift, bm25Search, booleanSearch, boost, buildCloseCursor, buildDeclareCursor, buildExplain, buildExplainAnalyzeJson, buildExplainPlan, buildExplainVerbose, buildFetch, buildFetchAll, buildFetchFirst, buildFetchForward, buildFetchNext, buildOnConflictClause, buildStreamingStatements, camelCaseNaming, canGenerateCreateIndex, canonicalizeCheckConstraints, collectAndValidateParamRefs, comparePgsqlDatabaseSchema, compareSchemata, compileDelete, compileInsert, compileMutation, compilePlan, compileSetOperation, compileUpdate, compileUpsert, conditionalUpdate, cosineDistance, createAlterColumnSetNotNullOperationRuntime, createAlterTypeAddValueOperationRuntime, createAnyExpr, createAttachLogicalIdentityOperationRuntime, createEnumAddValueRule, createEqualityExpr, createLeafCompileFn, createLogicalIdentityAdoptionRule, createManualSqlOperationRuntime, createParamRef, createPgObservationIssuer, createPgTransitionLessor, createPgTransitionPack, createPgsqlAdapter, createPgsqlCompileOnlyAdapter, createSetNotNullRule, createTypeCastParamRef, defaultFkDerivation, derivePostgresqlCapabilitiesForVersion, ensureMigrationsTable, ensureTransitionJournal, excludedRef, executePgObservationFromLessor, generateCreateIndex, generateCursorName, generateDDL, generateDownSQL, generateMigrationFile, generateMigrationSQL, generateSeries, getAppliedMigrations, getNamingPluginForDbCasing, getNextSchemaVersion, getRowEstimates, getTotalExecutionTime, identityNaming, innerProduct, introspect, isBatchValuesJoinDecision, isDestructiveDown, isJoinDecision, isMigrationApplied, isPrecompiledJoinDecision, isReservedKeyword, l2Distance, mapColumnType, mapOnDeleteAction, nextval, normalizeManualSqlPayload, parse, parseExplainJson, parseMigrationFile, rawDistance, readPgObservationContextFromLessor, readTransitionJournal, recordMigration, redactParams, removeMigrationRecord, renderAlterColumnSetNotNullSql, renderAlterTypeAddValueSql, renderAttachLogicalIdentityLockSql, renderCreateDbspMetaSchemaSql, renderCreateIndex, renderCreateLogicalIdentityIndexesSql, renderCreateLogicalIdentitySideTableSql, renderCreateTransitionJournalTableSql, renderCreateTransitionRunTableSql, renderInsertLogicalIdentitySql, renderNoNullsCheckSql, renderSetNotNullLockSql, resolveLogicalName, sanitizeForDisplay, score, validateIdentifier, validateIdentifiers, validateParamRef, validateQualifiedIdentifier, validateSqlExpression, vectorDims, withMigrationLock };