pub struct Storage { /* private fields */ }
Expand description
Storage manager for the columnar database.
Implementations§
Source§impl Storage
impl Storage
Sourcepub fn new(options: StorageOptions) -> Result<Self>
pub fn new(options: StorageOptions) -> Result<Self>
Create a new storage manager.
Sourcepub fn open_table(&self, name: &str) -> Result<Table>
pub fn open_table(&self, name: &str) -> Result<Table>
Open an existing table.
Sourcepub fn drop_table(&self, name: &str) -> Result<()>
pub fn drop_table(&self, name: &str) -> Result<()>
Drop a table.
Sourcepub fn list_tables(&self) -> Result<Vec<String>>
pub fn list_tables(&self) -> Result<Vec<String>>
List all tables.
Sourcepub fn options(&self) -> &StorageOptions
pub fn options(&self) -> &StorageOptions
Get the storage options.
Auto Trait Implementations§
impl Freeze for Storage
impl RefUnwindSafe for Storage
impl Send for Storage
impl Sync for Storage
impl Unpin for Storage
impl UnwindSafe for Storage
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