pub struct NativeRuntime { /* private fields */ }Expand description
All seven native services backed by the canonical server runtime.
Implementations§
Source§impl NativeRuntime
impl NativeRuntime
pub fn new( db: Arc<Database>, sessions: Arc<SessionStore>, query_registry: Arc<SqlQueryRegistry>, ) -> Self
pub fn with_external_auth(self, auth: NativeExternalAuth) -> Self
Trait Implementations§
Source§impl AdminService for NativeRuntime
impl AdminService for NativeRuntime
Source§impl AuthService for NativeRuntime
impl AuthService for NativeRuntime
fn authenticate<'life0, 'async_trait>(
&'life0 self,
request: Request<AuthenticateRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<AuthenticateResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn begin_scram<'life0, 'async_trait>(
&'life0 self,
request: Request<BeginScramRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<BeginScramResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn finish_scram<'life0, 'async_trait>(
&'life0 self,
request: Request<FinishScramRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<FinishScramResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§impl CatalogService for NativeRuntime
impl CatalogService for NativeRuntime
fn get_schema<'life0, 'async_trait>(
&'life0 self,
request: Request<GetSchemaRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetSchemaResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create_table<'life0, 'async_trait>(
&'life0 self,
request: Request<CreateTableRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<CreateTableResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§impl Clone for NativeRuntime
impl Clone for NativeRuntime
Source§fn clone(&self) -> NativeRuntime
fn clone(&self) -> NativeRuntime
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 moreSource§impl HealthService for NativeRuntime
impl HealthService for NativeRuntime
Source§impl QueryService for NativeRuntime
impl QueryService for NativeRuntime
Source§type ExecuteStreamStream = Pin<Box<dyn Stream<Item = Result<ArrowFrame, Status>> + Send>>
type ExecuteStreamStream = Pin<Box<dyn Stream<Item = Result<ArrowFrame, Status>> + Send>>
Server streaming response type for the ExecuteStream method.
fn prepare<'life0, 'async_trait>(
&'life0 self,
request: Request<PrepareRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<PrepareResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute<'life0, 'async_trait>(
&'life0 self,
request: Request<ExecuteRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ExecuteResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute_stream<'life0, 'async_trait>(
&'life0 self,
request: Request<ExecuteRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::ExecuteStreamStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn cancel_query<'life0, 'async_trait>(
&'life0 self,
request: Request<CancelQueryRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<CancelQueryResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_query_status<'life0, 'async_trait>(
&'life0 self,
request: Request<GetQueryStatusRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryStatusResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§impl SessionService for NativeRuntime
impl SessionService for NativeRuntime
fn open_session<'life0, 'async_trait>(
&'life0 self,
request: Request<OpenSessionRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<OpenSessionResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn close_session<'life0, 'async_trait>(
&'life0 self,
request: Request<CloseSessionRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<Empty>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§impl TransactionService for NativeRuntime
impl TransactionService for NativeRuntime
fn begin<'life0, 'async_trait>(
&'life0 self,
request: Request<BeginTransactionRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<BeginTransactionResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn commit<'life0, 'async_trait>(
&'life0 self,
request: Request<TransactionRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<Empty>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn rollback<'life0, 'async_trait>(
&'life0 self,
request: Request<TransactionRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<Empty>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl !RefUnwindSafe for NativeRuntime
impl !UnwindSafe for NativeRuntime
impl Freeze for NativeRuntime
impl Send for NativeRuntime
impl Sync for NativeRuntime
impl Unpin for NativeRuntime
impl UnsafeUnpin for NativeRuntime
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> 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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request