Crate sqlx_insert

Source
Expand description

SQLInsert trait and derive macro for sqlx.

Traits§

SQLInsert
Trait for inserting a struct into a SQL database.

Derive Macros§

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