Skip to main content

HasTargetTable

Trait HasTargetTable 

Source
pub trait HasTargetTable {
    // Required method
    fn target_table_mut(&mut self) -> &mut TableRef;
}
Expand description

A statement whose table list is the thing being modified: the table_references an UPDATE writes to.

SELECT, INSERT and REPLACE have one table each and use HasTableRef for it, which is why update::table(..) cannot be applied to them.

Required Methods§

Source

fn target_table_mut(&mut self) -> &mut TableRef

The target table to modify.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§