Skip to main content

ExecutableState

Trait ExecutableState 

Source
pub trait ExecutableState {
    type Rows<R: RowCount>: RowCount;
}
Expand description

Builder states whose query is complete and can be executed.

Dialect crates implement this for their builder state markers to allow execution, set operations, or prepared statements in those states.

Required Associated Types§

Source

type Rows<R: RowCount>: RowCount

The row count of a query in this state whose selection alone has RowCount R: R when the clauses so far keep every row of the selection (FROM, JOIN, WHERE, ORDER BY), else ZeroOrMore (LIMIT, OFFSET, a set operation, or a statement other than SELECT).

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl ExecutableState for BuilderInit

Source§

impl ExecutableState for DeleteLimitSet

Source§

impl ExecutableState for DeleteOrderSet

Source§

impl ExecutableState for DeleteReturningSet

Source§

impl ExecutableState for DeleteWhereSet

Source§

impl ExecutableState for InsertDoUpdateSet

Source§

impl ExecutableState for InsertOnConflictSet

Source§

impl ExecutableState for InsertOnDuplicateKeyUpdateSet

Source§

impl ExecutableState for InsertReturningSet

Source§

impl ExecutableState for InsertValuesSet

Source§

impl ExecutableState for SelectFromSet

Source§

type Rows<R: RowCount> = R

Source§

impl ExecutableState for SelectGroupSet

Source§

impl ExecutableState for SelectHavingSet

Source§

impl ExecutableState for SelectJoinSet

Source§

type Rows<R: RowCount> = R

Source§

impl ExecutableState for SelectLimitSet

Source§

impl ExecutableState for SelectOffsetSet

Source§

impl ExecutableState for SelectOrderSet

Source§

impl ExecutableState for SelectSetOpSet

Source§

impl ExecutableState for SelectWhereSet

Source§

type Rows<R: RowCount> = R

Source§

impl ExecutableState for UpdateLimitSet

Source§

impl ExecutableState for UpdateOrderSet

Source§

impl ExecutableState for UpdateReturningSet

Source§

impl ExecutableState for UpdateWhereSet

Source§

impl<Strength, Modifier> ExecutableState for SelectForSet<Strength, Modifier>