pub struct ParsedColumn {
pub name: String,
pub datatype: String,
pub is_pk: bool,
pub not_null: bool,
pub is_unique: bool,
}Expand description
The schema for each SQL column in every table is represented by the following structure after parsed and tokenized
Fields§
§name: StringName of the column
datatype: StringDatatype of the column in String format
is_pk: boolValue representing if column is PRIMARY KEY
not_null: boolValue representing if column was declared with the NOT NULL Constraint
is_unique: boolValue representing if column was declared with the UNIQUE Constraint
Trait Implementations§
Source§impl Debug for ParsedColumn
impl Debug for ParsedColumn
Source§impl PartialEq for ParsedColumn
impl PartialEq for ParsedColumn
impl StructuralPartialEq for ParsedColumn
Auto Trait Implementations§
impl Freeze for ParsedColumn
impl RefUnwindSafe for ParsedColumn
impl Send for ParsedColumn
impl Sync for ParsedColumn
impl Unpin for ParsedColumn
impl UnsafeUnpin for ParsedColumn
impl UnwindSafe for ParsedColumn
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