[][src]Struct locustdb::LocustDB

pub struct LocustDB { /* fields omitted */ }

Implementations

impl LocustDB[src]

pub fn memory_only() -> LocustDB[src]

pub fn new(opts: &Options) -> LocustDB[src]

pub async fn run_query<'_, '_>(
    &'_ self,
    query: &'_ str,
    explain: bool,
    show: Vec<usize>
) -> Result<QueryResult, Canceled>
[src]

pub async fn load_csv<'_>(
    &'_ self,
    options: LoadOptions
) -> Result<(), Box<dyn Error>>
[src]

pub async fn gen_table<'_>(&'_ self, opts: GenTable) -> Result<(), Canceled>[src]

pub fn ast(&self, query: &str) -> String[src]

pub async fn bulk_load<'_>(&'_ self) -> Result<Vec<MemTreeTable>, Canceled>[src]

pub fn recover(&self)[src]

pub async fn mem_tree<'_>(
    &'_ self,
    depth: usize
) -> Result<Vec<MemTreeTable>, Canceled>
[src]

pub async fn table_stats<'_>(&'_ self) -> Result<Vec<TableStats>, Canceled>[src]

pub fn schedule<T: Task + 'static>(&self, task: T)[src]

pub fn persistent_storage<P: AsRef<Path>>(_: P) -> Arc<dyn DiskStore>[src]

Trait Implementations

impl Drop for LocustDB[src]

Auto Trait Implementations

impl !RefUnwindSafe for LocustDB

impl Send for LocustDB

impl Sync for LocustDB

impl Unpin for LocustDB

impl !UnwindSafe for LocustDB

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.