pub struct LocustDB { /* private fields */ }
Implementations§
source§impl LocustDB
impl LocustDB
pub fn memory_only() -> LocustDB
pub fn new(opts: &Options) -> LocustDB
pub async fn run_query( &self, query: &str, explain: bool, rowformat: bool, show: Vec<usize> ) -> Result<QueryResult, Canceled>
pub async fn load_csv(&self, options: LoadOptions) -> Result<(), Box<dyn Error>>
pub async fn ingest_efficient(&self, events: EventBuffer)
pub async fn gen_table(&self, opts: GenTable) -> Result<(), Canceled>
pub fn ast(&self, query: &str) -> String
pub fn search_column_names(&self, table: &str, query: &str) -> Vec<String>
pub async fn bulk_load(&self) -> Result<Vec<MemTreeTable>, Canceled>
pub fn recover(&self)
pub async fn mem_tree( &self, depth: usize ) -> Result<Vec<MemTreeTable>, Canceled>
pub async fn table_stats(&self) -> Result<Vec<TableStats>, Canceled>
pub fn schedule<T: Task + 'static>(&self, task: T)
pub fn perf_counter(&self) -> &PerfCounter
pub fn force_flush(&self)
pub fn evict_cache(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LocustDB
impl !RefUnwindSafe for LocustDB
impl Send for LocustDB
impl Sync for LocustDB
impl Unpin for LocustDB
impl !UnwindSafe for LocustDB
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