Struct ydb_unofficial::generated::ydb::table::v1::table_service_client::TableServiceClient      
source · pub struct TableServiceClient<T> { /* private fields */ }Implementations§
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,
 
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,
pub fn new(inner: T) -> TableServiceClient<T>
pub fn with_origin(inner: T, origin: Uri) -> TableServiceClient<T>
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,
sourcepub fn send_compressed(
    self,
    encoding: CompressionEncoding
) -> TableServiceClient<T>
 
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.
sourcepub fn accept_compressed(
    self,
    encoding: CompressionEncoding
) -> TableServiceClient<T>
 
pub fn accept_compressed( self, encoding: CompressionEncoding ) -> TableServiceClient<T>
Enable decompressing responses.
sourcepub fn max_decoding_message_size(self, limit: usize) -> TableServiceClient<T>
 
pub fn max_decoding_message_size(self, limit: usize) -> TableServiceClient<T>
Limits the maximum size of a decoded message.
Default: 4MB
sourcepub fn max_encoding_message_size(self, limit: usize) -> TableServiceClient<T>
 
pub fn max_encoding_message_size(self, limit: usize) -> TableServiceClient<T>
Limits the maximum size of an encoded message.
Default: usize::MAX
sourcepub async fn create_session(
    &mut self,
    request: impl IntoRequest<CreateSessionRequest>
) -> impl Future<Output = Result<Response<CreateSessionResponse>, Status>>
 
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.
sourcepub async fn delete_session(
    &mut self,
    request: impl IntoRequest<DeleteSessionRequest>
) -> impl Future<Output = Result<Response<DeleteSessionResponse>, Status>>
 
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.
sourcepub async fn keep_alive(
    &mut self,
    request: impl IntoRequest<KeepAliveRequest>
) -> impl Future<Output = Result<Response<KeepAliveResponse>, Status>>
 
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.
sourcepub async fn create_table(
    &mut self,
    request: impl IntoRequest<CreateTableRequest>
) -> impl Future<Output = Result<Response<CreateTableResponse>, Status>>
 
pub async fn create_table( &mut self, request: impl IntoRequest<CreateTableRequest> ) -> impl Future<Output = Result<Response<CreateTableResponse>, Status>>
Creates new table.
sourcepub async fn drop_table(
    &mut self,
    request: impl IntoRequest<DropTableRequest>
) -> impl Future<Output = Result<Response<DropTableResponse>, Status>>
 
pub async fn drop_table( &mut self, request: impl IntoRequest<DropTableRequest> ) -> impl Future<Output = Result<Response<DropTableResponse>, Status>>
Drop table.
sourcepub async fn alter_table(
    &mut self,
    request: impl IntoRequest<AlterTableRequest>
) -> impl Future<Output = Result<Response<AlterTableResponse>, Status>>
 
pub async fn alter_table( &mut self, request: impl IntoRequest<AlterTableRequest> ) -> impl Future<Output = Result<Response<AlterTableResponse>, Status>>
Modifies schema of given table.
sourcepub async fn copy_table(
    &mut self,
    request: impl IntoRequest<CopyTableRequest>
) -> impl Future<Output = Result<Response<CopyTableResponse>, Status>>
 
pub async fn copy_table( &mut self, request: impl IntoRequest<CopyTableRequest> ) -> impl Future<Output = Result<Response<CopyTableResponse>, Status>>
Creates copy of given table.
sourcepub async fn copy_tables(
    &mut self,
    request: impl IntoRequest<CopyTablesRequest>
) -> impl Future<Output = Result<Response<CopyTablesResponse>, Status>>
 
pub async fn copy_tables( &mut self, request: impl IntoRequest<CopyTablesRequest> ) -> impl Future<Output = Result<Response<CopyTablesResponse>, Status>>
Creates consistent copy of given tables.
sourcepub async fn rename_tables(
    &mut self,
    request: impl IntoRequest<RenameTablesRequest>
) -> impl Future<Output = Result<Response<RenameTablesResponse>, Status>>
 
