pub enum Command {
    Startup {
        session: Session,
        create_user_if_not_exists: bool,
        cancel_tx: Arc<Sender<Canceled>>,
        tx: Sender<Response<StartupResponse>>,
    },
    Declare {
        name: String,
        stmt: Statement<Raw>,
        param_types: Vec<Option<ScalarType>>,
        session: Session,
        tx: Sender<Response<()>>,
    },
    Describe {
        name: String,
        stmt: Option<Statement<Raw>>,
        param_types: Vec<Option<ScalarType>>,
        session: Session,
        tx: Sender<Response<()>>,
    },
    VerifyPreparedStatement {
        name: String,
        session: Session,
        tx: Sender<Response<()>>,
    },
    Execute {
        portal_name: String,
        session: Session,
        tx: Sender<Response<ExecuteResponse>>,
        span: Span,
    },
    StartTransaction {
        implicit: Option<usize>,
        session: Session,
        tx: Sender<Response<()>>,
    },
    Commit {
        action: EndTransactionAction,
        session: Session,
        tx: Sender<Response<ExecuteResponse>>,
    },
    CancelRequest {
        conn_id: u32,
        secret_key: u32,
    },
    DumpCatalog {
        session: Session,
        tx: Sender<Response<String>>,
    },
    CopyRows {
        id: GlobalId,
        columns: Vec<usize>,
        rows: Vec<Row>,
        session: Session,
        tx: Sender<Response<ExecuteResponse>>,
    },
    Terminate {
        session: Session,
    },
}

Variants

Startup

Fields

session: Session
create_user_if_not_exists: bool
cancel_tx: Arc<Sender<Canceled>>

Declare

Fields

name: String
stmt: Statement<Raw>
param_types: Vec<Option<ScalarType>>
session: Session

Describe

Fields

name: String
param_types: Vec<Option<ScalarType>>
session: Session

VerifyPreparedStatement

Fields

name: String
session: Session

Execute

Fields

portal_name: String
session: Session
span: Span

StartTransaction

Fields

implicit: Option<usize>
session: Session

Commit

CancelRequest

Fields

conn_id: u32
secret_key: u32

DumpCatalog

Fields

session: Session

CopyRows

Fields

columns: Vec<usize>
rows: Vec<Row>
session: Session

Terminate

Fields

session: Session

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