Crate bonsaidb::local

Expand description

BonsaiDb’s offline database implementation.

This crate exposes BonsaiDb’s local database implementation. The Storage type provides its most common functionality by implementing the StorageConnection.

Minimum Supported Rust Version (MSRV)

While this project is alpha, we are actively adopting the current version of Rust. The current minimum version is 1.70.

Modules

  • RustCrypto: Argon2
  • Command-line interface helpers.
  • Configuration options.
  • Encryption and secret management.

Structs

  • A database stored in BonsaiDb. This type is designed for use with Tokio. For blocking (non-asynchronous) code, see the Database type instead.
  • A file-based, multi-database, multi-user database engine. This type is designed for use with Tokio. For blocking (non-asynchronous) code, see the Storage type instead.
  • A database stored in BonsaiDb. This type blocks the current thread when used. See AsyncDatabase for this type’s async counterpart.
  • A file-based, multi-database, multi-user database engine. This type blocks the current thread when used. See AsyncStorage for this type’s async counterpart.
  • The unique id of a Storage instance.
  • A subscriber for PubSub messages.

Enums

  • Errors that can occur from interacting with storage.

Traits