Enum sqlpop::ast::TableConstraint [] [src]

pub enum TableConstraint {
    PrimaryKey {
        columns: Vec<SortedColumn>,
        auto_increment: bool,
        conflict_clause: Option<ResolveType>,
    },
    Unique {
        columns: Vec<SortedColumn>,
        conflict_clause: Option<ResolveType>,
    },
    Check(Expr),
    ForeignKey {
        columns: Vec<IndexedColumn>,
        clause: ForeignKeyClause,
        deref_clause: Option<DeferSubclause>,
    },
}

Variants

Fields of PrimaryKey

Fields of Unique

Fields of ForeignKey

Trait Implementations

impl Clone for TableConstraint
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for TableConstraint
[src]

Formats the value using the given formatter.

impl PartialEq for TableConstraint
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for TableConstraint
[src]