Crate nanosql_macros

Source

Derive Macrosยง

AsSqlTy
See the documentation of the AsSqlTy trait for details.
FromSql
The purpose of this derive macro is to implement the rusqlite::FromSql trait for enums (with unit variants only) and newtype wrapper structs. Multi-field structs can use the #[nanosql(ignore)] attribute on all except one field, in order to delegate the impl to that one field.
InsertInput
See the documentation of the InsertInput trait for details.
Param
See the documentation of the Param trait for details.
ResultRecord
See the documentation of the ResultRecord trait for details.
Table
See the documentation of the Table trait for details.
ToSql
The purpose of this derive macro is to implement the rusqlite::ToSql trait for enums (with unit variants only) and newtype wrapper structs. Multi-field structs can use the #[nanosql(ignore)] attribute on all except one field, in order to delegate the impl to that one field.