Commit
A commit: one transaction of the store, which may append to several logs, and whatever else the
host enlists in it. Each log it touches records its entries as one batch, at that log’s next
position; every entry names the commit that wrote it, and Store.Transaction gives a commit its
ID.
Since v0.2.0
Schemas
Section titled “Schemas”Commit
Section titled “Commit”A commit as each of its log batches carries it: its ID, how many entries it appended across every log, and when it was recorded.
Signature
declare const Commit: Schema.Struct<{ readonly id: Schema.brand<Schema.NonEmptyString, "LogCommitId"> readonly entryCount: Schema.Natural readonly recordedAt: Schema.DateTimeUtcFromString}>Since v0.2.0
Commit (interface)
Section titled “Commit (interface)”Signature
export interface Commit extends Schema.Schema.Type<typeof Commit> {}Since v0.2.0
CommitId
Section titled “CommitId”Names a commit, as storage assigns it. Store.CommitUncertain reports it, so a commit whose
outcome was not confirmed can be looked up.
Signature
declare const CommitId: Schema.brand<Schema.NonEmptyString, "LogCommitId">Since v0.2.0
CommitId (type alias)
Section titled “CommitId (type alias)”Signature
type CommitId = typeof CommitId.TypeSince v0.2.0