Drizzle RS Procedural Macros
This crate provides the procedural macros for Drizzle RS, a type-safe SQL query builder for Rust.
Core Macros
- [
drizzle!] - Initialize a Drizzle instance with database connection and schemas - [
SQLiteTable] - Define SQLite table schemas with type safety - [
SQLiteEnum] - Define enums that can be stored in SQLite - [
FromRow] - Derive automatic row-to-struct conversion
Example Usage
use drizzle_rs::prelude::*;
// Define your schema
#[SQLiteTable(name = "users")]
struct Users {
#[integer(primary)]
id: i32,
#[text]
name: String,
#[text]
email: String,
}
For more detailed documentation, see the individual macro documentation below.