pub fn get_ancestor(conn: &Connection, id: i64) -> Result<Node, Box<dyn Error>>
Expand description

Retrieve the ancestor

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

let ancestor = intspan::get_ancestor(&conn, 12340).unwrap();

assert_eq!(ancestor.tax_id, 12333);