pub enum SqlCommand {
Show 56 variants
Select(TableQuery),
Join(JoinQuery),
Insert(InsertQuery),
Update(UpdateQuery),
Delete(DeleteQuery),
ExplainAlter(ExplainAlterQuery),
CreateTable(CreateTableQuery),
DropTable(DropTableQuery),
DropGraph(DropGraphQuery),
DropVector(DropVectorQuery),
DropDocument(DropDocumentQuery),
DropKv(DropKvQuery),
DropCollection(DropCollectionQuery),
Truncate(TruncateQuery),
AlterTable(AlterTableQuery),
CreateIndex(CreateIndexQuery),
DropIndex(DropIndexQuery),
CreateTimeSeries(CreateTimeSeriesQuery),
DropTimeSeries(DropTimeSeriesQuery),
CreateQueue(CreateQueueQuery),
AlterQueue(AlterQueueQuery),
DropQueue(DropQueueQuery),
CreateTree(CreateTreeQuery),
DropTree(DropTreeQuery),
Probabilistic(ProbabilisticCommand),
SetConfig {
key: String,
value: Value,
},
ShowConfig {
prefix: Option<String>,
},
SetSecret {
key: String,
value: Value,
},
DeleteSecret {
key: String,
},
ShowSecrets {
prefix: Option<String>,
},
SetTenant(Option<String>),
ShowTenant,
TransactionControl(TxnControl),
Maintenance(MaintenanceCommand),
CreateSchema(CreateSchemaQuery),
DropSchema(DropSchemaQuery),
CreateSequence(CreateSequenceQuery),
DropSequence(DropSequenceQuery),
CopyFrom(CopyFromQuery),
CreateView(CreateViewQuery),
DropView(DropViewQuery),
RefreshMaterializedView(RefreshMaterializedViewQuery),
CreatePolicy(CreatePolicyQuery),
DropPolicy(DropPolicyQuery),
CreateServer(CreateServerQuery),
DropServer(DropServerQuery),
CreateForeignTable(CreateForeignTableQuery),
DropForeignTable(DropForeignTableQuery),
Grant(GrantStmt),
Revoke(RevokeStmt),
AlterUser(AlterUserStmt),
IamPolicy(QueryExpr),
CreateMigration(CreateMigrationQuery),
ApplyMigration(ApplyMigrationQuery),
RollbackMigration(RollbackMigrationQuery),
ExplainMigration(ExplainMigrationQuery),
}Variants§
Select(TableQuery)
Join(JoinQuery)
Insert(InsertQuery)
Update(UpdateQuery)
Delete(DeleteQuery)
ExplainAlter(ExplainAlterQuery)
CreateTable(CreateTableQuery)
DropTable(DropTableQuery)
DropGraph(DropGraphQuery)
DropVector(DropVectorQuery)
DropDocument(DropDocumentQuery)
DropKv(DropKvQuery)
DropCollection(DropCollectionQuery)
Truncate(TruncateQuery)
AlterTable(AlterTableQuery)
CreateIndex(CreateIndexQuery)
DropIndex(DropIndexQuery)
CreateTimeSeries(CreateTimeSeriesQuery)
DropTimeSeries(DropTimeSeriesQuery)
CreateQueue(CreateQueueQuery)
AlterQueue(AlterQueueQuery)
DropQueue(DropQueueQuery)
CreateTree(CreateTreeQuery)
DropTree(DropTreeQuery)
Probabilistic(ProbabilisticCommand)
SetConfig
ShowConfig
SetSecret
DeleteSecret
ShowSecrets
SetTenant(Option<String>)
ShowTenant
TransactionControl(TxnControl)
Maintenance(MaintenanceCommand)
CreateSchema(CreateSchemaQuery)
DropSchema(DropSchemaQuery)
CreateSequence(CreateSequenceQuery)
DropSequence(DropSequenceQuery)
CopyFrom(CopyFromQuery)
CreateView(CreateViewQuery)
DropView(DropViewQuery)
RefreshMaterializedView(RefreshMaterializedViewQuery)
CreatePolicy(CreatePolicyQuery)
DropPolicy(DropPolicyQuery)
CreateServer(CreateServerQuery)
DropServer(DropServerQuery)
CreateForeignTable(CreateForeignTableQuery)
DropForeignTable(DropForeignTableQuery)
Grant(GrantStmt)
GRANT … ON … TO …
Revoke(RevokeStmt)
REVOKE … ON … FROM …
AlterUser(AlterUserStmt)
ALTER USER name <attrs>
IamPolicy(QueryExpr)
IAM policy DDL (CREATE POLICY ‘…’ AS ‘…’, DROP POLICY ‘…’, ATTACH/DETACH POLICY, SHOW POLICIES, SIMULATE, SHOW EFFECTIVE PERMISSIONS). Stored as a pre-built QueryExpr so the dispatcher can route the multitude of shapes through a single arm.
CreateMigration(CreateMigrationQuery)
ApplyMigration(ApplyMigrationQuery)
RollbackMigration(RollbackMigrationQuery)
ExplainMigration(ExplainMigrationQuery)
Implementations§
Source§impl SqlCommand
impl SqlCommand
pub fn into_query_expr(self) -> QueryExpr
pub fn into_statement(self) -> SqlStatement
Trait Implementations§
Source§impl Clone for SqlCommand
impl Clone for SqlCommand
Source§fn clone(&self) -> SqlCommand
fn clone(&self) -> SqlCommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SqlCommand
impl RefUnwindSafe for SqlCommand
impl Send for SqlCommand
impl Sync for SqlCommand
impl Unpin for SqlCommand
impl UnsafeUnpin for SqlCommand
impl UnwindSafe for SqlCommand
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request