Skip to content

Instantly share code, notes, and snippets.

@fschmied
Created March 28, 2016 16:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fschmied/d3bf0b846000347ce136 to your computer and use it in GitHub Desktop.
Save fschmied/d3bf0b846000347ce136 to your computer and use it in GitHub Desktop.
NEventStore's MsSql PersistCommit query
INSERT
INTO Commits
( BucketId, StreamId, StreamIdOriginal, CommitId, CommitSequence, StreamRevision, Items, CommitStamp, Headers, Payload )
OUTPUT INSERTED.CheckpointNumber
VALUES (@BucketId, @StreamId, @StreamIdOriginal, @CommitId, @CommitSequence, @StreamRevision, @Items, @CommitStamp, @Headers, @Payload);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment