@crvouga/mockingbird-service-postgres 3.5.0 → 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.
- package/CHANGELOG.md +6 -0
- package/COMPATIBILITY.md +3 -0
- package/compat/sections/trg.ts +2 -0
- package/dist/admin.js +924 -735
- package/dist/admin.js.map +4 -4
- package/dist/ast/nodes.d.ts +9 -1
- package/dist/executor/triggers-scope.d.ts +4 -0
- package/dist/executor/triggers.d.ts +4 -0
- package/dist/index.js +924 -735
- package/dist/index.js.map +4 -4
- package/dist/server.js +941 -735
- package/dist/server.js.map +4 -4
- package/dist/storage/database-state.d.ts +13 -0
- package/dist/storage/guc.d.ts +2 -0
- package/dist/storage/indexable-relation.d.ts +3 -0
- package/dist/unstable.js +16938 -16749
- package/dist/unstable.js.map +4 -4
- package/dist/wire/cli.js +942 -736
- package/dist/wire/cli.js.map +4 -4
- package/dist/wire/index.js +942 -736
- package/dist/wire/index.js.map +4 -4
- package/package.json +1 -1
|
@@ -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;
|