pub struct Database { /* private fields */ }Implementations§
Source§impl Database
impl Database
pub fn new_on_disk(db_path: &str) -> QuillSQLResult<Self>
pub fn new_on_disk_with_options( db_path: &str, options: DatabaseOptions, ) -> QuillSQLResult<Self>
pub fn new_temp() -> QuillSQLResult<Self>
pub fn new_temp_with_options(options: DatabaseOptions) -> QuillSQLResult<Self>
pub fn run(&mut self, sql: &str) -> QuillSQLResult<Vec<Tuple>>
pub fn run_with_session( &mut self, session: &mut SessionContext, sql: &str, ) -> QuillSQLResult<Vec<Tuple>>
pub fn default_isolation(&self) -> IsolationLevel
pub fn create_logical_plan(&mut self, sql: &str) -> QuillSQLResult<LogicalPlan>
pub fn analyze_table( &mut self, table_ref: &TableReference, ) -> QuillSQLResult<TableStatistics>
pub fn flush(&self) -> QuillSQLResult<()>
pub fn debug_last_trace(&self) -> Option<DebugTrace>
pub fn debug_lock_snapshot(&self) -> LockDebugSnapshot
pub fn debug_txn_snapshot(&self) -> TxnDebugSnapshot
pub fn debug_mvcc_versions(&self) -> QuillSQLResult<MvccVersionsDebug>
pub fn debug_last_plan(&self) -> Option<DebugPlanSnapshot>
pub fn table_statistics( &self, table_ref: &TableReference, ) -> Option<&TableStatistics>
pub fn transaction_manager(&self) -> Arc<TransactionManager> ⓘ
Auto Trait Implementations§
impl Freeze for Database
impl !RefUnwindSafe for Database
impl Send for Database
impl Sync for Database
impl Unpin for Database
impl UnsafeUnpin for Database
impl !UnwindSafe for Database
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