Skip to main content

Lake

Struct Lake 

Source
pub struct Lake { /* private fields */ }
Expand description

Main interface to the DuckLake data storage

Implementations§

Source§

impl Lake

Source

pub fn create_archives_table(&self) -> Result<()>

Source

pub fn add_archive(&self, name: &str, data: &[u8]) -> Result<()>

Source

pub fn get_archive(&self, name: &str) -> Result<Option<Vec<u8>>>

Source

pub fn list_archives(&self) -> Result<Vec<String>>

Source§

impl Lake

Source

pub fn create_files_table(&self) -> Result<()>

Source

pub fn add_file( &self, filepath: &str, filename: &str, data: &[u8], ) -> Result<()>

Source

pub fn get_file(&self, filepath: &str, filename: &str) -> Result<Option<File>>

Source

pub fn list_files(&self, filepath: &str) -> Result<Vec<String>>

Source

pub fn delete_file(&self, filepath: &str, filename: &str) -> Result<()>

Source§

impl Lake

Source

pub fn create_secrets_table(&self) -> Result<()>

Source

pub fn set_secret(&self, name: &str, value: &[u8]) -> Result<()>

Source

pub fn get_secret(&self, name: &str) -> Result<Option<Vec<u8>>>

Source

pub fn list_secrets(&self) -> Result<Vec<String>>

Source

pub fn delete_secret(&self, name: &str) -> Result<bool>

Source§

impl Lake

Source

pub fn new() -> Result<Self>

Create a new Lake instance with default configuration

Source

pub fn with_config(config: Config) -> Result<Self>

Create a new Lake instance with custom configuration

Source

pub fn connection(&self) -> &Connection

Source

pub fn config(&self) -> &Config

Source

pub fn execute(&self, sql: &str) -> Result<()>

Source

pub fn prepare(&self, sql: &str) -> Result<Statement<'_>>

Source

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.