pub async fn rename_tables( &mut self, request: impl IntoRequest<RenameTablesRequest> ) -> impl Future<Output = Result<Response<RenameTablesResponse>, Status>>
Creates consistent move of given tables.
sourcepub async fn describe_table(
    &mut self,
    request: impl IntoRequest<DescribeTableRequest>
) -> impl Future<Output = Result<Response<DescribeTableResponse>, Status>>
 
pub async fn describe_table( &mut self, request: impl IntoRequest<DescribeTableRequest> ) -> impl Future<Output = Result<Response<DescribeTableResponse>, Status>>
Returns information about given table (metadata).
sourcepub async fn explain_data_query(
    &mut self,
    request: impl IntoRequest<ExplainDataQueryRequest>
) -> impl Future<Output = Result<Response<ExplainDataQueryResponse>, Status>>
 
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.
sourcepub async fn prepare_data_query(
    &mut self,
    request: impl IntoRequest<PrepareDataQueryRequest>
) -> impl Future<Output = Result<Response<PrepareDataQueryResponse>, Status>>
 
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.
sourcepub async fn execute_data_query(
    &mut self,
    request: impl IntoRequest<ExecuteDataQueryRequest>
) -> impl Future<Output = Result<Response<ExecuteDataQueryResponse>, Status>>
 
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.
sourcepub async fn execute_scheme_query(
    &mut self,
    request: impl IntoRequest<ExecuteSchemeQueryRequest>
) -> impl Future<Output = Result<Response<ExecuteSchemeQueryResponse>, Status>>
 
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.
sourcepub async fn begin_transaction(
    &mut self,
    request: impl IntoRequest<BeginTransactionRequest>
) -> impl Future<Output = Result<Response<BeginTransactionResponse>, Status>>
 
pub async fn begin_transaction( &mut self, request: impl IntoRequest<BeginTransactionRequest> ) -> impl Future<Output = Result<Response<BeginTransactionResponse>, Status>>
Begins new transaction.
sourcepub async fn commit_transaction(
    &mut self,
    request: impl IntoRequest<CommitTransactionRequest>
) -> impl Future<Output = Result<Response<CommitTransactionResponse>, Status>>
 
pub async fn commit_transaction( &mut self, request: impl IntoRequest<CommitTransactionRequest> ) -> impl Future<Output = Result<Response<CommitTransactionResponse>, Status>>
Commits specified active transaction.
sourcepub async fn rollback_transaction(
    &mut self,
    request: impl IntoRequest<RollbackTransactionRequest>
) -> impl Future<Output = Result<Response<RollbackTransactionResponse>, Status>>
 
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.
sourcepub async fn describe_table_options(
    &mut self,
    request: impl IntoRequest<DescribeTableOptionsRequest>
) -> impl Future<Output = Result<Response<DescribeTableOptionsResponse>, Status>>
 
pub async fn describe_table_options( &mut self, request: impl IntoRequest<DescribeTableOptionsRequest> ) -> impl Future<Output = Result<Response<DescribeTableOptionsResponse>, Status>>
Describe supported table options.
sourcepub async fn stream_read_table(
    &mut self,
    request: impl IntoRequest<ReadTableRequest>
) -> impl Future<Output = Result<Response<Streaming<ReadTableResponse>>, Status>>
 
pub async fn stream_read_table( &mut self, request: impl IntoRequest<ReadTableRequest> ) -> impl Future<Output = Result<Response<Streaming<ReadTableResponse>>, Status>>
Streaming read table
sourcepub async fn bulk_upsert(
    &mut self,
    request: impl IntoRequest<BulkUpsertRequest>
) -> impl Future<Output = Result<Response<BulkUpsertResponse>, Status>>
 
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.
sourcepub async fn stream_execute_scan_query(
    &mut self,
    request: impl IntoRequest<ExecuteScanQueryRequest>
) -> impl Future<Output = Result<Response<Streaming<ExecuteScanQueryPartialResponse>>, Status>>
 
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,
 
impl<T> Clone for TableServiceClient<T>where T: Clone,
source§fn clone(&self) -> TableServiceClient<T>
 
fn clone(&self) -> TableServiceClient<T>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
source. Read moreAuto 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> 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
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> IntoRequest<T> for T
 
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
 
fn into_request(self) -> Request<T>
T in a tonic::Request