get_db_size

Function get_db_size 

Source
pub fn get_db_size(path: &Path) -> Result<u64, TableError>
Expand description

Get the size of the database on the disk

use imessage_database::{
    util::dirs::default_db_path,
    tables::table::get_db_size
};

let db_path = default_db_path();
let database_size_in_bytes = get_db_size(&db_path);