pub trait CTEDefinition<'a> {
// Required method
fn cte_definition(&self) -> SQL<'a, PostgresValue<'a>>;
}Expand description
Trait for types that can provide a CTE definition for WITH clauses.
Required Methods§
Sourcefn cte_definition(&self) -> SQL<'a, PostgresValue<'a>>
fn cte_definition(&self) -> SQL<'a, PostgresValue<'a>>
Returns the SQL for the CTE definition (e.g., “cte_name AS (SELECT …)”)
Implementors§
impl<'a, Table, Query> CTEDefinition<'a> for &CTEView<'a, Table, Query>where
Query: ToSQL<'a, PostgresValue<'a>>,
CTEDefinition for references.
impl<'a, Table, Query> CTEDefinition<'a> for CTEView<'a, Table, Query>where
Query: ToSQL<'a, PostgresValue<'a>>,
CTEDefinition implementation for CTEView.