) -> 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> {
let document = bincode::deserialize::<BorrowedDocument<'_>>(bytes).map_err(Error::from)?;
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<StdFile>, key_value_persistence: KeyValuePersistence) -> Self {