fn save_metadata(db: &Db, next_id: i64, last_indexed_tx: i64) -> Result<()> {
    let metadata = DbMetadata {
        next_id,
        last_indexed_tx,
        schema: db.schema.clone(),
        eav: db.eav.durable_root(),
        aev: db.aev.durable_root(),
        ave: db.ave.durable_root(),
        vae: db.vae.durable_root(),
    };

    db.store.set_metadata(&metadata)?;
    Ok(())
}
/// Saves the db metadata (index root nodes, entity ID state) to
/// storage, when implemented by the storage backend (i.e. when
/// not using in-memory storage).
Saves the db metadata (index root nodes, entity ID state) to
storage, when implemented by the storage backend .
Saves the db metadata ( index root nodes entity ID state ) to storage when implemented by the storage backend .
fn save_metadata(db: &Db, next_id: i64, last_indexed_tx: i64) -> Result<()> {
    let metadata = DbMetadata {
        next_id,
        last_indexed_tx,
        schema: db.schema.clone(),
        eav: db.eav.durable_root(),
        aev: db.aev.durable_root(),
        ave: db.ave.durable_root(),
        vae: db.vae.durable_root(),
    };
    db.store.set_metadata(&metadata)?;
    Ok(())
}
fn save_metadata ( db : & Db , next_id : i64 , last_indexed_tx : i64 ) -> Result < ( ) > { let metadata = DbMetadata { next_id , last_indexed_tx , schema : db . schema . clone ( ) , eav : db . eav . durable_root ( ) , aev : db . aev . durable_root ( ) , ave : db . ave . durable_root ( ) , vae : db . vae . durable_root ( ) , } ; db . store . set_metadata ( & metadata ) ? ; Ok ( ( ) ) }
Saves the db metadata (index root nodes, entity ID state) to
storage, when implemented by the storage backend (i.e.
Saves the db metadata ( index root nodes entity ID state ) to storage when implemented by the storage backend ( i . e .
db
&Db
next_id
i64
last_indexed_tx
i64
db
&Db
next_id
i64
last_indexed_tx
i64