pub const STRICT: TableMarker;Expand description
Enables STRICT mode for the table.
§Example
ⓘ
#[SQLiteTable(strict)]
struct Users {
#[column(primary)]
id: i32,
name: String,
}§SQLite Behavior
- Enforces that values match declared column types exactly
INTEGERcolumns only accept integersTEXTcolumns only accept textREALcolumns only accept floating-point numbersBLOBcolumns only accept blobsANYtype allows any value (only in STRICT tables)