pub struct DuckdbBackend { /* private fields */ }Implementations§
Source§impl DuckdbBackend
impl DuckdbBackend
pub fn open(path: &str) -> Result<Self, String>
pub fn open_parquet(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>
pub fn export_csv<W: Write>( &self, table: &str, writer: &mut W, ) -> Result<(), String>
Auto Trait Implementations§
impl !Freeze for DuckdbBackend
impl !RefUnwindSafe for DuckdbBackend
impl !Sync for DuckdbBackend
impl !UnwindSafe for DuckdbBackend
impl Send for DuckdbBackend
impl Unpin for DuckdbBackend
impl UnsafeUnpin for DuckdbBackend
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