Enum sqlite3_parser::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<String>,
    },
    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>,
        from: Option<FromClause>,
        where_clause: Option<Expr>,
        order_by: Option<Vec<SortedColumn>>,
        limit: Option<Limit>,
    },
    Vacuum(Option<Name>, Option<Expr>),
}

Variants

Attach

Fields of Attach

expr: Exprdb_name: Exprkey: Option<Expr>
Commit(Option<Name>)
CreateIndex

Fields of CreateIndex

unique: boolif_not_exists: boolidx_name: QualifiedNametbl_name: Namecolumns: Vec<SortedColumn>where_clause: Option<Expr>
CreateTable

Fields of CreateTable

temporary: boolif_not_exists: booltbl_name: QualifiedNamebody: CreateTableBody
CreateTrigger

Fields of CreateTrigger

temporary: boolif_not_exists: booltrigger_name: QualifiedNametime: Option<TriggerTime>event: TriggerEventtbl_name: QualifiedNamefor_each_row: boolwhen_clause: Option<Expr>commands: Vec<TriggerCmd>
CreateView

Fields of CreateView

temporary: boolif_not_exists: boolview_name: QualifiedNamecolumns: Option<Vec<IndexedColumn>>select: Select
CreateVirtualTable

Fields of CreateVirtualTable

if_not_exists: booltbl_name: QualifiedNamemodule_name: Nameargs: Option<String>
Delete

Fields of Delete

with: Option<With>tbl_name: QualifiedNameindexed: Option<Indexed>where_clause: Option<Expr>order_by: Option<Vec<SortedColumn>>limit: Option<Limit>
Detach(Expr)
DropIndex

Fields of DropIndex

if_exists: boolidx_name: QualifiedName
DropTable

Fields of DropTable

if_exists: booltbl_name: QualifiedName
DropTrigger

Fields of DropTrigger

if_exists: booltrigger_name: QualifiedName
DropView

Fields of DropView

if_exists: boolview_name: QualifiedName
Insert

Fields of Insert

with: Option<With>or_conflict: Option<ResolveType>tbl_name: QualifiedNamecolumns: Option<Vec<Name>>body: InsertBody
Reindex

Fields of Reindex

obj_name: Option<QualifiedName>
Release(Name)
Rollback

Fields of Rollback

tx_name: Option<Name>savepoint_name: Option<Name>
Savepoint(Name)
Select(Select)
Update

Fields of Update

with: Option<With>or_conflict: Option<ResolveType>tbl_name: QualifiedNameindexed: Option<Indexed>sets: Vec<Set>from: Option<FromClause>where_clause: Option<Expr>order_by: Option<Vec<SortedColumn>>limit: Option<Limit>
Vacuum(Option<Name>, Option<Expr>)

Trait Implementations

impl Clone for Stmt[src]

impl Debug for Stmt[src]

impl Eq for Stmt[src]

impl PartialEq<Stmt> for Stmt[src]

impl StructuralEq for Stmt[src]

impl StructuralPartialEq for Stmt[src]

impl ToTokens for Stmt[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.