sqlx-data-macros
Procedural macros for sqlx-data. This crate provides the core #[repo] and #[dml] derive macros that enable automatic SQL generation and repository pattern implementation.
Macros
#[repo]- Transform traits into repository implementations#[dml]- Generate SQL query methods with compile-time validation
Usage
This crate is typically used through the main sqlx-data crate:
use ;
Features
- Compile-time SQL validation
- Automatic parameter binding
- Type-safe query generation
- Repository pattern implementation
For complete documentation, see the sqlx-data documentation.