pub struct QueryBuilder { /* private fields */ }Expand description
Fluent builder for TraceDB hybrid queries.
Implementations§
Source§impl QueryBuilder
impl QueryBuilder
pub fn tenant(self, tenant_id: impl Into<String>) -> Self
pub fn where_eq(self, field: impl Into<String>, value: impl Into<Value>) -> Self
pub fn match_text( self, field: impl Into<String>, query: impl Into<String>, ) -> Self
pub fn near(self, field: impl Into<String>, vector: Vec<f32>) -> Self
pub fn freshness(self, freshness: FeatureFreshnessMode) -> Self
pub fn limit(self, limit: usize) -> Self
pub fn cursor(self, cursor: impl Into<String>) -> Self
pub fn with_explain(self) -> Self
pub fn query(&self) -> Self
pub fn without_explain(self) -> Self
pub fn insert( &self, id: impl Into<String>, fields: Map<String, Value>, ) -> TraceDbClientResult<EpochResponse>
pub fn insert_with_options( &self, id: impl Into<String>, fields: Map<String, Value>, options: &TraceDbRequestOptions, ) -> TraceDbClientResult<EpochResponse>
pub fn insert_batch( &self, records: Vec<TableRecordInput>, ) -> TraceDbClientResult<PutBatchResponse>
pub fn insert_batch_with_options( &self, records: Vec<TableRecordInput>, options: &TraceDbRequestOptions, ) -> TraceDbClientResult<PutBatchResponse>
pub fn insert_rows( &self, rows: Vec<Map<String, Value>>, ) -> TraceDbClientResult<PutBatchResponse>
pub fn insert_rows_with_options( &self, rows: Vec<Map<String, Value>>, options: &TraceDbRequestOptions, ) -> TraceDbClientResult<PutBatchResponse>
pub fn insert_rows_with_id_field( &self, rows: Vec<Map<String, Value>>, id_field: impl Into<String>, ) -> TraceDbClientResult<PutBatchResponse>
pub fn insert_rows_with_id_field_and_options( &self, rows: Vec<Map<String, Value>>, id_field: impl Into<String>, options: &TraceDbRequestOptions, ) -> TraceDbClientResult<PutBatchResponse>
pub fn patch_record( &self, id: impl Into<String>, fields: Map<String, Value>, ) -> TraceDbClientResult<EpochResponse>
pub fn patch_record_with_options( &self, id: impl Into<String>, fields: Map<String, Value>, options: &TraceDbRequestOptions, ) -> TraceDbClientResult<EpochResponse>
pub fn get_record( &self, id: impl Into<String>, ) -> TraceDbClientResult<GetRecordResponse>
pub fn scan_typed(&self) -> TraceDbClientResult<RecordScanOutput>
pub fn delete_record( &self, id: impl Into<String>, ) -> TraceDbClientResult<DeleteResponse>
pub fn delete_record_with_options( &self, id: impl Into<String>, options: &TraceDbRequestOptions, ) -> TraceDbClientResult<DeleteResponse>
pub fn all(self) -> TraceDbClientResult<QueryResponse>
pub fn explain_plan(self) -> TraceDbClientResult<HybridExplain>
pub fn build(self) -> TraceQueryRequest
pub fn put(self, id: impl Into<String>) -> RecordPutBuilder
pub fn scan(self) -> RecordScanBuilder
pub fn delete(self, id: impl Into<String>) -> RecordDeleteBuilder
Trait Implementations§
Source§impl Clone for QueryBuilder
impl Clone for QueryBuilder
Source§fn clone(&self) -> QueryBuilder
fn clone(&self) -> QueryBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for QueryBuilder
impl RefUnwindSafe for QueryBuilder
impl Send for QueryBuilder
impl Sync for QueryBuilder
impl Unpin for QueryBuilder
impl UnsafeUnpin for QueryBuilder
impl UnwindSafe for QueryBuilder
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