Skip to main content

Crate bitemporal_runtime

Crate bitemporal_runtime 

Source
Expand description

§bitemporal-runtime

Bitemporal truth primitives for append-supersede temporal data.

§Core concepts

  • valid_time: When something is true in the domain (business time)
  • recorded_time: When the system learned about it (system time)
  • append-supersede: Updates never mutate; they append a new row and mark prior rows superseded

§Key types

§Functions

  • append_supersede: Insert a new record, mark prior records superseded
  • as_of_query: Query records valid at a specific valid_time as of a specific recorded_time
  • temporal_snapshot: Retrieve full state as of a specific recorded_time

Structs§

BitemporalRecord
A bitemporal record.
InMemoryDb
In-memory bitemporal store for testing and development.
SupersessionReceipt
Receipt for a supersession event.
SupersessionTarget
Reference to the record that was superseded by a supersession event.

Enums§

BitemporalError
Errors produced by bitemporal-runtime operations.

Functions§

append_supersede
Append a new record and mark prior versions as superseded.
as_of_query
Query records valid at a specific valid_time as of a specific recorded_time.
temporal_snapshot
Return full state as of a specific recorded_time.

Type Aliases§

RecordId
A globally unique record identifier.