Skip to main content

Crate reallyme_foundationdb_kit

Crate reallyme_foundationdb_kit 

Source
Expand description

FoundationDB primitives for ReallyMe services.

This kit owns the reusable FoundationDB connection, configuration, typed errors, transaction policy, retry policy, tuple/key encoding boundary, key namespace/prefix validation, range scan helpers, key metadata, and tenant-scoped access.

Tenants are the segmentation primitive that higher-level schemas build on. The kit validates neutral tenant names, opens tenant-scoped FoundationDB handles, and fails closed if a tenant has not been provisioned. Applications own the mapping from their domain concepts to these infrastructure names.

No async-graphql, axum, or HTTP client code belongs here.

Re-exports§

pub use fdb::config::FdbConfig;
pub use fdb::config::FdbConfigInput;
pub use fdb::connector::FdbContext;
pub use fdb::connector::FdbHealthReport;
pub use fdb::connector::FoundationDbConnector;
pub use fdb::error::ConfigErrorReason;
pub use fdb::error::ConfigField;
pub use fdb::error::FdbError;
pub use fdb::error::FdbHealthErrorReason;
pub use fdb::error::FdbQueryErrorReason;
pub use fdb::error::FdbResult;
pub use fdb::error::FdbSetupErrorReason;
pub use fdb::error::TenantErrorReason;
pub use fdb::error::TenantMetadataField;
pub use fdb::startup::verify_ready;
pub use fdb::startup::verify_tenants_provisioned;
pub use fdb::tenant::TenantDataAccessErrorReason;
pub use fdb::tenant::TenantDataKey;
pub use fdb::tenant::TenantDataRange;
pub use fdb::tenant::TenantDataRangeLimit;
pub use fdb::tenant::TenantDataTransaction;
pub use fdb::tenant::TenantHandle;
pub use fdb::tenant_name::FoundationDbTenantName;
pub use fdb::tenant_name::FoundationDbTenantNameError;
pub use fdb::tenant_name::FoundationDbTenantNameErrorReason;
pub use fdb::tenant_name::MAX_FOUNDATIONDB_TENANT_NAME_LENGTH;

Modules§

fdb
FoundationDB connector, transactions, tenants, and low-level primitives. FoundationDB client boundary and low-level database primitives.
keys
Validated key construction helpers shared by FoundationDB adapters. Shared key construction helpers.