pub struct TableServiceClient<T> { /* private fields */ }

Implementations§

source§

impl TableServiceClient<Channel>

source

pub async fn connect<D>( dst: D ) -> impl Future<Output = Result<TableServiceClient<Channel>, Error>>where D: TryInto<Endpoint>, <D as TryInto<Endpoint>>::Error: Into<Box<dyn Error + Send + Sync, Global>>,

Attempt to create a new client by connecting to a given endpoint.

source§

impl<T> TableServiceClient<T>where T: GrpcService<UnsyncBoxBody<Bytes, Status>>, <T as GrpcService<UnsyncBoxBody<Bytes, Status>>>::Error: Into<Box<dyn Error + Send + Sync, Global>>, <T as GrpcService<UnsyncBoxBody<Bytes, Status>>>::ResponseBody: Body<Data = Bytes> + Send + 'static, <<T as GrpcService<UnsyncBoxBody<Bytes, Status>>>::ResponseBody as Body>::Error: Into<Box<dyn Error + Send + Sync, Global>> + Send,

source

pub fn new(inner: T) -> TableServiceClient<T>

source

pub fn with_origin(inner: T, origin: Uri) -> TableServiceClient<T>

source

pub fn with_interceptor<F>( inner: T, interceptor: F ) -> TableServiceClient<InterceptedService<T, F>>where F: Interceptor, <T as GrpcService<UnsyncBoxBody<Bytes, Status>>>::ResponseBody: Default, T: Service<Request<UnsyncBoxBody<Bytes, Status>>, Response = Response<<T as GrpcService<UnsyncBoxBody<Bytes, Status>>>::ResponseBody>>, <T as Service<Request<UnsyncBoxBody<Bytes, Status>>>>::Error: Into<Box<dyn Error + Send + Sync, Global>> + Send + Sync,

source

pub fn send_compressed( self, encoding: CompressionEncoding ) -> TableServiceClient<T>

Compress requests with the given encoding.

This requires the server to support it otherwise it might respond with an error.

source

pub fn accept_compressed( self, encoding: CompressionEncoding ) -> TableServiceClient<T>

Enable decompressing responses.

source

pub fn max_decoding_message_size(self, limit: usize) -> TableServiceClient<T>

Limits the maximum size of a decoded message.

Default: 4MB

source

pub fn max_encoding_message_size(self, limit: usize) -> TableServiceClient<T>

Limits the maximum size of an encoded message.

Default: usize::MAX

source

pub async fn create_session( &mut self, request: impl IntoRequest<CreateSessionRequest> ) -> impl Future<Output = Result<Response<CreateSessionResponse>, Status>>

Create new session. Implicit session creation is forbidden, so user must create new session before execute any query, otherwise BAD_SESSION status will be returned. Simultaneous execution of requests are forbiden. Sessions are volatile, can be invalidated by server, for example in case of fatal errors. All requests with this session will fail with BAD_SESSION status. So, client must be able to handle BAD_SESSION status.

source

pub async fn delete_session( &mut self, request: impl IntoRequest<DeleteSessionRequest> ) -> impl Future<Output = Result<Response<DeleteSessionResponse>, Status>>

Ends a session, releasing server resources associated with it.

source

pub async fn keep_alive( &mut self, request: impl IntoRequest<KeepAliveRequest> ) -> impl Future<Output = Result<Response<KeepAliveResponse>, Status>>

Idle sessions can be kept alive by calling KeepAlive periodically.

source

pub async fn create_table( &mut self, request: impl IntoRequest<CreateTableRequest> ) -> impl Future<Output = Result<Response<CreateTableResponse>, Status>>

Creates new table.

source

pub async fn drop_table( &mut self, request: impl IntoRequest<DropTableRequest> ) -> impl Future<Output = Result<Response<DropTableResponse>, Status>>

Drop table.

source

pub async fn alter_table( &mut self, request: impl IntoRequest<AlterTableRequest> ) -> impl Future<Output = Result<Response<AlterTableResponse>, Status>>

Modifies schema of given table.

source

pub async fn copy_table( &mut self, request: impl IntoRequest<CopyTableRequest> ) -> impl Future<Output = Result<Response<CopyTableResponse>, Status>>

Creates copy of given table.

source

