Crate compact_sql_traits

Source
Expand description

This crate provides a set of traits used for code generated by the compact_sql crate.

Please read the full docs of the mentioned crate with examples there.

Structs§

Type
A Postgres type.

Traits§

BorrowToSql
A trait used by clients to abstract over &dyn ToSql and T: ToSql.
PgResultRow
Trait for code generated by the compact_sql::PgResultRow derive macro.
QueryCopy
Trait for COPY queries.
QueryDDL
Trait for schema definition/modification queries.
QueryDML
Trait for queries with data modification without the “RETURNING” clause.
QueryExactOne
Trait for queries with = type prefix: =RetType.
QueryIgnore
Trait for queries with ! instead of type (ignore result rows).
QueryMany
Trait for queries with * type prefix: *RetType.
QueryMaybeOne
Trait for queries with ? type prefix: ?RetType.
QueryStream
Trait for queries with # type prefix: #RetType.

Type Aliases§

NamesList
ReqTypeChecks
RespTypeChecks