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

Fields

was_implicit: bool
tag: &'static str

The active transaction was exited.

AlteredObject(ObjectType)

AlteredIndexLogicalCompaction

Canceled

ClosedCursor

The requested cursor was closed.

CopyTo

Fields

format: CopyFormat

CopyFrom

Fields

columns: Vec<usize>
params: CopyFormatParams<'static>

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

Fields

future: RowsFuture
span: Span

Rows will be delivered via the specified future.

SetVariable

Fields

name: String
tag: &'static str

The specified variable was set to a new value.

StartedTransaction

Fields

duplicated: bool

A new transaction was started.

Tailing

Fields

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

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Attaches the provided Context to this type, returning a WithContext wrapper. Read more

Attaches the current Context to this type, returning a WithContext wrapper. Read more

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

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Wrap the input message T in a tonic::Request

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

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