/// Constructs a new SQLite on-disk store.
Constructs a new SQLite on-disk store.
Constructs a new SQLite on - disk store .
pub fn new_on_disk(location: &Path) -> Result<Self, BlockStoreError> {
        std::fs::create_dir_all(location)
            .expect("Unable to create directory for SQLite on-disk store.");
        let path = location.join("db.sqlite");
        let connection =
            rusqlite::Connection::open(&path).expect("Unable to open SQLite database connection");
        Self::new(connection)
    }
pub fn new_on_disk ( location : & Path ) -> Result < Self , BlockStoreError > { std :: fs :: create_dir_all ( location ) . expect ( " " ) ; let path = location . join ( " " ) ; let connection = rusqlite :: Connection :: open ( & path ) . expect ( " " ) ; Self :: new ( connection ) }
Constructs a new SQLite on-disk store.
Constructs a new SQLite on - disk store .
location
&Path