pub struct InsertQuery {
pub table_name: String,
pub columns: Vec<String>,
pub rows: Vec<Vec<Option<Value>>>,
}Expand description
Parsed INSERT statement: target table, declared column list, and one or more rows of typed values.
rows is Vec<Vec<Option<Value>>> rather than Vec<Vec<String>> so
SQL NULL can be represented faithfully as None instead of leaking
out as the string sentinel "Null" (which used to break INTEGER /
REAL / BOOL inserts and silently round-trip as the literal text
"Null" in TEXT columns).
Fields§
§table_name: String§columns: Vec<String>§rows: Vec<Vec<Option<Value>>>Implementations§
Source§impl InsertQuery
impl InsertQuery
pub fn new(statement: &Statement) -> Result<InsertQuery>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InsertQuery
impl RefUnwindSafe for InsertQuery
impl Send for InsertQuery
impl Sync for InsertQuery
impl Unpin for InsertQuery
impl UnsafeUnpin for InsertQuery
impl UnwindSafe for InsertQuery
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more