[−][src]Enum sqlparser::ast::Statement
A top-level statement (SELECT, INSERT, CREATE, etc.)
Variants
SELECT
INSERT
Fields of Insert
table_name: ObjectName
TABLE
columns: Vec<Ident>
COLUMNS
source: Box<Query>
A SQL query that specifies what to insert
Fields of Copy
UPDATE
Fields of Update
table_name: ObjectName
TABLE
assignments: Vec<Assignment>
Column assignments
selection: Option<Expr>
WHERE
DELETE
Fields of Delete
CREATE VIEW
Fields of CreateView
CREATE TABLE
Fields of CreateTable
CREATE INDEX
Fields of CreateIndex
ALTER TABLE
Fields of AlterTable
DROP
Fields of Drop
object_type: ObjectType
The type of the object to drop: TABLE, VIEW, etc.
if_exists: bool
An optional IF EXISTS
clause. (Non-standard.)
names: Vec<ObjectName>
One or more objects to drop. (ANSI SQL requires exactly one.)
cascade: bool
Whether CASCADE
was specified. This will be false
when
RESTRICT
or no drop behavior at all was specified.
SET
Note: this is not a standard SQL statement, but it is supported by at least MySQL and PostgreSQL. Not all MySQL-specific syntatic forms are supported yet.
Fields of SetVariable
SHOW
Note: this is a PostgreSQL-specific statement.
Fields of ShowVariable
variable: Ident
SHOW COLUMNS
Note: this is a MySQL-specific statement.
Fields of ShowColumns
{ BEGIN [ TRANSACTION | WORK ] | START TRANSACTION } ...
Fields of StartTransaction
modes: Vec<TransactionMode>
SET TRANSACTION ...
Fields of SetTransaction
modes: Vec<TransactionMode>
COMMIT [ TRANSACTION | WORK ] [ AND [ NO ] CHAIN ]
Fields of Commit
chain: bool
ROLLBACK [ TRANSACTION | WORK ] [ AND [ NO ] CHAIN ]
Fields of Rollback
chain: bool
CREATE SCHEMA
Fields of CreateSchema
schema_name: ObjectName
Trait Implementations
impl Clone for Statement
[src]
impl Debug for Statement
[src]
impl Display for Statement
[src]
impl Eq for Statement
[src]
impl Hash for Statement
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<Statement> for Statement
[src]
impl StructuralEq for Statement
[src]
impl StructuralPartialEq for Statement
[src]
Auto Trait Implementations
impl RefUnwindSafe for Statement
impl Send for Statement
impl Sync for Statement
impl Unpin for Statement
impl UnwindSafe for Statement
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,