Enum ExprFunc
pub enum ExprFunc {
Count(FuncCount),
LastInsertId(FuncLastInsertId),
}Expand description
A function call expression.
Represents aggregate or scalar functions applied to expressions.
§Examples
count(*) // counts all rows
count(field) // counts non-null values
last_insert_id() // MySQL: get the last auto-increment IDVariants§
Count(FuncCount)
The count aggregate function.
LastInsertId(FuncLastInsertId)
The LAST_INSERT_ID() function (MySQL-specific).
Returns the first auto-increment ID that was generated for an INSERT statement. When multiple rows are inserted, this returns the ID of the first row.
Trait Implementations§
§impl From<FuncLastInsertId> for ExprFunc
impl From<FuncLastInsertId> for ExprFunc
§fn from(value: FuncLastInsertId) -> ExprFunc
fn from(value: FuncLastInsertId) -> ExprFunc
Converts to this type from the input type.
impl StructuralPartialEq for ExprFunc
Auto Trait Implementations§
impl Freeze for ExprFunc
impl RefUnwindSafe for ExprFunc
impl Send for ExprFunc
impl Sync for ExprFunc
impl Unpin for ExprFunc
impl UnwindSafe for ExprFunc
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