Expand description
This crate provides Turbosql’s procedural macros.
Please refer to the turbosql
crate for how to set this up.
Macros§
- execute
- Executes a SQL statement. On success, returns the number of rows that were changed or inserted or deleted.
- select
- Executes a SQL SELECT statement with optionally automatic
SELECT
andFROM
clauses. - update
- Executes a SQL statement with optionally automatic
UPDATE
clause. On success, returns the number of rows that were changed.
Derive Macros§
- Turbosql
- Derive this on a
struct
to create a corresponding SQLite table andTurbosql
trait methods.