Module bonsaidb::core::connection
Expand description
Types for interacting with BonsaiDb.
Structs
- Interacts with a collection over a
Connection
. - Retrieves a list of documents from a collection, when awaited. This structure also offers functions to customize the options for the operation.
- Parameters to query a
schema::View
. - Interacts with a collection over a
Connection
. - A database stored in BonsaiDb.
- Retrieves a list of documents from a collection. This structure also offers functions to customize the options for the operation.
- A range type that can represent all
std
range types and be serialized. - A range reference type that can be serialized.
- A buffer containing sensitive (private) data. This struct automatically overwrites its contents with zeroes when dropped.
- A string containing sensitive (private) data. This struct automatically overwrites its contents with zeroes when dropped.
- The authentication state for a
StorageConnection
. - A unique session ID.
- Parameters to query a
schema::View
.
Enums
- Changes how the view’s outdated data will be treated.
- Authentication methods.
- Methods for authentication.
- A range bound that can be serialized.
- A range bound reference.
- An identity from the connected BonsaiDb instance.
- An identity from the connected BonsaiDb instance.
- A reference to an identity.
- A value that may be owned or not. Similar to
std::borrow::Cow
but does not requireClone
. - Filters a
View
by key. - A
QueryKey
that has had its keys serialized. - The authentication state of a
Session
. - A sort order.
- A token challenge algorith designates with which algorthm to authenticate tokens.
Traits
- A connection to a database’s
Schema
, giving access toCollection
s andViews
s. All functions on this trait are safe to use in an asynchronous context. - The low-level interface to a database’s
schema::Schema
, giving access toCollection
s andViews
s. This trait is for use within async contexts. For access outside of async contexts, useLowLevelConnection
. - Functions for interacting with a multi-database BonsaiDb instance.
- A connection to a database’s
Schema
, giving access toCollection
s andViews
s. This trait is not safe to use within async contexts and will block the current thread. For async access, useAsyncConnection
. - Access to a connection’s schema.
- Functions to access information about the current session (authentication).
- The low-level interface to a database’s
schema::Schema
, giving access toCollection
s andViews
s. This trait is not safe to use within async contexts and will block the current thread. For async access, useAsyncLowLevelConnection
. - Functions for interacting with a multi-database BonsaiDb instance.
Type Definitions
- This type is the result of
reduce_grouped()
. It is a list of all matching keys and the reduced value of all mapped entries for that key. - ViewMappingsDeprecatedThis type is the result of
query()
. It is a list of mappings, which contains: