[−][src]Struct mdbtools_rs::MDatabase
Database struct that holds the original filepath, tables and it's sql_schema
Fields
file: String
Filepath to the original file
tables: HashMap<String, MTable>
Hashmap of tables contained in the database
sql_schema: Option<String>
SQL schema of the database
Methods
impl MDatabase
[src]
pub fn open_database(path: &str) -> MDatabase
[src]
Open a database file
pub fn fetch_sql_schema(&mut self)
[src]
Fetch the SQL schema
pub fn fetch_csv(&mut self, table: &str)
[src]
Fetch the CSV data for a table
pub fn fetch_sql(&mut self, table: &str)
[src]
Fetch the SQL data for a table
pub fn get_sql_schema(&mut self) -> String
[src]
Get SQL schema It also stores inside of the MDatabase
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for MDatabase
impl Send for MDatabase
impl Sync for MDatabase
impl Unpin for MDatabase
impl UnwindSafe for MDatabase
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,