drizzle-sqlite 0.1.15

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

use crate::common::SQLiteSchemaType;
use crate::values::SQLiteValue;

pub trait SQLiteTable<'a>: SQLTable<'a, SQLiteSchemaType, SQLiteValue<'a>> {
    const WITHOUT_ROWID: bool;
    const STRICT: bool;
}

impl<'a, T> SQLiteTable<'a> for &T
where
    T: SQLiteTable<'a>,
    for<'x> &'x T: SQLTable<'a, SQLiteSchemaType, SQLiteValue<'a>>,
{
    const WITHOUT_ROWID: bool = T::WITHOUT_ROWID;
    const STRICT: bool = T::STRICT;
}