@crvouga/mockingbird-service-postgres 3.4.1 → 3.6.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.
@@ -83,6 +83,9 @@ export interface IndexMeta {
83
83
  isConstraint: boolean;
84
84
  }
85
85
  export interface TriggerMeta {
86
+ constraint?: boolean;
87
+ deferrable?: boolean;
88
+ initiallyDeferred?: boolean;
86
89
  name: string;
87
90
  timing: "before" | "after" | "instead_of";
88
91
  events: CreateTriggerStmt["events"];
@@ -260,6 +263,16 @@ export declare class DatabaseState {
260
263
  changes: number;
261
264
  private oidCounter;
262
265
  inTransaction: boolean;
266
+ /** Transaction-only events: included in rollback clones, never in exported snapshots. */
267
+ pendingTriggers: Array<{
268
+ schema: string;
269
+ table: string;
270
+ trigger: string;
271
+ event: "insert" | "update" | "delete";
272
+ oldRow: Datum[] | null;
273
+ newRow: Datum[] | null;
274
+ }>;
275
+ constraintModes: Map<string, boolean>;
263
276
  /** most recent sequence touched by nextval/setval, for lastval() */
264
277
  lastSequence: {
265
278
  schema: string;
@@ -0,0 +1,2 @@
1
+ /** In-memory placement supports the database default and the built-in heap AM. */
2
+ export declare function validateStorageSetting(name: string, value: string): void;
@@ -0,0 +1,3 @@
1
+ import { TableData, type ViewData } from "./database-state.js";
2
+ /** Materialized views share index validation/catalog rules with stored tables. */
3
+ export declare function materializedTable(view: ViewData): TableData;