pub struct LinqQuery { /* private fields */ }Expand description
LINQ 风格查询构建器
Implementations§
Source§impl LinqQuery
impl LinqQuery
Sourcepub fn where_like(self, field: &str, pattern: Value) -> Self
pub fn where_like(self, field: &str, pattern: Value) -> Self
WHERE LIKE 条件
Sourcepub fn where_null(self, field: &str) -> Self
pub fn where_null(self, field: &str) -> Self
WHERE IS NULL
Sourcepub fn where_not_null(self, field: &str) -> Self
pub fn where_not_null(self, field: &str) -> Self
WHERE IS NOT NULL
Sourcepub fn order_by_desc(self, field: &str) -> Self
pub fn order_by_desc(self, field: &str) -> Self
ORDER BY 降序
Sourcepub fn build_count(&self) -> String
pub fn build_count(&self) -> String
构建 COUNT 查询
Sourcepub fn build_exists(&self) -> String
pub fn build_exists(&self) -> String
构建 EXISTS 查询
Auto Trait Implementations§
impl !RefUnwindSafe for LinqQuery
impl !UnwindSafe for LinqQuery
impl Freeze for LinqQuery
impl Send for LinqQuery
impl Sync for LinqQuery
impl Unpin for LinqQuery
impl UnsafeUnpin for LinqQuery
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more