Enum mz_coord::ExecuteResponse
source · [−]pub enum ExecuteResponse {
Show 50 variants
TransactionExited {
was_implicit: bool,
tag: &'static str,
},
AlteredObject(ObjectType),
AlteredIndexLogicalCompaction,
Canceled,
ClosedCursor,
CopyTo {
format: CopyFormat,
resp: Box<ExecuteResponse>,
},
CopyFrom {
id: GlobalId,
columns: Vec<usize>,
params: CopyFormatParams<'static>,
},
CreatedConnection {
existed: bool,
},
CreatedDatabase {
existed: bool,
},
CreatedSchema {
existed: bool,
},
CreatedRole,
CreatedComputeInstance {
existed: bool,
},
CreatedComputeInstanceReplica {
existed: bool,
},
CreatedIndex {
existed: bool,
},
CreatedSecret {
existed: bool,
},
CreatedSink {
existed: bool,
},
CreatedSource {
existed: bool,
},
CreatedSources,
CreatedTable {
existed: bool,
},
CreatedView {
existed: bool,
},
CreatedType,
Deallocate {
all: bool,
},
DeclaredCursor,
Deleted(usize),
DiscardedTemp,
DiscardedAll,
DroppedConnection,
DroppedComputeInstance,
DroppedComputeInstanceReplicas,
DroppedDatabase,
DroppedRole,
DroppedSchema,
DroppedSource,
DroppedTable,
DroppedView,
DroppedRecordedView,
DroppedIndex,
DroppedSink,
DroppedType,
DroppedSecret,
EmptyQuery,
Fetch {
name: String,
count: Option<FetchDirection>,
timeout: ExecuteTimeout,
},
Inserted(usize),
Prepare,
SendingRows {
future: RowsFuture,
span: Span,
},
SetVariable {
name: String,
tag: &'static str,
},
StartedTransaction {
duplicated: bool,
},
Tailing {
rx: RowBatchStream,
},
Updated(usize),
Raise {
severity: NoticeSeverity,
},
}
Expand description
The response to SessionClient::execute
.
Variants
TransactionExited
The active transaction was exited.
AlteredObject(ObjectType)
AlteredIndexLogicalCompaction
Canceled
ClosedCursor
The requested cursor was closed.
CopyTo
CopyFrom
CreatedConnection
Fields
existed: bool
The requested connection was created.
CreatedDatabase
Fields
existed: bool
The requested database was created.
CreatedSchema
Fields
existed: bool
The requested schema was created.
CreatedRole
The requested role was created.
CreatedComputeInstance
Fields
existed: bool
The requested compute instance was created.
CreatedComputeInstanceReplica
Fields
existed: bool
The requested compute instance replica was created.
CreatedIndex
Fields
existed: bool
The requested index was created.
CreatedSecret
Fields
existed: bool
The requested secret was created.
CreatedSink
Fields
existed: bool
The requested sink was created.
CreatedSource
Fields
existed: bool
The requested source was created.
CreatedSources
The requested sources were created.
CreatedTable
Fields
existed: bool
The requested table was created.
CreatedView
Fields
existed: bool
The requested view was created.
CreatedType
The requested type was created.
Deallocate
Fields
all: bool
The requested prepared statement was removed.
DeclaredCursor
The requested cursor was declared.
Deleted(usize)
The specified number of rows were deleted from the requested table.
DiscardedTemp
The temporary objects associated with the session have been discarded.
DiscardedAll
All state associated with the session has been discarded.
DroppedConnection
The requested connection was dropped
DroppedComputeInstance
The requested compute instance was dropped.
DroppedComputeInstanceReplicas
The requested compute instance replicas were dropped.
DroppedDatabase
The requested database was dropped.
DroppedRole
The requested role was dropped.
DroppedSchema
The requested schema was dropped.
DroppedSource
The requested source was dropped.
DroppedTable
The requested table was dropped.
DroppedView
The requested view was dropped.
DroppedRecordedView
The requested recorded view was dropped.
DroppedIndex
The requested index was dropped.
DroppedSink
The requested sink was dropped.
DroppedType
The requested type was dropped.
DroppedSecret
The requested secret was dropped.
EmptyQuery
The provided query was empty.
Fetch
Fields
name: String
The name of the cursor from which to fetch results.
count: Option<FetchDirection>
The number of results to fetch.
timeout: ExecuteTimeout
How long to wait for results to arrive.
Fetch results from a cursor.
Inserted(usize)
The specified number of rows were inserted into the requested table.
Prepare
The specified prepared statement was created.
SendingRows
Rows will be delivered via the specified future.
SetVariable
The specified variable was set to a new value.
StartedTransaction
Fields
duplicated: bool
A new transaction was started.
Tailing
Fields
rx: RowBatchStream
Updates to the requested source or view will be streamed to the contained receiver.
Updated(usize)
The specified number of rows were updated in the requested table.
Raise
Fields
severity: NoticeSeverity
Raise a warning.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for ExecuteResponse
impl Send for ExecuteResponse
impl !Sync for ExecuteResponse
impl Unpin for ExecuteResponse
impl !UnwindSafe for ExecuteResponse
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> FutureExt for T
impl<T> FutureExt for T
sourcefn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
sourcefn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message T
in a tonic::Request
sourceimpl<P, R> ProtoType<R> for P where
R: RustType<P>,
impl<P, R> ProtoType<R> for P where
R: RustType<P>,
sourcefn into_rust(self) -> Result<R, TryFromProtoError>
fn into_rust(self) -> Result<R, TryFromProtoError>
See RustType::from_proto
.
sourcefn from_rust(rust: &R) -> P
fn from_rust(rust: &R) -> P
See RustType::into_proto
.
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more