Skip to main content

MongrelClient

Struct MongrelClient 

Source
pub struct MongrelClient { /* private fields */ }

Implementations§

Source§

impl MongrelClient

Source

pub fn try_with_bearer_token(self, token: impl AsRef<str>) -> ClientResult<Self>

Source

pub fn with_bearer_token(self, token: impl AsRef<str>) -> ClientResult<Self>

Source

pub fn try_with_basic_auth( self, username: impl AsRef<str>, password: impl AsRef<str>, ) -> ClientResult<Self>

Source

pub fn with_basic_auth( self, username: impl AsRef<str>, password: impl AsRef<str>, ) -> ClientResult<Self>

Source§

impl MongrelClient

Source

pub fn builder(url: impl AsRef<str>) -> MongrelClientBuilder

Source

pub fn new(url: &str) -> ClientResult<Self>

Source

pub fn with_options( url: impl AsRef<str>, options: RemoteOptions, ) -> ClientResult<Self>

Source

pub fn health(&self) -> ClientResult<String>

Source

pub fn capabilities(&self) -> ClientResult<ServerCapabilities>

Source

pub fn sql_cancellation_capabilities( &self, ) -> ClientResult<SqlCancellationCapabilities>

Source

pub fn sql_idempotency_capabilities( &self, ) -> ClientResult<SqlIdempotencyCapabilities>

Source

pub fn sql_pagination_capabilities( &self, ) -> ClientResult<SqlPaginationCapabilities>

Source

pub fn set_history_retention_epochs( &self, epochs: u64, ) -> ClientResult<HistoryRetention>

Source

pub fn history_retention_epochs(&self) -> ClientResult<u64>

Source

pub fn earliest_retained_epoch(&self) -> ClientResult<u64>

Source

pub fn list_tables(&self) -> ClientResult<Vec<String>>

Source

pub fn create_table( &self, name: &str, columns: Vec<ColumnDefJson>, ) -> ClientResult<u64>

Source

pub fn drop_table(&self, name: &str) -> ClientResult<()>

Source

pub fn count(&self, table: &str) -> ClientResult<u64>

Source

pub fn put(&self, table: &str, row: Vec<(u16, Value)>) -> ClientResult<u64>

Source

pub fn commit(&self, table: &str) -> ClientResult<u64>

Source

pub fn sql(&self, sql: &str) -> ClientResult<Vec<RecordBatch>>

Source

pub fn sql_with_options( &self, sql: &str, options: SqlClientOptions, ) -> ClientResult<Vec<RecordBatch>>

Source

pub fn sql_write_idempotent( &self, sql: &str, idempotency_key: impl Into<String>, ) -> ClientResult<RemoteSqlReceipt>

Source

pub fn sql_write_idempotent_with_options( &self, sql: &str, idempotency_key: impl Into<String>, options: SqlClientOptions, ) -> ClientResult<RemoteSqlReceipt>

Source

pub fn sql_page( &self, sql: &str, options: SqlPageOptions, ) -> ClientResult<RemoteSqlPage>

Source

pub fn continue_sql_page( &self, cursor: &str, options: RemoteSqlControlOptions, ) -> ClientResult<RemoteSqlPage>

Source

pub fn start_sql( &self, sql: impl Into<String>, options: SqlClientOptions, ) -> ClientResult<RemoteSqlQueryHandle>

Source

pub fn cancel_sql(&self, query_id: QueryId) -> ClientResult<RemoteCancelOutcome>

Source

pub fn query_status(&self, query_id: QueryId) -> ClientResult<RemoteQueryStatus>

Source

pub fn txn(&self, ops: Vec<TxnOp>) -> ClientResult<()>

Source

pub fn kit_schema(&self, table: &str) -> ClientResult<TableSchemaInfo>

Fetch one table’s schema + constraint metadata (GET /kit/schema/{t}).

Source

pub fn kit_txn(&self, req: &KitTxnRequest) -> ClientResult<KitTxnResponse>

Run a typed atomic batch (POST /kit/txn). Constraint violations and conflicts return ClientError::Kit with the matching code.

Source

pub fn kit_query(&self, req: &KitQueryRequest) -> ClientResult<KitQueryResponse>

