View Source FDB.Versionstamp (fdb v6.3.23-0)
A versionstamp is a 12 byte, unique, monotonically (but not sequentially) increasing value for each committed transaction.
{8 byte} {2 byte} {2 byte}
- The first 8 bytes are the committed version of the database.
- The next 2 bytes are monotonic in the serialization order for transactions.
- The last 2 bytes are user supplied version in big-endian format
Link to this section Summary
Functions
Creates an incomplete versionstamp.
Returns true if the transaction version is equal to placeholder value
Returns the transaction version
Returns the user version
Returns the full versionstamp as binary
Link to this section Types
Specs
t() :: %FDB.Versionstamp{raw: binary()}
Link to this section Functions
Specs
Creates an incomplete versionstamp.
A placeholder value is used instead of the transaction
version. When a key created with an incompleted version is passed to
FDB.Transaction.set_versionstamped_key/4
, the placeholder value
will get replaced by transaction version on commit.
Specs
Returns true if the transaction version is equal to placeholder value
Specs
Specs
Specs
Returns the transaction version
Specs
Returns the user version
Specs
Returns the full versionstamp as binary