pub struct SqlConnect { /* private fields */ }Expand description
Connect handler implementing store.sql.v1.Service.
Implementations§
Trait Implementations§
Source§impl Clone for SqlConnect
impl Clone for SqlConnect
Source§fn clone(&self) -> SqlConnect
fn clone(&self) -> SqlConnect
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Service for SqlConnect
impl Service for SqlConnect
Source§fn subscribe(
&self,
ctx: Context,
request: OwnedView<SubscribeRequestView<'static>>,
) -> impl Future<Output = Result<(Pin<Box<dyn Stream<Item = Result<SubscribeResponse, ConnectError>> + Send>>, Context), ConnectError>> + Send
fn subscribe( &self, ctx: Context, request: OwnedView<SubscribeRequestView<'static>>, ) -> impl Future<Output = Result<(Pin<Box<dyn Stream<Item = Result<SubscribeResponse, ConnectError>> + Send>>, Context), ConnectError>> + Send
Re-run a SQL WHERE predicate against every incoming batch that touches
table’s primary-key codec family. Emits one SubscribeResponse per
matched batch containing just the rows that satisfied the predicate.Source§fn tables(
&self,
ctx: Context,
_request: OwnedView<TablesRequestView<'static>>,
) -> impl Future<Output = Result<(TablesResponse, Context), ConnectError>> + Send
fn tables( &self, ctx: Context, _request: OwnedView<TablesRequestView<'static>>, ) -> impl Future<Output = Result<(TablesResponse, Context), ConnectError>> + Send
Describe every registered table. Carries KV-specific metadata
(primary-key order, secondary indexes with their layout + cover columns)
that DataFusion’s
information_schema doesn’t surface.Source§fn query(
&self,
ctx: Context,
request: OwnedView<QueryRequestView<'static>>,
) -> impl Future<Output = Result<(QueryResponse, Context), ConnectError>> + Send
fn query( &self, ctx: Context, request: OwnedView<QueryRequestView<'static>>, ) -> impl Future<Output = Result<(QueryResponse, Context), ConnectError>> + Send
Ad-hoc unary SQL against the server-side session. Useful for inspecting
the current table state alongside the live subscription.
Auto Trait Implementations§
impl Freeze for SqlConnect
impl !RefUnwindSafe for SqlConnect
impl Send for SqlConnect
impl Sync for SqlConnect
impl Unpin for SqlConnect
impl UnsafeUnpin for SqlConnect
impl !UnwindSafe for SqlConnect
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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