pub fn connect_txdb(dir: &PathBuf) -> Result<Connection, Box<dyn Error>>
Expand description

Connect taxonomy.sqlite in this dir

let path = std::path::PathBuf::from("tests/nwr/");
let conn = intspan::connect_txdb(&path).unwrap();

assert_eq!(conn.path().unwrap().to_str().unwrap(), "tests/nwr/taxonomy.sqlite");