Module foundationdb::transaction
source · Expand description
Implementations of the FDBTransaction C API
https://apple.github.io/foundationdb/api-c.html#transaction
Structs
Represents the data of a
Transaction::get_addresses_for_key
Represents the data of a
Transaction::get_key
Represents the data of a
Transaction::get_range
. The result might not contains all results
specified by Transaction::get_range
. A caller can test if the result is complete by either
checking GetRangeResult::key_values().more()
is true
, or checking GetRangeResult::next
is
not None
.
If a caller wants to fetch all matching results, they should call Transcation::get_range
with
following RangeOption
returned by GetRangeResult::next
. The caller might want to use
Transaction::get_ranges
which will fetch all results until it finishes.Represents the data of a
Transaction::get
RangeOption
represents a query parameters for range scan query.A Builder with which options need to used for a range query.
RangeStream
represents a stream of GetRangeResult
In FoundationDB, a transaction is a mutable snapshot of a database.
A future result of a
Transaction::commit
Abstraction over
fdb_transaction_on_err
.A future results of a get operation
A future result of a
Transaction::get_addresses_for_key
A future results of a
get_key
operationA future results of a
get_range
operationA future result of a
Transaction::watch
A future result of a
Transaction::watch
A future result of a
Transaction::watch
A versionstamp is a 10 byte, unique, monotonically (but not sequentially) increasing value for
each committed transaction. The first 8 bytes are the committed version of the database. The
last 2 bytes are monotonic in the serialization order for transactions.