) -> Result<bonsaidb_core::schema::view::map::MappedSerializedDocuments, bonsaidb_core::Error>
let view = self.schematic().view_by_name(view).unwrap(); // query() will fail if it's not present
pub(crate) fn collection_encryption_key(&self, collection: &CollectionName) -> Option<&KeyId> {
pub(crate) fn deserialize_document(bytes: &[u8]) -> Result<BorrowedDocument<'_>, Error> {
fn serialize_document(document: &BorrowedDocument<'_>) -> Result<Vec<u8>, bonsaidb_core::Error> {
async fn compact_collection<C: schema::Collection>(&self) -> Result<(), bonsaidb_core::Error> {
pub(crate) fn new(roots: Roots<AnyFile>, key_value_persistence: KeyValuePersistence) -> Self {