pub struct Engine<'a> { /* private fields */ }Implementations§
Source§impl<'a> Engine<'a>
impl<'a> Engine<'a>
pub fn new( env: &'a Environment, driver: Driver, pager: Option<String>, painter: Painter, settings: Settings, ) -> MyResult<Self>
pub fn exec_sql(&mut self, query: &str) -> MyResult<()>
pub fn run_file<R: Read>(&mut self, reader: R) -> MyResult<()>
pub fn exec_loop(&mut self, alias: String) -> MyResult<()>
pub fn create_catalog(&mut self) -> MyResult<Rc<Catalog>>
pub fn show_databases(&mut self, catalog: &Catalog, _line: &str) -> MyResult<()>
pub fn show_tables(&mut self, catalog: &Catalog, line: &str) -> MyResult<()>
pub fn show_columns(&mut self, catalog: &Catalog, line: &str) -> MyResult<()>
pub fn show_procedures(&mut self, catalog: &Catalog, line: &str) -> MyResult<()>
pub fn show_keywords(&mut self, catalog: &Catalog, _line: &str) -> MyResult<()>
pub fn show_functions(&mut self, catalog: &Catalog, _line: &str) -> MyResult<()>
pub fn print_dataset<R: Read, W: Write>( writer: &mut W, painter: Painter, dataset: Dataset<'_, R>, settings: &Settings, interact: bool, ) -> MyResult<()>
Auto Trait Implementations§
impl<'a> Freeze for Engine<'a>
impl<'a> !RefUnwindSafe for Engine<'a>
impl<'a> !Send for Engine<'a>
impl<'a> !Sync for Engine<'a>
impl<'a> Unpin for Engine<'a>
impl<'a> UnsafeUnpin for Engine<'a>
impl<'a> !UnwindSafe for Engine<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more