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.
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.