Skip to main content

Module bootstrap

Module bootstrap 

Source
Expand description

Attributes the engine installs in every database.

Corium reserves the low :db.part/db sequence range — everything below the first user-installable attribute id — for attributes the engine owns. Today that is :db/txInstant, the commit timestamp the transactor asserts on every transaction entity. Storing it as an ordinary datom is what makes transaction time queryable data ([?tx :db/txInstant ?inst]) rather than log-only metadata, and what lets Db::as_of_instant resolve a wall-clock instant to a basis.

Constants§

TX_INSTANT
Entity id of :db/txInstant, which is 50 as it is in Datomic.

Functions§

asserted_instant
The instant asserted for the transaction entity of t within datoms.
install
Installs the engine’s attributes into a schema and ident registry.
install_schema
Installs the engine’s attributes into a schema alone.
tx_instant_attribute
Schema record for :db/txInstant.
tx_instant_datom
The :db/txInstant datom for transaction t.
tx_instant_ident
The :db/txInstant keyword.