risingwave_pb::ddl_service::ddl_service_client

Struct DdlServiceClient

source
pub struct DdlServiceClient<T> {
    inner: Grpc<T>,
}

Fields§

§inner: Grpc<T>

Implementations§

source§

impl DdlServiceClient<Channel>

source

pub async fn connect<D>(dst: D) -> Result<Self, Error>

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

source§

impl<T> DdlServiceClient<T>
where T: GrpcService<BoxBody>, T::Error: Into<StdError>, T::ResponseBody: Body<Data = Bytes> + Send + 'static, <T::ResponseBody as Body>::Error: Into<StdError> + Send,

source

pub fn new(inner: T) -> Self

source

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

source

pub fn with_interceptor<F>( inner: T, interceptor: F, ) -> DdlServiceClient<InterceptedService<T, F>>
where F: Interceptor, T::ResponseBody: Default, T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>, <T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,

source

pub fn send_compressed(self, encoding: CompressionEncoding) -> Self

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) -> Self

Enable decompressing responses.

source

pub fn max_decoding_message_size(self, limit: usize) -> Self

Limits the maximum size of a decoded message.

Default: 4MB

source

pub fn max_encoding_message_size(self, limit: usize) -> Self

Limits the maximum size of an encoded message.

Default: usize::MAX

source

pub async fn create_database( &mut self, request: impl IntoRequest<CreateDatabaseRequest>, ) -> Result<Response<CreateDatabaseResponse>, Status>

source

pub async fn drop_database( &mut self, request: impl IntoRequest<DropDatabaseRequest>, ) -> Result<Response<DropDatabaseResponse>, Status>

source

pub async fn create_schema( &mut self, request: impl IntoRequest<CreateSchemaRequest>, ) -> Result<Response<CreateSchemaResponse>, Status>

source

pub async fn drop_schema( &mut self, request: impl IntoRequest<DropSchemaRequest>, ) -> Result<Response<DropSchemaResponse>, Status>

source

pub async fn create_source( &mut self, request: impl IntoRequest<CreateSourceRequest>, ) -> Result<Response<CreateSourceResponse>, Status>

source

pub async fn drop_source( &mut self, request: impl IntoRequest<DropSourceRequest>, ) -> Result<Response<DropSourceResponse>, Status>

source

pub async fn create_sink( &mut self, request: impl IntoRequest<CreateSinkRequest>, ) -> Result<Response<CreateSinkResponse>, Status>

source

pub async fn create_subscription( &mut self, request: impl IntoRequest<CreateSubscriptionRequest>, ) -> Result<Response<CreateSubscriptionResponse>, Status>

source

pub async fn drop_sink( &mut self, request: impl IntoRequest<DropSinkRequest>, ) -> Result<Response<DropSinkResponse>, Status>

source

pub async fn drop_subscription( &mut self, request: impl IntoRequest<DropSubscriptionRequest>, ) -> Result<Response<DropSubscriptionResponse>, Status>

source

pub async fn create_materialized_view( &mut self, request: impl IntoRequest<CreateMaterializedViewRequest>, ) -> Result<Response<CreateMaterializedViewResponse>, Status>

source

pub async fn drop_materialized_view( &mut self, request: impl IntoRequest<DropMaterializedViewRequest>, ) -> Result<Response<DropMaterializedViewResponse>, Status>

source

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

source

pub async fn create_secret( &mut self, request: impl IntoRequest<CreateSecretRequest>, ) -> Result<Response<CreateSecretResponse>, Status>

source

pub async fn drop_secret( &mut self, request: impl IntoRequest<DropSecretRequest>, ) -> Result<Response<DropSecretResponse>, Status>

source

pub async fn alter_name( &mut self, request: impl IntoRequest<AlterNameRequest>, ) -> Result<Response<AlterNameResponse>, Status>

source

pub async fn alter_source( &mut self, request: impl IntoRequest<AlterSourceRequest>, ) -> Result<Response<AlterSourceResponse>, Status>

source