Run a native typed query (POST /kit/query) returning physical row ids and typed cells. Conditions intersect in the row-id space; this is the native counterpart to SQL reads (which hide row ids).

Source

pub fn kit_retrieve( &self, req: &KitRetrieveRequest, ) -> ClientResult<KitRetrieveResponse>

Source

pub fn kit_retrieve_with_options( &self, req: &KitRetrieveRequest, options: &AiExecutionOptions, ) -> ClientResult<KitRetrieveResponse>

Source

pub fn kit_retrieve_text( &self, req: &KitRetrieveTextRequest, ) -> ClientResult<KitRetrieveTextResponse>

Embed text under the active ANN semantic identity and retrieve (0.64+).

Source

pub fn kit_retrieve_text_with_options( &self, req: &KitRetrieveTextRequest, options: &AiExecutionOptions, ) -> ClientResult<KitRetrieveTextResponse>

Source

pub fn kit_ann_rerank( &self, req: &KitAnnRerankRequest, ) -> ClientResult<KitAnnRerankResponse>

Source

pub fn kit_ann_rerank_with_options( &self, req: &KitAnnRerankRequest, options: &AiExecutionOptions, ) -> ClientResult<KitAnnRerankResponse>

Source

pub fn kit_set_similarity( &self, req: &KitSetSimilarityRequest, ) -> ClientResult<KitSetSimilarityResponse>

Source

pub fn kit_set_similarity_with_options( &self, req: &KitSetSimilarityRequest, options: &AiExecutionOptions, ) -> ClientResult<KitSetSimilarityResponse>

Source

pub fn kit_ai_metrics(&self) -> ClientResult<Value>

Source

pub fn kit_create_table(&self, body: &Value) -> ClientResult<u64>

Create a table over HTTP (POST /kit/create_table) from the complete Kit schema JSON. The body may include constraints, all six public index kinds and their options, partial predicates, and column embedding sources. Returns the assigned table id.

Source

pub fn procedures(&self) -> ClientResult<Vec<StoredProcedure>>

Source

pub fn procedure(&self, name: &str) -> ClientResult<StoredProcedure>

Source

pub fn create_procedure( &self, procedure: StoredProcedure, ) -> ClientResult<StoredProcedure>

Source

pub fn replace_procedure( &self, name: &str, procedure: StoredProcedure, ) -> ClientResult<StoredProcedure>

Source

pub fn drop_procedure(&self, name: &str) -> ClientResult<()>

Source

pub fn call_procedure( &self, name: &str, req: &ProcedureCallRequest, ) -> ClientResult<ProcedureCallResponse>

Source

pub fn kit_call_procedure( &self, name: &str, req: &ProcedureCallRequest, ) -> ClientResult<ProcedureCallResponse>

Source

pub fn triggers(&self) -> ClientResult<Vec<StoredTrigger>>

Source

pub fn trigger(&self, name: &str) -> ClientResult<StoredTrigger>

Source

pub fn create_trigger( &self, trigger: StoredTrigger, ) -> ClientResult<StoredTrigger>

Source

pub fn create_trigger_with_idempotency_key( &self, trigger: StoredTrigger, idempotency_key: Option<impl Into<String>>, ) -> ClientResult<StoredTrigger>

Source

pub fn replace_trigger( &self, name: &str, trigger: StoredTrigger, ) -> ClientResult<StoredTrigger>

Source

pub fn replace_trigger_with_idempotency_key( &self, name: &str, trigger: StoredTrigger, idempotency_key: Option<impl Into<String>>, ) -> ClientResult<StoredTrigger>

Source

pub fn drop_trigger(&self, name: &str) -> ClientResult<()>

Source

pub fn drop_trigger_with_idempotency_key( &self, name: &str, idempotency_key: Option<impl Into<String>>, ) -> ClientResult<()>

Trait Implementations§

Source§

impl Clone for MongrelClient

Source§

fn clone(&self) -> MongrelClient

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Auto Trait Implementations§

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FromRef<T> for T
where T: Clone,

Source§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> IntoRequest<T> for T

Source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
Source§

impl<L> LayerExt<L> for L

Source§

fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>
where L: Layer<S>,

Applies the layer to a service and wraps it in Layered.
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

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

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more