Function sqlite_parser::parse_no_parser [−][src]
pub fn parse_no_parser<P: AsRef<Path>>(path: P) -> Metadata
Convenience method to get the tables Example:
use sqlite_parser::parse_no_parser; use std::fs::File; /// This is the location to the SQLite file let my_sqlite_file_location = std::env::current_dir().unwrap().join("test_sqlite.sqlite3"); /// For the doc test, create the actual SQLite file let sqlite_file = File::create(&my_sqlite_file_location).unwrap(); /// Start the parsing let _tables = parse_no_parser(&my_sqlite_file_location); /// Do stuff with the tables property! /// Remove the SQLite file for the doc test std::fs::remove_file(&my_sqlite_file_location).unwrap();