pub enum EntrySqlType {
Show 37 variants
Query,
Insert,
Update,
Delete,
CreateTable,
CreateIndex,
CreateView,
AlterTable,
AlterIndex,
Drop,
DropFunction,
SetVariable,
SetNames,
SetNamesDefault,
ShowVariable,
ShowVariables,
ShowCreate,
ShowColumns,
ShowTables,
ShowCollation,
Use,
StartTransaction,
SetTransaction,
Commit,
Rollback,
CreateSchema,
CreateDatabase,
Grant,
Revoke,
Kill,
ExplainTable,
Explain,
Savepoint,
LockTables,
UnlockTables,
Flush,
Unknown,
}
Expand description
The SQL statement type of the EntrySqlStatement.
NOTE: this is a MySQL specific sub-set of the entries in sql_parser::ast::Statement
. This is
a simpler enum to match against and displays as the start of the SQL command.
Variants§
Query
SELECT
Insert
INSERT
Update
UPDATE
Delete
DELETE
CreateTable
CREATE TABLE
CreateIndex
CREATE INDEX
CreateView
CREATE VIEW
AlterTable
ALTER TABLE
AlterIndex
ALTER INDEX
Drop
DROP TABLE
DropFunction
DROP FUNCTION
SetVariable
SET VARIABLE
SetNames
SET NAMES
SetNamesDefault
SET NAMES DEFAULT
ShowVariable
SHOW VARIABLE
ShowVariables
SHOW VARIABLES
ShowCreate
SHOW CREATE TABLE
ShowColumns
SHOW COLUMNS
ShowTables
SHOW TABLES
ShowCollation
SHOW COLLATION
Use
USE
StartTransaction
BEGIN TRANSACTION
SetTransaction
SET TRANSACTION
Commit
COMMIT TRANSACTION
Rollback
ROLLBACK TRANSACTION
CreateSchema
CREATE SCHEMA
CreateDatabase
CREATE DATABASE
Grant
GRANT
Revoke
REVOKE
Kill
KILL
ExplainTable
EXPLAIN TABLE
Explain
EXPLAIN
Savepoint
SAVEPOINT
LockTables
LOCK TABLES
UnlockTables
UNLOCK TABLES
Flush
FLUSH
Unknown
Unable to identy if the type of statement
Trait Implementations§
Source§impl Clone for EntrySqlType
impl Clone for EntrySqlType
Source§fn clone(&self) -> EntrySqlType
fn clone(&self) -> EntrySqlType
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for EntrySqlType
impl Debug for EntrySqlType
Source§impl Display for EntrySqlType
impl Display for EntrySqlType
Source§impl Hash for EntrySqlType
impl Hash for EntrySqlType
Source§impl PartialEq for EntrySqlType
impl PartialEq for EntrySqlType
impl Copy for EntrySqlType
impl Eq for EntrySqlType
impl StructuralPartialEq for EntrySqlType
Auto Trait Implementations§
impl Freeze for EntrySqlType
impl RefUnwindSafe for EntrySqlType
impl Send for EntrySqlType
impl Sync for EntrySqlType
impl Unpin for EntrySqlType
impl UnwindSafe for EntrySqlType
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