pub struct Lake { /* private fields */ }Expand description
Main interface to the DuckLake data storage
Implementations§
Source§impl Lake
impl Lake
pub fn create_files_table(&self) -> Result<()>
pub fn add_file( &self, filepath: &str, filename: &str, data: &[u8], ) -> Result<()>
pub fn get_file(&self, filepath: &str, filename: &str) -> Result<Option<File>>
pub fn list_files(&self, filepath: &str) -> Result<Vec<String>>
pub fn delete_file(&self, filepath: &str, filename: &str) -> Result<()>
Source§impl Lake
impl Lake
pub fn create_secrets_table(&self) -> Result<()>
pub fn set_secret(&self, name: &str, value: &[u8]) -> Result<()>
pub fn get_secret(&self, name: &str) -> Result<Option<Vec<u8>>>
pub fn list_secrets(&self) -> Result<Vec<String>>
pub fn delete_secret(&self, name: &str) -> Result<bool>
Source§impl Lake
impl Lake
Sourcepub fn with_config(config: Config) -> Result<Self>
pub fn with_config(config: Config) -> Result<Self>
Create a new Lake instance with custom configuration
pub fn connection(&self) -> &Connection
pub fn config(&self) -> &Config
pub fn execute(&self, sql: &str) -> Result<()>
pub fn prepare(&self, sql: &str) -> Result<Statement<'_>>
pub fn get_sql_commands(&self) -> String
Auto Trait Implementations§
impl !Freeze for Lake
impl !RefUnwindSafe for Lake
impl Send for Lake
impl !Sync for Lake
impl Unpin for Lake
impl UnsafeUnpin for Lake
impl UnwindSafe for Lake
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