Trait pgrx_sql_entity_graph::ToSql

source ·
pub trait ToSql {
    // Required method
    fn to_sql(&self, context: &PgrxSql) -> Result<String>;
}
Expand description

Able to be transformed into to SQL.

Required Methods§

source

fn to_sql(&self, context: &PgrxSql) -> Result<String>

Attempt to transform this type into SQL.

Some entities require additional context from a PgrxSql, such as #[derive(PostgresType)] which must include it’s relevant in/out functions.

Implementors§