Crate sqlx_insert
source ·Expand description
SQLInsert trait and derive macro for sqlx.
Traits§
- Trait for inserting a struct into a SQL database.
Derive Macros§
- Derive macro for automatically implementing SQLInsert trait for a struct. All struct fields that are supposed to be inserted into the database need to be: sqlx::types::Type + sqlx::encode::Encode + Clone + Send + Sync. As of now, the proc macro supports only named struct fields.