pub struct Limit {
pub count: Option<Expr>,
}Expand description
LIMIT n
The count is an expression, not a number: SQLite accepts an arbitrary
expression there, and every dialect accepts a bound argument. limit(10) gives
the literal LIMIT 10 because a number converts to
Expr::Raw; limit(arg(10)) binds it instead.
Narrowing that back down to a literal is a dialect mod’s job.
Fields§
§count: Option<Expr>How many rows.
Implementations§
Trait Implementations§
Source§impl Expression for Limit
impl Expression for Limit
Auto Trait Implementations§
impl !RefUnwindSafe for Limit
impl !UnwindSafe for Limit
impl Freeze for Limit
impl Send for Limit
impl Sync for Limit
impl Unpin for Limit
impl UnsafeUnpin for Limit
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