extern crate find_latest_nav; use rusqlite::Connection; pub fn db_connection() -> Connection { let conn = find_latest_nav::db::open_connection_from("database", "test_db_2019.db"); // setup code, like creating required files, directories, starting servers etc conn }