fdb v5.1.7-7 FDB.Versionstamp View Source
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
Link to this section Functions
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.
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