pub enum Action {
Show 38 variants
Get,
Set,
Del,
Add,
Gen,
Make,
Drop,
Mod,
Over,
With,
Index,
DropIndex,
Alter,
AlterDrop,
AlterType,
TxnStart,
TxnCommit,
TxnRollback,
Put,
DropCol,
RenameCol,
JsonTable,
Export,
Truncate,
Explain,
ExplainAnalyze,
Lock,
CreateMaterializedView,
RefreshMaterializedView,
DropMaterializedView,
Listen,
Notify,
Unlisten,
Savepoint,
ReleaseSavepoint,
RollbackToSavepoint,
CreateView,
DropView,
}Expand description
The action type (SQL operation).
Variants§
Get
SELECT query
Set
UPDATE query
Del
Add
INSERT query
Gen
Make
Drop
Mod
Over
With
Index
DropIndex
Alter
AlterDrop
ALTER TABLE DROP COLUMN
AlterType
ALTER TABLE ALTER COLUMN TYPE
TxnStart
TxnCommit
TxnRollback
Put
DropCol
RenameCol
JsonTable
JSON_TABLE - convert JSON to relational rows
Export
COPY TO STDOUT - bulk export data (AST-native)
Truncate
TRUNCATE TABLE - fast delete all rows
Explain
EXPLAIN - query plan analysis
ExplainAnalyze
EXPLAIN ANALYZE - execute and analyze query plan
Lock
LOCK TABLE - explicit table locking
CreateMaterializedView
RefreshMaterializedView
DropMaterializedView
Listen
LISTEN channel - subscribe to notifications
Notify
NOTIFY channel, ‘payload’ - send notification
Unlisten
UNLISTEN channel - unsubscribe from notifications
Savepoint
ReleaseSavepoint
RollbackToSavepoint
CreateView
CREATE VIEW name AS SELECT …
DropView
DROP VIEW name
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Action
impl<'de> Deserialize<'de> for Action
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for Action
impl Eq for Action
impl StructuralPartialEq for Action
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnwindSafe for Action
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