pub trait ToSql {
    fn to_sql(&self, context: &PgxSql) -> Result<String>;
}
Expand description

Able to be transformed into to SQL.

Required Methods

Attempt to transform this type into SQL.

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

Implementors