We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
transaction_id
1 parent b294876 commit 37c1e5aCopy full SHA for 37c1e5a
src/main/resources/sql/event_sourcing.sql
@@ -36,6 +36,8 @@ CREATE TABLE IF NOT EXISTS events
36
"created_at" TIMESTAMP WITH TIME ZONE DEFAULT NOW() NOT NULL,
37
-- ordering sequence/offset for all events in all deciders. AUTOPOPULATES—DO NOT INSERT
38
"offset" BIGSERIAL PRIMARY KEY,
39
+ -- Postgres transaction id
40
+ "transaction_id" XID8 DEFAULT pg_current_xact_id() NOT NULL,
41
FOREIGN KEY ("decider", "event") REFERENCES deciders ("decider", "event")
42
);
43
0 commit comments