pub fn init_cache_database(db_cache: &BlockDb) -> Result<(), Error>
Expand description

Sets up the internal structure of the cache database.

Examples

use tempfile::NamedTempFile;
use zcash_client_sqlite::{
    BlockDb,
    chain::init::init_cache_database,
};

let cache_file = NamedTempFile::new().unwrap();
let db = BlockDb::for_path(cache_file.path()).unwrap();
init_cache_database(&db).unwrap();