Skip to main content

CTEDefinition

Trait CTEDefinition 

Source
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§

Source

fn cte_definition(&self) -> SQL<'a, PostgresValue<'a>>

Returns the SQL for the CTE definition (e.g., cte_name AS (SELECT ...)).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<'a, Table, Query> CTEDefinition<'a> for &CTEView<'a, Table, Query>
where Query: ToSQL<'a, PostgresValue<'a>>,

Source§

impl<'a, Table, Query> CTEDefinition<'a> for CTEView<'a, Table, Query>
where Query: ToSQL<'a, PostgresValue<'a>>,