pub async fn copy_tables( &mut self, request: impl IntoRequest<CopyTablesRequest> ) -> impl Future<Output = Result<Response<CopyTablesResponse>, Status>>

Creates consistent copy of given tables.

source

pub async fn rename_tables( &mut self, request: impl IntoRequest<RenameTablesRequest> ) -> impl Future<Output = Result<Response<RenameTablesResponse>, Status>>

Creates consistent move of given tables.

source

pub async fn describe_table( &mut self, request: impl IntoRequest<DescribeTableRequest> ) -> impl Future<Output = Result<Response<DescribeTableResponse>, Status>>

Returns information about given table (metadata).

source

pub async fn explain_data_query( &mut self, request: impl IntoRequest<ExplainDataQueryRequest> ) -> impl Future<Output = Result<Response<ExplainDataQueryResponse>, Status>>

Explains data query. SessionId of previously created session must be provided.

source

pub async fn prepare_data_query( &mut self, request: impl IntoRequest<PrepareDataQueryRequest> ) -> impl Future<Output = Result<Response<PrepareDataQueryResponse>, Status>>

Prepares data query, returns query id. SessionId of previously created session must be provided.

source

pub async fn execute_data_query( &mut self, request: impl IntoRequest<ExecuteDataQueryRequest> ) -> impl Future<Output = Result<Response<ExecuteDataQueryResponse>, Status>>

Executes data query. SessionId of previously created session must be provided.

source

pub async fn execute_scheme_query( &mut self, request: impl IntoRequest<ExecuteSchemeQueryRequest> ) -> impl Future<Output = Result<Response<ExecuteSchemeQueryResponse>, Status>>

Executes scheme query. SessionId of previously created session must be provided.

source

pub async fn begin_transaction( &mut self, request: impl IntoRequest<BeginTransactionRequest> ) -> impl Future<Output = Result<Response<BeginTransactionResponse>, Status>>

Begins new transaction.

source

pub async fn commit_transaction( &mut self, request: impl IntoRequest<CommitTransactionRequest> ) -> impl Future<Output = Result<Response<CommitTransactionResponse>, Status>>

Commits specified active transaction.

source

pub async fn rollback_transaction( &mut self, request: impl IntoRequest<RollbackTransactionRequest> ) -> impl Future<Output = Result<Response<RollbackTransactionResponse>, Status>>

Performs a rollback of the specified active transaction.

source

pub async fn describe_table_options( &mut self, request: impl IntoRequest<DescribeTableOptionsRequest> ) -> impl Future<Output = Result<Response<DescribeTableOptionsResponse>, Status>>

Describe supported table options.

source

pub async fn stream_read_table( &mut self, request: impl IntoRequest<ReadTableRequest> ) -> impl Future<Output = Result<Response<Streaming<ReadTableResponse>>, Status>>

Streaming read table

source

pub async fn bulk_upsert( &mut self, request: impl IntoRequest<BulkUpsertRequest> ) -> impl Future<Output = Result<Response<BulkUpsertResponse>, Status>>

Upserts a batch of rows non-transactionally. Returns success only when all rows were successfully upserted. In case of an error some rows might be upserted and some might not.

source

pub async fn stream_execute_scan_query( &mut self, request: impl IntoRequest<ExecuteScanQueryRequest> ) -> impl Future<Output = Result<Response<Streaming<ExecuteScanQueryPartialResponse>>, Status>>

Executes scan query with streaming result.

Trait Implementations§

source§

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

source§

fn clone(&self) -> TableServiceClient<T>

Returns a copy of the value. Read more
1.0.0 · source§

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

Performs copy-assignment from source. Read more
source§

impl<T> Debug for TableServiceClient<T>where T: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<T> RefUnwindSafe for TableServiceClient<T>where T: RefUnwindSafe,

§

impl<T> Send for TableServiceClient<T>where T: Send,

§

impl<T> Sync for TableServiceClient<T>where T: Sync,

§

impl<T> Unpin for TableServiceClient<T>where T: Unpin,

§

impl<T> UnwindSafe for TableServiceClient<T>where T: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

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

§

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 Twhere 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> IntoRequest<T> for T

source§

fn into_request(self) -> Request<T>

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

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

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 Twhere U: Into<T>,

§

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 Twhere U: TryFrom<T>,

§

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.
§

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

§

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