Enum coord::ExecuteResponse[][src]

pub enum ExecuteResponse {
Show 40 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: CopyParams, }, CreatedDatabase { existed: bool, }, CreatedSchema { existed: bool, }, CreatedRole, CreatedIndex { existed: bool, }, CreatedSink { existed: bool, }, CreatedSource { existed: bool, }, CreatedSources, CreatedTable { existed: bool, }, CreatedView { existed: bool, }, CreatedType, Deallocate { all: bool, }, DeclaredCursor, Deleted(usize), DiscardedTemp, DiscardedAll, DroppedDatabase, DroppedRole, DroppedSchema, DroppedSource, DroppedTable, DroppedView, DroppedIndex, DroppedSink, DroppedType, EmptyQuery, Fetch { name: String, count: Option<FetchDirection>, timeout: ExecuteTimeout, }, Inserted(usize), Prepare, SendingRows(Pin<Box<dyn Future<Output = PeekResponse> + Send>>), SetVariable { name: String, }, StartedTransaction { duplicated: bool, }, Tailing { rx: RowBatchStream, }, Updated(usize),
}
Expand description

The response to SessionClient::execute.

Variants

TransactionExited

Fields

was_implicit: bool
tag: &'static str

The active transaction was exited.

AlteredObject(ObjectType)

Tuple Fields

AlteredIndexLogicalCompaction

Canceled

ClosedCursor

The requested cursor was closed.

CopyTo

Fields

format: CopyFormat

CopyFrom

Fields

columns: Vec<usize>
params: CopyParams

CreatedDatabase

Fields

existed: bool

The requested database was created.

CreatedSchema

Fields

existed: bool

The requested schema was created.

CreatedRole

The requested role was created.

CreatedIndex

Fields

existed: bool

The requested index 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)

Tuple Fields

0: 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.

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.

DroppedIndex

The requested index was dropped.

DroppedSink

The requested sink was dropped.

DroppedType

The requested type 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)

Tuple Fields

0: usize

The specified number of rows were inserted into the requested table.

Prepare

The specified prepared statement was created.

SendingRows(Pin<Box<dyn Future<Output = PeekResponse> + Send>>)

Tuple Fields

0: Pin<Box<dyn Future<Output = PeekResponse> + Send>>

Rows will be delivered via the specified future.

SetVariable

Fields

name: String

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)

Tuple Fields

0: usize

The specified number of rows were updated in the requested table.

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

Performs the conversion.

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

Performs the conversion.

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