pub trait ToSql { fn to_sql(&self, context: &PgxSql) -> Result<String>; }
Able to be transformed into to SQL.
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.
PgxSql
#[derive(PostgresType)]