Struct pschema_rs::backends::duckdb::DuckDB
source · pub struct DuckDB;Trait Implementations§
source§impl Backend for DuckDB
impl Backend for DuckDB
The DuckDB block defines a Rust module that contains import and export.
source§fn import(path: &str) -> Result<DataFrame, String>
fn import(path: &str) -> Result<DataFrame, String>
This function retrieves data from a DuckDB database and returns it as a DataFrame.
Arguments:
path: The path to the DuckDB database file.
Returns:
This function returns a Result<DataFrame, String>, where the DataFrame
is the result of querying and processing data from a DuckDB database, and
the String is an error message in case any error occurs during the
execution of the function.
fn export(_path: &str, _df: DataFrame) -> Result<(), String>
Auto Trait Implementations§
impl RefUnwindSafe for DuckDB
impl Send for DuckDB
impl Sync for DuckDB
impl Unpin for DuckDB
impl UnwindSafe for DuckDB
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