#[repr(i32)]pub enum QueryStatementType {
Show 37 variants
Unspecified = 0,
Select = 1,
Assert = 23,
Insert = 2,
Update = 3,
Delete = 4,
Merge = 5,
CreateTable = 6,
CreateTableAsSelect = 7,
CreateView = 8,
CreateModel = 9,
CreateMaterializedView = 13,
CreateFunction = 14,
CreateTableFunction = 56,
CreateProcedure = 20,
CreateRowAccessPolicy = 24,
CreateSchema = 53,
CreateSnapshotTable = 59,
DropTable = 10,
DropExternalTable = 33,
DropView = 11,
DropModel = 12,
DropMaterializedView = 15,
DropFunction = 16,
DropProcedure = 21,
DropSchema = 54,
DropRowAccessPolicy = 25,
DropSnapshotTable = 62,
AlterTable = 17,
AlterView = 18,
AlterMaterializedView = 22,
AlterSchema = 55,
Script = 19,
TruncateTable = 26,
CreateExternalTable = 27,
ExportData = 28,
Call = 29,
}
Expand description
Type of the statement (e.g. SELECT, INSERT, CREATE_TABLE, CREATE_MODEL..)
Variants§
Unspecified = 0
Unknown.
Select = 1
SELECT … FROM <Table list> …
Assert = 23
ASSERT <condition> AS ‘description’
Insert = 2
INSERT INTO <Table> ….
Update = 3
UPDATE <Table> SET …
Delete = 4
DELETE <Table> …
Merge = 5
MERGE INTO <Table> ….
CreateTable = 6
CREATE TABLE <Table> <column list>
CreateTableAsSelect = 7
CREATE TABLE <Table> AS SELECT
CreateView = 8
CREATE VIEW <View>
CreateModel = 9
CREATE MODEL <Model> AS <Query>
CreateMaterializedView = 13
CREATE MATERIALIZED VIEW <View> AS …
CreateFunction = 14
CREATE FUNCTION <Function>(<Signature>) AS …
CreateTableFunction = 56
CREATE TABLE FUNCTION <Function>(<Signature>) AS …
CreateProcedure = 20
CREATE PROCEDURE <Procedure>
CreateRowAccessPolicy = 24
CREATE ROW ACCESS POLICY <RowAccessPolicy> ON <Table>
CreateSchema = 53
CREATE SCHEMA <Schema>
CreateSnapshotTable = 59
CREATE SNAPSHOT TABLE <Snapshot> CLONE <Table>
DropTable = 10
DROP TABLE <Table>
DropExternalTable = 33
DROP EXTERNAL TABLE <Table>
DropView = 11
DROP VIEW <View>
DropModel = 12
DROP MODEL <Model>
DropMaterializedView = 15
DROP MATERIALIZED VIEW <View>
DropFunction = 16
DROP FUNCTION <Function>
DropProcedure = 21
DROP PROCEDURE <Procedure>
DropSchema = 54
DROP SCHEMA <Schema>
DropRowAccessPolicy = 25
DROP ROW ACCESS POLICY <RowAccessPolicy> ON <Table>
DropSnapshotTable = 62
DROP SNAPSHOT TABLE <Snapshot>
AlterTable = 17
ALTER TABLE <Table>
AlterView = 18
ALTER VIEW <View>
AlterMaterializedView = 22
ALTER MATERIALIZED_VIEW <view>
AlterSchema = 55
ALTER SCHEMA <Schema>
Script = 19
Script
TruncateTable = 26
TRUNCATE TABLE <Table>
CreateExternalTable = 27
CREATE EXTERNAL TABLE <TABLE>
ExportData = 28
EXPORT DATA;
Call = 29
CALL <stored procedure>
Implementations§
source§impl QueryStatementType
impl QueryStatementType
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for QueryStatementType
impl Clone for QueryStatementType
source§fn clone(&self) -> QueryStatementType
fn clone(&self) -> QueryStatementType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for QueryStatementType
impl Debug for QueryStatementType
source§impl Default for QueryStatementType
impl Default for QueryStatementType
source§fn default() -> QueryStatementType
fn default() -> QueryStatementType
source§impl From<QueryStatementType> for i32
impl From<QueryStatementType> for i32
source§fn from(value: QueryStatementType) -> i32
fn from(value: QueryStatementType) -> i32
source§impl Hash for QueryStatementType
impl Hash for QueryStatementType
source§impl Ord for QueryStatementType
impl Ord for QueryStatementType
source§fn cmp(&self, other: &QueryStatementType) -> Ordering
fn cmp(&self, other: &QueryStatementType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for QueryStatementType
impl PartialEq for QueryStatementType
source§fn eq(&self, other: &QueryStatementType) -> bool
fn eq(&self, other: &QueryStatementType) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for QueryStatementType
impl PartialOrd for QueryStatementType
source§fn partial_cmp(&self, other: &QueryStatementType) -> Option<Ordering>
fn partial_cmp(&self, other: &QueryStatementType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for QueryStatementType
impl TryFrom<i32> for QueryStatementType
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<QueryStatementType, DecodeError>
fn try_from(value: i32) -> Result<QueryStatementType, DecodeError>
impl Copy for QueryStatementType
impl Eq for QueryStatementType
impl StructuralPartialEq for QueryStatementType
Auto Trait Implementations§
impl Freeze for QueryStatementType
impl RefUnwindSafe for QueryStatementType
impl Send for QueryStatementType
impl Sync for QueryStatementType
impl Unpin for QueryStatementType
impl UnwindSafe for QueryStatementType
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§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>
T
in a tonic::Request