OPEN connection=1 isolation=2
SQL connection=1 thread=main text=CREATE TABLE events(version INT PRIMARY KEY,event_id VARCHAR UNIQUE,kind VARCHAR,format INT,days INT) binds=[]
ROWS connection=1 affected=0
SQL connection=1 thread=main text=CREATE TABLE stream_head(version INT) binds=[]
ROWS connection=1 affected=0
SQL connection=1 thread=main text=INSERT INTO stream_head VALUES(0) binds=[]
ROWS connection=1 affected=1
SQL connection=1 thread=main text=CREATE TABLE snapshot(version INT,days INT,status VARCHAR) binds=[]
ROWS connection=1 affected=0
SQL connection=1 thread=main text=CREATE TABLE derived(version INT,days INT,status VARCHAR) binds=[]
ROWS connection=1 affected=0
SQL connection=1 thread=main text=CREATE TABLE notifications(event_id VARCHAR PRIMARY KEY) binds=[]
ROWS connection=1 affected=0
COMMIT connection=1 count=1
SQL connection=1 thread=main text=UPDATE stream_head SET version=version+1 WHERE version=? binds=[0]
ROWS connection=1 affected=1
SQL connection=1 thread=main text=INSERT INTO events VALUES(?,?,?,?,?) binds=[1, E1, CREATED, 1, 48]
ROWS connection=1 affected=1
COMMIT connection=1 count=2
SQL connection=1 thread=main text=UPDATE stream_head SET version=version+1 WHERE version=? binds=[1]
ROWS connection=1 affected=1
SQL connection=1 thread=main text=INSERT INTO events VALUES(?,?,?,?,?) binds=[2, E2, EXTENDED, 2, 3]
ROWS connection=1 affected=1
COMMIT connection=1 count=3
SQL connection=1 thread=main text=SELECT version,event_id,kind,format,days FROM events WHERE version>? ORDER BY version binds=[0]
SQL connection=1 thread=main text=INSERT INTO snapshot VALUES(?,?,?) binds=[2, 5, ACTIVE]
ROWS connection=1 affected=1
COMMIT connection=1 count=4
SQL connection=1 thread=main text=UPDATE stream_head SET version=version+1 WHERE version=? binds=[2]
ROWS connection=1 affected=1
SQL connection=1 thread=main text=INSERT INTO events VALUES(?,?,?,?,?) binds=[3, E3, CANCELLED, 2, 0]
ROWS connection=1 affected=1
COMMIT connection=1 count=5
SQL connection=1 thread=main text=INSERT INTO notifications VALUES('E3') binds=[]
ROWS connection=1 affected=1
COMMIT connection=1 count=6
SQL connection=1 thread=main text=SELECT COUNT(*) FROM events binds=[]
PASS three persisted events
CLOSE connection=1 openStatements=0
RESULT enterprise13 write checks=1
