Struct rdb_pagination_core::SqlJoin
source · pub struct SqlJoin {
pub other_table_name: TableName,
pub other_column_name: ColumnName,
pub real_table_name: Option<TableName>,
pub using_table_name: TableName,
pub using_column_name: ColumnName,
}Expand description
Struct for generating the JOIN clause.
Fields§
§other_table_name: TableName§other_column_name: ColumnName§real_table_name: Option<TableName>§using_table_name: TableName§using_column_name: ColumnNameImplementations§
source§impl SqlJoin
impl SqlJoin
sourcepub fn to_mysql_join_clause<'a>(&self, s: &'a mut String) -> &'a str
pub fn to_mysql_join_clause<'a>(&self, s: &'a mut String) -> &'a str
Generate a JOIN clause for MySQL.
If real_table_name exists,
JOIN `<real_table_name>` AS `<other_table_name>` ON `<other_table_name>`.`<other_column_name>` = `<using_table_name>`.`<using_column_name>`
or
JOIN `<other_table_name>` ON `<other_table_name>`.`<other_column_name>` = `<using_table_name>`.`<using_column_name>`
sourcepub fn format_mysql_join_clauses<'a>(
joins: &[SqlJoin],
s: &'a mut String,
) -> &'a str
pub fn format_mysql_join_clauses<'a>( joins: &[SqlJoin], s: &'a mut String, ) -> &'a str
Generate JOIN clauses for MySQL.
Concatenate a series of SqlJoins with \n.
Trait Implementations§
source§impl PartialEq for SqlJoin
impl PartialEq for SqlJoin
impl Eq for SqlJoin
impl StructuralPartialEq for SqlJoin
Auto Trait Implementations§
impl Freeze for SqlJoin
impl RefUnwindSafe for SqlJoin
impl Send for SqlJoin
impl Sync for SqlJoin
impl Unpin for SqlJoin
impl UnwindSafe for SqlJoin
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)