pub struct Values {
pub rows: Vec<Expr>,
}Expand description
A VALUES clause: a set of row expressions.
Used as the source for INSERT statements and as a query body type that
produces literal rows without reading from a table.
§Examples
ⓘ
use toasty_core::stmt::{Values, Expr};
let values = Values::new(vec![Expr::null()]);
assert_eq!(values.rows.len(), 1);
assert!(!values.is_empty());Fields§
§rows: Vec<Expr>The row expressions. Each element is one row to insert or return.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Values
Auto Trait Implementations§
impl Freeze for Values
impl RefUnwindSafe for Values
impl Send for Values
impl Sync for Values
impl Unpin for Values
impl UnwindSafe for Values
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