pub async fn alter_owner( &mut self, request: impl IntoRequest<AlterOwnerRequest>, ) -> Result<Response<AlterOwnerResponse>, Status>

source

pub async fn alter_set_schema( &mut self, request: impl IntoRequest<AlterSetSchemaRequest>, ) -> Result<Response<AlterSetSchemaResponse>, Status>

source

pub async fn alter_parallelism( &mut self, request: impl IntoRequest<AlterParallelismRequest>, ) -> Result<Response<AlterParallelismResponse>, Status>

source

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

source

pub async fn risectl_list_state_tables( &mut self, request: impl IntoRequest<RisectlListStateTablesRequest>, ) -> Result<Response<RisectlListStateTablesResponse>, Status>

source

pub async fn create_view( &mut self, request: impl IntoRequest<CreateViewRequest>, ) -> Result<Response<CreateViewResponse>, Status>

source

pub async fn drop_view( &mut self, request: impl IntoRequest<DropViewRequest>, ) -> Result<Response<DropViewResponse>, Status>

source

pub async fn create_index( &mut self, request: impl IntoRequest<CreateIndexRequest>, ) -> Result<Response<CreateIndexResponse>, Status>

source

pub async fn drop_index( &mut self, request: impl IntoRequest<DropIndexRequest>, ) -> Result<Response<DropIndexResponse>, Status>

source

pub async fn create_function( &mut self, request: impl IntoRequest<CreateFunctionRequest>, ) -> Result<Response<CreateFunctionResponse>, Status>

source

pub async fn drop_function( &mut self, request: impl IntoRequest<DropFunctionRequest>, ) -> Result<Response<DropFunctionResponse>, Status>

source

pub async fn replace_table_plan( &mut self, request: impl IntoRequest<ReplaceTablePlanRequest>, ) -> Result<Response<ReplaceTablePlanResponse>, Status>

source

pub async fn get_table( &mut self, request: impl IntoRequest<GetTableRequest>, ) -> Result<Response<GetTableResponse>, Status>

source

pub async fn get_ddl_progress( &mut self, request: impl IntoRequest<GetDdlProgressRequest>, ) -> Result<Response<GetDdlProgressResponse>, Status>

source

pub async fn create_connection( &mut self, request: impl IntoRequest<CreateConnectionRequest>, ) -> Result<Response<CreateConnectionResponse>, Status>

source

pub async fn list_connections( &mut self, request: impl IntoRequest<ListConnectionsRequest>, ) -> Result<Response<ListConnectionsResponse>, Status>

source

pub async fn drop_connection( &mut self, request: impl IntoRequest<DropConnectionRequest>, ) -> Result<Response<DropConnectionResponse>, Status>

source

pub async fn get_tables( &mut self, request: impl IntoRequest<GetTablesRequest>, ) -> Result<Response<GetTablesResponse>, Status>

source

pub async fn wait( &mut self, request: impl IntoRequest<WaitRequest>, ) -> Result<Response<WaitResponse>, Status>

source

pub async fn comment_on( &mut self, request: impl IntoRequest<CommentOnRequest>, ) -> Result<Response<CommentOnResponse>, Status>

source

pub async fn auto_schema_change( &mut self, request: impl IntoRequest<AutoSchemaChangeRequest>, ) -> Result<Response<AutoSchemaChangeResponse>, Status>

source

pub async fn alter_swap_rename( &mut self, request: impl IntoRequest<AlterSwapRenameRequest>, ) -> Result<Response<AlterSwapRenameResponse>, Status>

Trait Implementations§

source§

impl<T: Clone> Clone for DdlServiceClient<T>

source§

fn clone(&self) -> DdlServiceClient<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> Debug for DdlServiceClient<T>

source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<T> !Freeze for DdlServiceClient<T>

§

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

§

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

§

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

§

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

§

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

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<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

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

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

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

§

fn from_ref(input: &T) -> T

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

impl<T> Instrument for T

§

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

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

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

source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
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.
§

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

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

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
§

fn with_current_subscriber(self) -> WithDispatch<Self>

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