Skip to main content

drizzle_sqlite/traits/
table.rs

1use drizzle_core::SQLTable;
2
3use crate::common::SQLiteSchemaType;
4use crate::values::SQLiteValue;
5
6pub trait SQLiteTable<'a>: SQLTable<'a, SQLiteSchemaType, SQLiteValue<'a>> {
7    const WITHOUT_ROWID: bool;
8    const STRICT: bool;
9}
10
11impl<'a, T> SQLiteTable<'a> for &T
12where
13    T: SQLiteTable<'a>,
14    for<'x> &'x T: SQLTable<'a, SQLiteSchemaType, SQLiteValue<'a>>,
15{
16    const WITHOUT_ROWID: bool = T::WITHOUT_ROWID;
17    const STRICT: bool = T::STRICT;
18}