pub struct JoinBuilt { /* private fields */ }Expand description
JOIN 已完整构造,可生成 SQL
Implementations§
Source§impl JoinBuilt
impl JoinBuilt
Sourcepub fn build(&self) -> String
pub fn build(&self) -> String
生成 JOIN 子句 SQL
输出格式:<JOIN_TYPE> <right_table> ON <left_column> = <right_column>
注意:生成的 SQL 中列名不带表前缀。
如需带前缀,使用 build_with_prefix。
Sourcepub fn build_with_prefix(&self, left_table: &str) -> String
pub fn build_with_prefix(&self, left_table: &str) -> String
生成带表前缀的 JOIN 子句
输出格式:<JOIN_TYPE> <right_table> ON <left_table>.<left_column> = <right_table>.<right_column>
Auto Trait Implementations§
impl Freeze for JoinBuilt
impl RefUnwindSafe for JoinBuilt
impl Send for JoinBuilt
impl Sync for JoinBuilt
impl Unpin for JoinBuilt
impl UnsafeUnpin for JoinBuilt
impl UnwindSafe for JoinBuilt
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
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