pub struct CheckInfo {
pub name: Option<Vec<u8>>,
pub expr_sql: Vec<u8>,
pub conflict: Option<ConflictAction>,
}Expand description
One CHECK constraint.
Fields§
§name: Option<Vec<u8>>The constraint’s name, when one was written.
expr_sql: Vec<u8>The predicate, as the source text between its parentheses.
conflict: Option<ConflictAction>The ON CONFLICT clause a table-level CHECK was written with.
Recorded and not acted on, because that is what the reference does:
SQLite’s grammar accepts CHECK (expr) onconf on a table constraint and
its builder never reads the clause, so such a constraint aborts like any
other. It is kept here so the derivation is a full account of the text
rather than a lossy one, and so the next reader finds the measurement
instead of the question.
Trait Implementations§
impl Eq for CheckInfo
impl StructuralPartialEq for CheckInfo
Auto Trait Implementations§
impl Freeze for CheckInfo
impl RefUnwindSafe for CheckInfo
impl Send for CheckInfo
impl Sync for CheckInfo
impl Unpin for CheckInfo
impl UnsafeUnpin for CheckInfo
impl UnwindSafe for CheckInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more