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
query_pieces: Vec<PgQueryPiece>
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).
statements: u32
The number of separate top-level SQL statements withing query_pieces
.
E.g. the number of results PostgreSQL will return.
scheduling: PgSchedulingMode
Affects the placement of the operation.
Trait Implementations
impl Debug for PgOperation
[src]
impl IntoQueryPieces for PgOperation
[src]
fn into_query_pieces(self) -> PgOperation
Returns the number of SQL statements (the library must know how many results to expect) and the list of pieces to escape and join.