drizzle 0.4.0

A type-safe SQL query builder for Rust
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use drizzle::sqlite::prelude::*;

#[SQLiteTable]
struct Users {
    #[column(primary)]
    id: i32,
}

// An unknown action used to drop the ON DELETE clause without a word.
#[SQLiteTable]
struct Posts {
    #[column(primary)]
    id: i32,
    #[column(references = Users::id, on_delete = EXPLODE)]
    user_id: i32,
}

fn main() {}