pub struct ValuesQuery {
pub values: Values,
pub order_by: OrderBy,
pub limit: Limit,
}Expand description
The MySQL VALUES statement (MySQL 8.0.19+).
From https://dev.mysql.com/doc/refman/8.4/en/values.html:
VALUES row_constructor_list [ORDER BY column_designator] [LIMIT number]
row_constructor_list: ROW(value_list) [, ROW(value_list)] ...Unlike an INSERT’s VALUES list, every row here is spelled with the ROW
keyword — that is the grammar, not a flourish — and the result’s columns are
named column_0, column_1, …, which is what an ORDER BY refers to.
The rows are the shared Values clause, whose VALUES (…), (…) rendering
is the INSERT spelling; this statement writes the ROW form itself. The
clause’s query alternative belongs to INSERT and is a recorded build error
here.
Fields§
§values: ValuesThe rows.
order_by: OrderByORDER BY column_designator.
limit: LimitLIMIT number.
Implementations§
Source§impl ValuesQuery
impl ValuesQuery
Sourcepub fn new() -> ValuesQuery
pub fn new() -> ValuesQuery
A VALUES with no rows yet — which does not build until it has one.
Sourcepub fn apply(&mut self, mods: impl Mod<ValuesQuery>)
pub fn apply(&mut self, mods: impl Mod<ValuesQuery>)
Apply more mods to an existing query.
Trait Implementations§
Source§impl Clone for ValuesQuery
impl Clone for ValuesQuery
Source§fn clone(&self) -> ValuesQuery
fn clone(&self) -> ValuesQuery
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ValuesQuery
impl Debug for ValuesQuery
Source§impl Default for ValuesQuery
impl Default for ValuesQuery
Source§fn default() -> ValuesQuery
fn default() -> ValuesQuery
Returns the “default value” for a type. Read more
Source§impl Expression for ValuesQuery
impl Expression for ValuesQuery
Source§impl HasLimit for ValuesQuery
impl HasLimit for ValuesQuery
Source§impl HasOrderBy for ValuesQuery
impl HasOrderBy for ValuesQuery
Source§fn order_by_mut(&mut self) -> &mut OrderBy
fn order_by_mut(&mut self) -> &mut OrderBy
The
ORDER BY clause to modify.Source§impl HasValues for ValuesQuery
impl HasValues for ValuesQuery
Source§fn values_mut(&mut self) -> &mut Values
fn values_mut(&mut self) -> &mut Values
The row source to modify.
Source§impl IntoExprList for ValuesQuery
impl IntoExprList for ValuesQuery
Source§fn into_expr_list(self) -> Vec<Expr>
fn into_expr_list(self) -> Vec<Expr>
Perform the conversion.
Source§impl Query for ValuesQuery
impl Query for ValuesQuery
Source§impl<H, L, M> QueryExtensions<H, L, M> for ValuesQuery
impl<H, L, M> QueryExtensions<H, L, M> for ValuesQuery
Auto Trait Implementations§
impl !RefUnwindSafe for ValuesQuery
impl !UnwindSafe for ValuesQuery
impl Freeze for ValuesQuery
impl Send for ValuesQuery
impl Sync for ValuesQuery
impl Unpin for ValuesQuery
impl UnsafeUnpin for ValuesQuery
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