Enum sqlpop::ast::Stmt [] [src]

pub enum Stmt {
    AlterTable(QualifiedNameAlterTableBody),
    Analyze(Option<QualifiedName>),
    Attach {
        expr: Expr,
        db_name: Expr,
        key: Option<Expr>,
    },
    Begin(Option<TransactionType>, Option<Name>),
    Commit(Option<Name>),
    CreateIndex {
        unique: bool,
        if_not_exists: bool,
        idx_name: QualifiedName,
        tbl_name: Name,
        columns: Vec<SortedColumn>,
        where_clause: Option<Expr>,
    },
    CreateTable {
        temporary: bool,
        if_not_exists: bool,
        tbl_name: QualifiedName,
        body: CreateTableBody,
    },
    CreateTrigger {
        temporary: bool,
        if_not_exists: bool,
        trigger_name: QualifiedName,
        time: Option<TriggerTime>,
        event: TriggerEvent,
        tbl_name: QualifiedName,
        for_each_row: bool,
        when_clause: Option<Expr>,
        commands: Vec<TriggerCmd>,
    },
    CreateView {
        temporary: bool,
        if_not_exists: bool,
        view_name: QualifiedName,
        columns: Option<Vec<IndexedColumn>>,
        select: Select,
    },
    CreateVirtualTable {
        if_not_exists: bool,
        tbl_name: QualifiedName,
        module_name: Name,
        args: Option<Vec<Expr>>,
    },
    Delete {
        with: Option<With>,
        tbl_name: QualifiedName,
        indexed: Option<Indexed>,
        where_clause: Option<Expr>,
        order_by: Option<Vec<SortedColumn>>,
        limit: Option<Limit>,
    },
    Detach(Expr),
    DropIndex {
        if_exists: bool,
        idx_name: QualifiedName,
    },
    DropTable {
        if_exists: bool,
        tbl_name: QualifiedName,
    },
    DropTrigger {
        if_exists: bool,
        trigger_name: QualifiedName,
    },
    DropView {
        if_exists: bool,
        view_name: QualifiedName,
    },
    Insert {
        with: Option<With>,
        or_conflict: Option<ResolveType>,
        tbl_name: QualifiedName,
        columns: Option<Vec<Name>>,
        body: InsertBody,
    },
    Pragma(QualifiedNameOption<PragmaBody>),
    Reindex {
        obj_name: Option<QualifiedName>,
    },
    Release(Name),
    Rollback {
        tx_name: Option<Name>,
        savepoint_name: Option<Name>,
    },
    Savepoint(Name),
    Select(Select),
    Update {
        with: Option<With>,
        or_conflict: Option<ResolveType>,
        tbl_name: QualifiedName,
        indexed: Option<Indexed>,
        sets: Vec<Set>,
        where_clause: Option<Expr>,
        order_by: Option<Vec<SortedColumn>>,
        limit: Option<Limit>,
    },
    Vacuum(Option<Name>),
}

Variants

Fields of Attach

Fields of CreateIndex

Fields of CreateTable

Fields of CreateTrigger

Fields of CreateView

Fields of CreateVirtualTable

Fields of Delete

Fields of DropIndex

Fields of DropTable

Fields of DropTrigger

Fields of DropView

Fields of Insert

Fields of Reindex

Fields of Rollback

Fields of Update

Trait Implementations

impl Clone for Stmt
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Stmt
[src]

Formats the value using the given formatter.

impl PartialEq for Stmt
[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 Stmt
[src]