Skip to main content

Action

Enum Action 

Source
pub enum Action {
Show 78 variants Get, Cnt, Set, Del, Add, Gen, Make, Drop, Mod, Over, With, Index, DropIndex, Alter, AlterAddConstraint, AlterDropConstraint, 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, Search, Upsert, Merge, Scroll, CreateCollection, DeleteCollection, CreateFunction, DropFunction, CreateTrigger, DropTrigger, CreateExtension, DropExtension, CommentOn, CreateSequence, DropSequence, CreateEnum, DropEnum, AlterEnumAddValue, AlterSetNotNull, AlterDropNotNull, AlterSetDefault, AlterDropDefault, AlterEnableRls, AlterDisableRls, AlterForceRls, AlterNoForceRls, Call, Do, SessionSet, SessionShow, SessionReset, CreateDatabase, DropDatabase, Grant, Revoke, CreatePolicy, DropPolicy,
}
Expand description

The action type (SQL operation).

Variants§

§

Get

SELECT query.

§

Cnt

COUNT query.

§

Set

UPDATE statement.

§

Del

DELETE statement.

§

Add

INSERT statement.

§

Gen

Code generation.

§

Make

CREATE TABLE.

§

Drop

DROP TABLE.

§

Mod

ALTER TABLE (add column).

§

Over

UPSERT / ON CONFLICT … DO UPDATE.

§

With

CTE / WITH clause.

§

Index

CREATE INDEX.

§

DropIndex

DROP INDEX.

§

Alter

ALTER TABLE (generic).

§

AlterAddConstraint

ALTER TABLE … ADD CONSTRAINT … CHECK.

§

AlterDropConstraint

ALTER TABLE … DROP CONSTRAINT.

§

AlterDrop

ALTER TABLE … DROP COLUMN.

§

AlterType

ALTER TABLE … ALTER COLUMN TYPE.

§

TxnStart

BEGIN TRANSACTION.

§

TxnCommit

COMMIT.

§

TxnRollback

ROLLBACK.

§

Put

Bulk INSERT / COPY.

§

DropCol

DROP COLUMN.

§

RenameCol

ALTER TABLE … RENAME COLUMN.

§

JsonTable

JSONB_TO_RECORDSET.

§

Export

COPY … TO STDOUT.

§

Truncate

TRUNCATE TABLE.

§

Explain

EXPLAIN.

§

ExplainAnalyze

EXPLAIN ANALYZE.

§

Lock

LOCK TABLE.

§

CreateMaterializedView

CREATE MATERIALIZED VIEW.

§

RefreshMaterializedView

REFRESH MATERIALIZED VIEW.

§

DropMaterializedView

DROP MATERIALIZED VIEW.

§

Listen

LISTEN (async notifications).

§

Notify

NOTIFY (async notifications).

§

Unlisten

UNLISTEN (async notifications).

§

Savepoint

SAVEPOINT.

§

ReleaseSavepoint

RELEASE SAVEPOINT.

§

RollbackToSavepoint

ROLLBACK TO SAVEPOINT.

§

CreateView

CREATE VIEW.

§

DropView

DROP VIEW.

§

Search

Full-text or vector search.

§

Upsert

INSERT … ON CONFLICT DO UPDATE.

§

Merge

PostgreSQL MERGE.

§

Scroll

Cursor-based scrolling.

§

CreateCollection

Create vector collection (Qdrant).

§

DeleteCollection

Delete vector collection (Qdrant).

§

CreateFunction

CREATE FUNCTION.

§

DropFunction

DROP FUNCTION.

§

CreateTrigger

CREATE TRIGGER.

§

DropTrigger

DROP TRIGGER.

§

CreateExtension

CREATE EXTENSION.

§

DropExtension

DROP EXTENSION.

§

CommentOn

COMMENT ON.

§

CreateSequence

CREATE SEQUENCE.

§

DropSequence

DROP SEQUENCE.

§

CreateEnum

CREATE TYPE … AS ENUM.

§

DropEnum

DROP TYPE.

§

AlterEnumAddValue

ALTER TYPE … ADD VALUE.

§

AlterSetNotNull

ALTER COLUMN SET NOT NULL.

§

AlterDropNotNull

ALTER COLUMN DROP NOT NULL.

§

AlterSetDefault

ALTER COLUMN SET DEFAULT.

§

AlterDropDefault

ALTER COLUMN DROP DEFAULT.

§

AlterEnableRls

ALTER TABLE ENABLE ROW LEVEL SECURITY.

§

AlterDisableRls

ALTER TABLE DISABLE ROW LEVEL SECURITY.

§

AlterForceRls

ALTER TABLE FORCE ROW LEVEL SECURITY.

§

AlterNoForceRls

ALTER TABLE NO FORCE ROW LEVEL SECURITY.

§

Call

CALL procedure.

§

Do

DO anonymous block.

§

SessionSet

SET session variable.

§

SessionShow

SHOW session variable.

§

SessionReset

RESET session variable.

§

CreateDatabase

CREATE DATABASE.

§

DropDatabase

DROP DATABASE.

§

Grant

GRANT privileges.

§

Revoke

REVOKE privileges.

§

CreatePolicy

CREATE POLICY.

§

DropPolicy

DROP POLICY.

Trait Implementations§

Source§

impl Clone for Action

Source§

fn clone(&self) -> Action

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for Action

Source§

impl Debug for Action

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Action

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Display for Action

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for Action

Source§

impl PartialEq for Action

Source§

fn eq(&self, other: &Action) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for Action

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Action

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> ColumnValue<Value> for T

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.