Struct pg_async::PgOperation [] [src]

pub struct PgOperation {
    pub query_pieces: Vec<PgQueryPiece>,
    pub statements: u32,
    pub scheduling: PgSchedulingMode,
}

An atomic operation that is to be asynchronously executed.

Fields

Parts of SQL text, some of which are to be escaped and some are not.

Might contain several SQL statements (the number of statements MUST match the number in the statements field).

The number of separate top-level SQL statements withing query_pieces. E.g. the number of results PostgreSQL will return.

Affects the placement of the operation.

Trait Implementations

impl Debug for PgOperation
[src]

Formats the value using the given formatter.

impl IntoQueryPieces for PgOperation
[src]

Returns the number of SQL statements (the library must know how many results to expect) and the list of pieces to escape and join.