pub struct TableQuery {
pub table: TableRef,
pub order_by: OrderBy,
pub limit: Limit,
pub offset: Offset,
}Expand description
The MySQL TABLE statement (MySQL 8.0.19+) — TABLE t is
SELECT * FROM t.
From https://dev.mysql.com/doc/refman/8.4/en/table.html:
TABLE table_name [ORDER BY column_name] [LIMIT number [OFFSET number]]The struct is that line and nothing more: a bare table name — no alias, no
index hints, no PARTITION — and the three tail clauses. WHERE does not
exist here and does not compile.
Fields§
§table: TableRefThe table. Grammar takes a bare name only.
order_by: OrderByORDER BY column_name.
limit: LimitLIMIT number.
offset: OffsetOFFSET number — part of the LIMIT production, as in a SELECT.
Implementations§
Source§impl TableQuery
impl TableQuery
Sourcepub fn new() -> TableQuery
pub fn new() -> TableQuery
A TABLE with no table yet — which does not build until it has one.
Sourcepub fn apply(&mut self, mods: impl Mod<TableQuery>)
pub fn apply(&mut self, mods: impl Mod<TableQuery>)
Apply more mods to an existing query.
Trait Implementations§
Source§impl Clone for TableQuery
impl Clone for TableQuery
Source§fn clone(&self) -> TableQuery
fn clone(&self) -> TableQuery
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 TableQuery
impl Debug for TableQuery
Source§impl Default for TableQuery
impl Default for TableQuery
Source§fn default() -> TableQuery
fn default() -> TableQuery
Returns the “default value” for a type. Read more
Source§impl Expression for TableQuery
impl Expression for TableQuery
Source§impl HasLimit for TableQuery
impl HasLimit for TableQuery
Source§impl HasOffset for TableQuery
impl HasOffset for TableQuery
Source§fn offset_mut(&mut self) -> &mut Offset
fn offset_mut(&mut self) -> &mut Offset
The
OFFSET clause to modify.Source§impl HasOrderBy for TableQuery
impl HasOrderBy for TableQuery
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 HasTableRef for TableQuery
impl HasTableRef for TableQuery
Source§fn table_ref_mut(&mut self) -> &mut TableRef
fn table_ref_mut(&mut self) -> &mut TableRef
The table reference to modify.
Source§impl IntoExprList for TableQuery
impl IntoExprList for TableQuery
Source§fn into_expr_list(self) -> Vec<Expr>
fn into_expr_list(self) -> Vec<Expr>
Perform the conversion.
Source§impl Query for TableQuery
impl Query for TableQuery
Source§impl<H, L, M> QueryExtensions<H, L, M> for TableQuery
impl<H, L, M> QueryExtensions<H, L, M> for TableQuery
Auto Trait Implementations§
impl !RefUnwindSafe for TableQuery
impl !UnwindSafe for TableQuery
impl Freeze for TableQuery
impl Send for TableQuery
impl Sync for TableQuery
impl Unpin for TableQuery
impl UnsafeUnpin for TableQuery
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