Expand description
Common FoundationDB utilities for Materialize.
This crate provides shared functionality for FoundationDB-backed implementations across Materialize, including network initialization and URL parsing utilities.
Modules§
- api
- Re-export the
foundationdbcrate for convenience. Configuration of foundationDB API and Network - directory
- Re-export the
foundationdbcrate for convenience. Directory provides a tool for managing related subspaces. - fdb_
keys - Re-export the
foundationdbcrate for convenience. Definitions of FDBKeys, used in api version 700 and more. - future
- Re-export the
foundationdbcrate for convenience. Most functions in the FoundationDB API are asynchronous, meaning that they may return to the caller before actually delivering their Fdbresult. - mapped_
key_ values - Re-export the
foundationdbcrate for convenience. Definitions of MappedKeyValues, used in api version 710 and more. - metrics
- Re-export the
foundationdbcrate for convenience. - options
- Re-export the
foundationdbcrate for convenience. Generated configuration types for use with the variousset_optionfunctions - timekeeper
- Re-export the
foundationdbcrate for convenience. There is a key range called TimeKeeper in the system key space which stores a rolling history window of time to version mappings, with one data point every 10 seconds. It is not exposed via any user-facing API, though of course the data can be read by a user. It is not an official database feature and should not be relied on for anything where accuracy is critical as nothing prevents or detects system clock skew on the FDB process logging these data points. - tuple
- Re-export the
foundationdbcrate for convenience.
Structs§
- Database
- Re-export the
foundationdbcrate for convenience. Represents a FoundationDB database - FdbConfig
- Configuration parsed from a FoundationDB URL.
- FdbError
- Re-export the
foundationdbcrate for convenience. The Standard Error type of FoundationDB - KeySelector
- Re-export the
foundationdbcrate for convenience. AKeySelectoridentifies a particular key in the database. - Maybe
Committed - Re-export the
foundationdbcrate for convenience. Wrapper around the boolean representing whether the previous transaction is still on fly This wrapper prevents the boolean to be copy and force it to be moved instead. This pretty handy when you don’t want to see theDatabase::runclosure capturing the environment. - Range
Option - Re-export the
foundationdbcrate for convenience.RangeOptionrepresents a query parameters for range scan query. - Retryable
Transaction - Re-export the
foundationdbcrate for convenience. A retryable transaction, generated by Database.run - Transact
Option - Re-export the
foundationdbcrate for convenience. A set of options that controls the behavior ofDatabase::transact. - Transaction
- Re-export the
foundationdbcrate for convenience. In FoundationDB, a transaction is a mutable snapshot of a database. - Transaction
Cancelled - Re-export the
foundationdbcrate for convenience. A cancelled transaction - Transaction
Commit Error - Re-export the
foundationdbcrate for convenience. A failed to commit transaction. - Transaction
Committed - Re-export the
foundationdbcrate for convenience. A committed transaction. - Transaction
Metrics - Re-export the
foundationdbcrate for convenience. Tracks metrics for a transaction.
Enums§
- FdbBinding
Error - Re-export the
foundationdbcrate for convenience. This error represent all errors that can be throwed bydb.run. Layer developers may use theCustomError.
Statics§
- FDB_
NETWORK 🔒 - FoundationDB network handle.
The first element is
Someif the network is initialized. The second element istrueif the network has ever been initialized.
Traits§
- Database
Transact - Re-export the
foundationdbcrate for convenience. - Transact
Error - Re-export the
foundationdbcrate for convenience. A trait that must be implemented to useDatabase::transactthis application error types.
Functions§
- boot⚠
- Re-export the
foundationdbcrate for convenience. Initialize the FoundationDB Client API, this can only be called once per process. - default_
config_ path - Re-export the
foundationdbcrate for convenience. Returns the default Fdb cluster configuration file path - init_
network - Initialize the FoundationDB network.
- shutdown_
network - Shut down the FoundationDB network.
Type Aliases§
- FdbResult
- Re-export the
foundationdbcrate for convenience. Alias forResult<..., FdbError>