pub struct SqliteBackend { /* private fields */ }Implementations§
Source§impl SqliteBackend
impl SqliteBackend
pub fn open(path: &str) -> Result<Self, String>
pub fn path(&self) -> &str
pub fn get_info(&self) -> Result<DbInfo, String>
pub fn list_tables(&self) -> Result<Vec<TableInfo>, String>
pub fn list_views(&self) -> Result<Vec<String>, String>
pub fn list_indexes(&self) -> Result<Vec<IndexInfo>, String>
pub fn get_schema(&self, table: &str) -> Result<Vec<ColumnInfo>, String>
pub fn query_table( &self, table: &str, limit: usize, offset: usize, sort: Option<Sort>, ) -> Result<QueryResult, String>
pub fn run_query(&self, sql: &str) -> Result<QueryResult, String>
pub fn get_row_count(&self, table: &str) -> Result<u64, String>
Auto Trait Implementations§
impl !Freeze for SqliteBackend
impl !RefUnwindSafe for SqliteBackend
impl !Sync for SqliteBackend
impl !UnwindSafe for SqliteBackend
impl Send for SqliteBackend
impl Unpin for SqliteBackend
impl UnsafeUnpin for SqliteBackend
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