pub struct ExprLike {
pub expr: Box<Expr>,
pub pattern: Box<Expr>,
pub escape: Option<char>,
}Expand description
A SQL LIKE pattern-match expression: expr LIKE pattern.
Returns true if expr matches pattern. The user is responsible for
including any % or _ wildcard characters in pattern.
§Examples
name LIKE 'Al%' // true if name starts with "Al"
name LIKE '%son' // true if name ends with "son"Fields§
§expr: Box<Expr>The attribute to test.
pattern: Box<Expr>The LIKE pattern (including any % or _ wildcards).
escape: Option<char>Optional escape character. When Some(c), occurrences of c in the
pattern make the following %, _, or c match literally, and the
serializer emits an ESCAPE 'c' clause.
Trait Implementations§
impl StructuralPartialEq for ExprLike
Auto Trait Implementations§
impl Freeze for ExprLike
impl RefUnwindSafe for ExprLike
impl Send for ExprLike
impl Sync for ExprLike
impl Unpin for ExprLike
impl UnsafeUnpin for ExprLike
impl UnwindSafe for ExprLike
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