impl_join_helpers

Macro impl_join_helpers 

Source
macro_rules! impl_join_helpers {
    (
        table_trait: $TableTrait:path,
        condition_trait: $ConditionTrait:path,
        sql_type: $SQLType:ty $(,)?
    ) => { ... };
}
Expand description

Macro to generate join helper functions for a specific dialect.

This macro generates all the standard join helper functions (natural_join, left_join, etc.) that create SQL JOIN clauses. Each dialect invokes this macro with their specific table trait and SQL type.

§Usage

impl_join_helpers!(
    /// Trait bound for table types
    table_trait: SQLiteTable<'a>,
    /// Trait bound for condition types
    condition_trait: ToSQL<'a, SQLiteValue<'a>>,
    /// Return type for SQL
    sql_type: SQLiteSQL<'a>,
);