#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct CommandGetSqlInfo {
#[prost(uint32, repeated, tag = "1")]
pub info: ::prost::alloc::vec::Vec<u32>,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct CommandGetXdbcTypeInfo {
#[prost(int32, optional, tag = "1")]
pub data_type: ::core::option::Option<i32>,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct CommandGetCatalogs {}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct CommandGetDbSchemas {
#[prost(string, optional, tag = "1")]
pub catalog: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "2")]
pub db_schema_filter_pattern: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct CommandGetTables {
#[prost(string, optional, tag = "1")]
pub catalog: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "2")]
pub db_schema_filter_pattern: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "3")]
pub table_name_filter_pattern: ::core::option::Option<
::prost::alloc::string::String,
>,
#[prost(string, repeated, tag = "4")]
pub table_types: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(bool, tag = "5")]
pub include_schema: bool,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct CommandGetTableTypes {}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct CommandGetPrimaryKeys {
#[prost(string, optional, tag = "1")]
pub catalog: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "2")]
pub db_schema: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, tag = "3")]
pub table: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct CommandGetExportedKeys {
#[prost(string, optional, tag = "1")]
pub catalog: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "2")]
pub db_schema: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, tag = "3")]
pub table: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct CommandGetImportedKeys {
#[prost(string, optional, tag = "1")]
pub catalog: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "2")]
pub db_schema: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, tag = "3")]
pub table: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct CommandGetCrossReference {
#[prost(string, optional, tag = "1")]
pub pk_catalog: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "2")]
pub pk_db_schema: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, tag = "3")]
pub pk_table: ::prost::alloc::string::String,
#[prost(string, optional, tag = "4")]
pub fk_catalog: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "5")]
pub fk_db_schema: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, tag = "6")]
pub fk_table: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ActionCreatePreparedStatementRequest {
#[prost(string, tag = "1")]
pub query: ::prost::alloc::string::String,
#[prost(bytes = "bytes", optional, tag = "2")]
pub transaction_id: ::core::option::Option<::prost::bytes::Bytes>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct SubstraitPlan {
#[prost(bytes = "bytes", tag = "1")]
pub plan: ::prost::bytes::Bytes,
#[prost(string, tag = "2")]
pub version: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ActionCreatePreparedSubstraitPlanRequest {
#[prost(message, optional, tag = "1")]
pub plan: ::core::option::Option<SubstraitPlan>,
#[prost(bytes = "bytes", optional, tag = "2")]
pub transaction_id: ::core::option::Option<::prost::bytes::Bytes>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ActionCreatePreparedStatementResult {
#[prost(bytes = "bytes", tag = "1")]
pub prepared_statement_handle: ::prost::bytes::Bytes,
#[prost(bytes = "bytes", tag = "2")]
pub dataset_schema: ::prost::bytes::Bytes,
#[prost(bytes = "bytes", tag = "3")]
pub parameter_schema: ::prost::bytes::Bytes,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ActionClosePreparedStatementRequest {
#[prost(bytes = "bytes", tag = "1")]
pub prepared_statement_handle: ::prost::bytes::Bytes,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ActionBeginTransactionRequest {}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ActionBeginSavepointRequest {
#[prost(bytes = "bytes", tag = "1")]
pub transaction_id: ::prost::bytes::Bytes,
#[prost(string, tag = "2")]
pub name: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ActionBeginTransactionResult {
#[prost(bytes = "bytes", tag = "1")]
pub transaction_id: ::prost::bytes::Bytes,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ActionBeginSavepointResult {
#[prost(bytes = "bytes", tag = "1")]
pub savepoint_id: ::prost::bytes::Bytes,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ActionEndTransactionRequest {
#[prost(bytes = "bytes", tag = "1")]
pub transaction_id: ::prost::bytes::Bytes,
#[prost(enumeration = "action_end_transaction_request::EndTransaction", tag = "2")]
pub action: i32,
}
pub mod action_end_transaction_request {
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum EndTransaction {
Unspecified = 0,
Commit = 1,
Rollback = 2,
}
impl EndTransaction {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "END_TRANSACTION_UNSPECIFIED",
Self::Commit => "END_TRANSACTION_COMMIT",
Self::Rollback => "END_TRANSACTION_ROLLBACK",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"END_TRANSACTION_UNSPECIFIED" => Some(Self::Unspecified),
"END_TRANSACTION_COMMIT" => Some(Self::Commit),
"END_TRANSACTION_ROLLBACK" => Some(Self::Rollback),
_ => None,
}
}
}
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ActionEndSavepointRequest {
#[prost(bytes = "bytes", tag = "1")]
pub savepoint_id: ::prost::bytes::Bytes,
#[prost(enumeration = "action_end_savepoint_request::EndSavepoint", tag = "2")]
pub action: i32,
}
pub mod action_end_savepoint_request {
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum EndSavepoint {
Unspecified = 0,
Release = 1,
Rollback = 2,
}
impl EndSavepoint {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "END_SAVEPOINT_UNSPECIFIED",
Self::Release => "END_SAVEPOINT_RELEASE",
Self::Rollback => "END_SAVEPOINT_ROLLBACK",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"END_SAVEPOINT_UNSPECIFIED" => Some(Self::Unspecified),
"END_SAVEPOINT_RELEASE" => Some(Self::Release),
"END_SAVEPOINT_ROLLBACK" => Some(Self::Rollback),
_ => None,
}
}
}
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct CommandStatementQuery {
#[prost(string, tag = "1")]
pub query: ::prost::alloc::string::String,
#[prost(bytes = "bytes", optional, tag = "2")]
pub transaction_id: ::core::option::Option<::prost::bytes::Bytes>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct CommandStatementSubstraitPlan {
#[prost(message, optional, tag = "1")]
pub plan: ::core::option::Option<SubstraitPlan>,
#[prost(bytes = "bytes", optional, tag = "2")]
pub transaction_id: ::core::option::Option<::prost::bytes::Bytes>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct TicketStatementQuery {
#[prost(bytes = "bytes", tag = "1")]
pub statement_handle: ::prost::bytes::Bytes,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct CommandPreparedStatementQuery {
#[prost(bytes = "bytes", tag = "1")]
pub prepared_statement_handle: ::prost::bytes::Bytes,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct CommandStatementUpdate {
#[prost(string, tag = "1")]
pub query: ::prost::alloc::string::String,
#[prost(bytes = "bytes", optional, tag = "2")]
pub transaction_id: ::core::option::Option<::prost::bytes::Bytes>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct CommandPreparedStatementUpdate {
#[prost(bytes = "bytes", tag = "1")]
pub prepared_statement_handle: ::prost::bytes::Bytes,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CommandStatementIngest {
#[prost(message, optional, tag = "1")]
pub table_definition_options: ::core::option::Option<
command_statement_ingest::TableDefinitionOptions,
>,
#[prost(string, tag = "2")]
pub table: ::prost::alloc::string::String,
#[prost(string, optional, tag = "3")]
pub schema: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "4")]
pub catalog: ::core::option::Option<::prost::alloc::string::String>,
#[prost(bool, tag = "5")]
pub temporary: bool,
#[prost(bytes = "bytes", optional, tag = "6")]
pub transaction_id: ::core::option::Option<::prost::bytes::Bytes>,
#[prost(map = "string, string", tag = "1000")]
pub options: ::std::collections::HashMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
}
pub mod command_statement_ingest {
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct TableDefinitionOptions {
#[prost(
enumeration = "table_definition_options::TableNotExistOption",
tag = "1"
)]
pub if_not_exist: i32,
#[prost(enumeration = "table_definition_options::TableExistsOption", tag = "2")]
pub if_exists: i32,
}
pub mod table_definition_options {
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum TableNotExistOption {
Unspecified = 0,
Create = 1,
Fail = 2,
}
impl TableNotExistOption {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "TABLE_NOT_EXIST_OPTION_UNSPECIFIED",
Self::Create => "TABLE_NOT_EXIST_OPTION_CREATE",
Self::Fail => "TABLE_NOT_EXIST_OPTION_FAIL",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"TABLE_NOT_EXIST_OPTION_UNSPECIFIED" => Some(Self::Unspecified),
"TABLE_NOT_EXIST_OPTION_CREATE" => Some(Self::Create),
"TABLE_NOT_EXIST_OPTION_FAIL" => Some(Self::Fail),
_ => None,
}
}
}
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum TableExistsOption {
Unspecified = 0,
Fail = 1,
Append = 2,
Replace = 3,
}
impl TableExistsOption {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "TABLE_EXISTS_OPTION_UNSPECIFIED",
Self::Fail => "TABLE_EXISTS_OPTION_FAIL",
Self::Append => "TABLE_EXISTS_OPTION_APPEND",
Self::Replace => "TABLE_EXISTS_OPTION_REPLACE",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"TABLE_EXISTS_OPTION_UNSPECIFIED" => Some(Self::Unspecified),
"TABLE_EXISTS_OPTION_FAIL" => Some(Self::Fail),
"TABLE_EXISTS_OPTION_APPEND" => Some(Self::Append),
"TABLE_EXISTS_OPTION_REPLACE" => Some(Self::Replace),
_ => None,
}
}
}
}
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct DoPutUpdateResult {
#[prost(int64, tag = "1")]
pub record_count: i64,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct DoPutPreparedStatementResult {
#[prost(bytes = "bytes", optional, tag = "1")]
pub prepared_statement_handle: ::core::option::Option<::prost::bytes::Bytes>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ActionCancelQueryRequest {
#[prost(bytes = "bytes", tag = "1")]
pub info: ::prost::bytes::Bytes,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ActionCancelQueryResult {
#[prost(enumeration = "action_cancel_query_result::CancelResult", tag = "1")]
pub result: i32,
}
pub mod action_cancel_query_result {
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum CancelResult {
Unspecified = 0,
Cancelled = 1,
Cancelling = 2,
NotCancellable = 3,
}
impl CancelResult {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "CANCEL_RESULT_UNSPECIFIED",
Self::Cancelled => "CANCEL_RESULT_CANCELLED",
Self::Cancelling => "CANCEL_RESULT_CANCELLING",
Self::NotCancellable => "CANCEL_RESULT_NOT_CANCELLABLE",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"CANCEL_RESULT_UNSPECIFIED" => Some(Self::Unspecified),
"CANCEL_RESULT_CANCELLED" => Some(Self::Cancelled),
"CANCEL_RESULT_CANCELLING" => Some(Self::Cancelling),
"CANCEL_RESULT_NOT_CANCELLABLE" => Some(Self::NotCancellable),
_ => None,
}
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum SqlInfo {
FlightSqlServerName = 0,
FlightSqlServerVersion = 1,
FlightSqlServerArrowVersion = 2,
FlightSqlServerReadOnly = 3,
FlightSqlServerSql = 4,
FlightSqlServerSubstrait = 5,
FlightSqlServerSubstraitMinVersion = 6,
FlightSqlServerSubstraitMaxVersion = 7,
FlightSqlServerTransaction = 8,
FlightSqlServerCancel = 9,
FlightSqlServerBulkIngestion = 10,
FlightSqlServerIngestTransactionsSupported = 11,
FlightSqlServerStatementTimeout = 100,
FlightSqlServerTransactionTimeout = 101,
SqlDdlCatalog = 500,
SqlDdlSchema = 501,
SqlDdlTable = 502,
SqlIdentifierCase = 503,
SqlIdentifierQuoteChar = 504,
SqlQuotedIdentifierCase = 505,
SqlAllTablesAreSelectable = 506,
SqlNullOrdering = 507,
SqlKeywords = 508,
SqlNumericFunctions = 509,
SqlStringFunctions = 510,
SqlSystemFunctions = 511,
SqlDatetimeFunctions = 512,
SqlSearchStringEscape = 513,
SqlExtraNameCharacters = 514,
SqlSupportsColumnAliasing = 515,
SqlNullPlusNullIsNull = 516,
SqlSupportsConvert = 517,
SqlSupportsTableCorrelationNames = 518,
SqlSupportsDifferentTableCorrelationNames = 519,
SqlSupportsExpressionsInOrderBy = 520,
SqlSupportsOrderByUnrelated = 521,
SqlSupportedGroupBy = 522,
SqlSupportsLikeEscapeClause = 523,
SqlSupportsNonNullableColumns = 524,
SqlSupportedGrammar = 525,
SqlAnsi92SupportedLevel = 526,
SqlSupportsIntegrityEnhancementFacility = 527,
SqlOuterJoinsSupportLevel = 528,
SqlSchemaTerm = 529,
SqlProcedureTerm = 530,
SqlCatalogTerm = 531,
SqlCatalogAtStart = 532,
SqlSchemasSupportedActions = 533,
SqlCatalogsSupportedActions = 534,
SqlSupportedPositionedCommands = 535,
SqlSelectForUpdateSupported = 536,
SqlStoredProceduresSupported = 537,
SqlSupportedSubqueries = 538,
SqlCorrelatedSubqueriesSupported = 539,
SqlSupportedUnions = 540,
SqlMaxBinaryLiteralLength = 541,
SqlMaxCharLiteralLength = 542,
SqlMaxColumnNameLength = 543,
SqlMaxColumnsInGroupBy = 544,
SqlMaxColumnsInIndex = 545,
SqlMaxColumnsInOrderBy = 546,
SqlMaxColumnsInSelect = 547,
SqlMaxColumnsInTable = 548,
SqlMaxConnections = 549,
SqlMaxCursorNameLength = 550,
SqlMaxIndexLength = 551,
SqlDbSchemaNameLength = 552,
SqlMaxProcedureNameLength = 553,
SqlMaxCatalogNameLength = 554,
SqlMaxRowSize = 555,
SqlMaxRowSizeIncludesBlobs = 556,
SqlMaxStatementLength = 557,
SqlMaxStatements = 558,
SqlMaxTableNameLength = 559,
SqlMaxTablesInSelect = 560,
SqlMaxUsernameLength = 561,
SqlDefaultTransactionIsolation = 562,
SqlTransactionsSupported = 563,
SqlSupportedTransactionsIsolationLevels = 564,
SqlDataDefinitionCausesTransactionCommit = 565,
SqlDataDefinitionsInTransactionsIgnored = 566,
SqlSupportedResultSetTypes = 567,
SqlSupportedConcurrenciesForResultSetUnspecified = 568,
SqlSupportedConcurrenciesForResultSetForwardOnly = 569,
SqlSupportedConcurrenciesForResultSetScrollSensitive = 570,
SqlSupportedConcurrenciesForResultSetScrollInsensitive = 571,
SqlBatchUpdatesSupported = 572,
SqlSavepointsSupported = 573,
SqlNamedParametersSupported = 574,
SqlLocatorsUpdateCopy = 575,
SqlStoredFunctionsUsingCallSyntaxSupported = 576,
}
impl SqlInfo {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::FlightSqlServerName => "FLIGHT_SQL_SERVER_NAME",
Self::FlightSqlServerVersion => "FLIGHT_SQL_SERVER_VERSION",
Self::FlightSqlServerArrowVersion => "FLIGHT_SQL_SERVER_ARROW_VERSION",
Self::FlightSqlServerReadOnly => "FLIGHT_SQL_SERVER_READ_ONLY",
Self::FlightSqlServerSql => "FLIGHT_SQL_SERVER_SQL",
Self::FlightSqlServerSubstrait => "FLIGHT_SQL_SERVER_SUBSTRAIT",
Self::FlightSqlServerSubstraitMinVersion => {
"FLIGHT_SQL_SERVER_SUBSTRAIT_MIN_VERSION"
}
Self::FlightSqlServerSubstraitMaxVersion => {
"FLIGHT_SQL_SERVER_SUBSTRAIT_MAX_VERSION"
}
Self::FlightSqlServerTransaction => "FLIGHT_SQL_SERVER_TRANSACTION",
Self::FlightSqlServerCancel => "FLIGHT_SQL_SERVER_CANCEL",
Self::FlightSqlServerBulkIngestion => "FLIGHT_SQL_SERVER_BULK_INGESTION",
Self::FlightSqlServerIngestTransactionsSupported => {
"FLIGHT_SQL_SERVER_INGEST_TRANSACTIONS_SUPPORTED"
}
Self::FlightSqlServerStatementTimeout => {
"FLIGHT_SQL_SERVER_STATEMENT_TIMEOUT"
}
Self::FlightSqlServerTransactionTimeout => {
"FLIGHT_SQL_SERVER_TRANSACTION_TIMEOUT"
}
Self::SqlDdlCatalog => "SQL_DDL_CATALOG",
Self::SqlDdlSchema => "SQL_DDL_SCHEMA",
Self::SqlDdlTable => "SQL_DDL_TABLE",
Self::SqlIdentifierCase => "SQL_IDENTIFIER_CASE",
Self::SqlIdentifierQuoteChar => "SQL_IDENTIFIER_QUOTE_CHAR",
Self::SqlQuotedIdentifierCase => "SQL_QUOTED_IDENTIFIER_CASE",
Self::SqlAllTablesAreSelectable => "SQL_ALL_TABLES_ARE_SELECTABLE",
Self::SqlNullOrdering => "SQL_NULL_ORDERING",
Self::SqlKeywords => "SQL_KEYWORDS",
Self::SqlNumericFunctions => "SQL_NUMERIC_FUNCTIONS",
Self::SqlStringFunctions => "SQL_STRING_FUNCTIONS",
Self::SqlSystemFunctions => "SQL_SYSTEM_FUNCTIONS",
Self::SqlDatetimeFunctions => "SQL_DATETIME_FUNCTIONS",
Self::SqlSearchStringEscape => "SQL_SEARCH_STRING_ESCAPE",
Self::SqlExtraNameCharacters => "SQL_EXTRA_NAME_CHARACTERS",
Self::SqlSupportsColumnAliasing => "SQL_SUPPORTS_COLUMN_ALIASING",
Self::SqlNullPlusNullIsNull => "SQL_NULL_PLUS_NULL_IS_NULL",
Self::SqlSupportsConvert => "SQL_SUPPORTS_CONVERT",
Self::SqlSupportsTableCorrelationNames => {
"SQL_SUPPORTS_TABLE_CORRELATION_NAMES"
}
Self::SqlSupportsDifferentTableCorrelationNames => {
"SQL_SUPPORTS_DIFFERENT_TABLE_CORRELATION_NAMES"
}
Self::SqlSupportsExpressionsInOrderBy => {
"SQL_SUPPORTS_EXPRESSIONS_IN_ORDER_BY"
}
Self::SqlSupportsOrderByUnrelated => "SQL_SUPPORTS_ORDER_BY_UNRELATED",
Self::SqlSupportedGroupBy => "SQL_SUPPORTED_GROUP_BY",
Self::SqlSupportsLikeEscapeClause => "SQL_SUPPORTS_LIKE_ESCAPE_CLAUSE",
Self::SqlSupportsNonNullableColumns => "SQL_SUPPORTS_NON_NULLABLE_COLUMNS",
Self::SqlSupportedGrammar => "SQL_SUPPORTED_GRAMMAR",
Self::SqlAnsi92SupportedLevel => "SQL_ANSI92_SUPPORTED_LEVEL",
Self::SqlSupportsIntegrityEnhancementFacility => {
"SQL_SUPPORTS_INTEGRITY_ENHANCEMENT_FACILITY"
}
Self::SqlOuterJoinsSupportLevel => "SQL_OUTER_JOINS_SUPPORT_LEVEL",
Self::SqlSchemaTerm => "SQL_SCHEMA_TERM",
Self::SqlProcedureTerm => "SQL_PROCEDURE_TERM",
Self::SqlCatalogTerm => "SQL_CATALOG_TERM",
Self::SqlCatalogAtStart => "SQL_CATALOG_AT_START",
Self::SqlSchemasSupportedActions => "SQL_SCHEMAS_SUPPORTED_ACTIONS",
Self::SqlCatalogsSupportedActions => "SQL_CATALOGS_SUPPORTED_ACTIONS",
Self::SqlSupportedPositionedCommands => "SQL_SUPPORTED_POSITIONED_COMMANDS",
Self::SqlSelectForUpdateSupported => "SQL_SELECT_FOR_UPDATE_SUPPORTED",
Self::SqlStoredProceduresSupported => "SQL_STORED_PROCEDURES_SUPPORTED",
Self::SqlSupportedSubqueries => "SQL_SUPPORTED_SUBQUERIES",
Self::SqlCorrelatedSubqueriesSupported => {
"SQL_CORRELATED_SUBQUERIES_SUPPORTED"
}
Self::SqlSupportedUnions => "SQL_SUPPORTED_UNIONS",
Self::SqlMaxBinaryLiteralLength => "SQL_MAX_BINARY_LITERAL_LENGTH",
Self::SqlMaxCharLiteralLength => "SQL_MAX_CHAR_LITERAL_LENGTH",
Self::SqlMaxColumnNameLength => "SQL_MAX_COLUMN_NAME_LENGTH",
Self::SqlMaxColumnsInGroupBy => "SQL_MAX_COLUMNS_IN_GROUP_BY",
Self::SqlMaxColumnsInIndex => "SQL_MAX_COLUMNS_IN_INDEX",
Self::SqlMaxColumnsInOrderBy => "SQL_MAX_COLUMNS_IN_ORDER_BY",
Self::SqlMaxColumnsInSelect => "SQL_MAX_COLUMNS_IN_SELECT",
Self::SqlMaxColumnsInTable => "SQL_MAX_COLUMNS_IN_TABLE",
Self::SqlMaxConnections => "SQL_MAX_CONNECTIONS",
Self::SqlMaxCursorNameLength => "SQL_MAX_CURSOR_NAME_LENGTH",
Self::SqlMaxIndexLength => "SQL_MAX_INDEX_LENGTH",
Self::SqlDbSchemaNameLength => "SQL_DB_SCHEMA_NAME_LENGTH",
Self::SqlMaxProcedureNameLength => "SQL_MAX_PROCEDURE_NAME_LENGTH",
Self::SqlMaxCatalogNameLength => "SQL_MAX_CATALOG_NAME_LENGTH",
Self::SqlMaxRowSize => "SQL_MAX_ROW_SIZE",
Self::SqlMaxRowSizeIncludesBlobs => "SQL_MAX_ROW_SIZE_INCLUDES_BLOBS",
Self::SqlMaxStatementLength => "SQL_MAX_STATEMENT_LENGTH",
Self::SqlMaxStatements => "SQL_MAX_STATEMENTS",
Self::SqlMaxTableNameLength => "SQL_MAX_TABLE_NAME_LENGTH",
Self::SqlMaxTablesInSelect => "SQL_MAX_TABLES_IN_SELECT",
Self::SqlMaxUsernameLength => "SQL_MAX_USERNAME_LENGTH",
Self::SqlDefaultTransactionIsolation => "SQL_DEFAULT_TRANSACTION_ISOLATION",
Self::SqlTransactionsSupported => "SQL_TRANSACTIONS_SUPPORTED",
Self::SqlSupportedTransactionsIsolationLevels => {
"SQL_SUPPORTED_TRANSACTIONS_ISOLATION_LEVELS"
}
Self::SqlDataDefinitionCausesTransactionCommit => {
"SQL_DATA_DEFINITION_CAUSES_TRANSACTION_COMMIT"
}
Self::SqlDataDefinitionsInTransactionsIgnored => {
"SQL_DATA_DEFINITIONS_IN_TRANSACTIONS_IGNORED"
}
Self::SqlSupportedResultSetTypes => "SQL_SUPPORTED_RESULT_SET_TYPES",
Self::SqlSupportedConcurrenciesForResultSetUnspecified => {
"SQL_SUPPORTED_CONCURRENCIES_FOR_RESULT_SET_UNSPECIFIED"
}
Self::SqlSupportedConcurrenciesForResultSetForwardOnly => {
"SQL_SUPPORTED_CONCURRENCIES_FOR_RESULT_SET_FORWARD_ONLY"
}
Self::SqlSupportedConcurrenciesForResultSetScrollSensitive => {
"SQL_SUPPORTED_CONCURRENCIES_FOR_RESULT_SET_SCROLL_SENSITIVE"
}
Self::SqlSupportedConcurrenciesForResultSetScrollInsensitive => {
"SQL_SUPPORTED_CONCURRENCIES_FOR_RESULT_SET_SCROLL_INSENSITIVE"
}
Self::SqlBatchUpdatesSupported => "SQL_BATCH_UPDATES_SUPPORTED",
Self::SqlSavepointsSupported => "SQL_SAVEPOINTS_SUPPORTED",
Self::SqlNamedParametersSupported => "SQL_NAMED_PARAMETERS_SUPPORTED",
Self::SqlLocatorsUpdateCopy => "SQL_LOCATORS_UPDATE_COPY",
Self::SqlStoredFunctionsUsingCallSyntaxSupported => {
"SQL_STORED_FUNCTIONS_USING_CALL_SYNTAX_SUPPORTED"
}
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"FLIGHT_SQL_SERVER_NAME" => Some(Self::FlightSqlServerName),
"FLIGHT_SQL_SERVER_VERSION" => Some(Self::FlightSqlServerVersion),
"FLIGHT_SQL_SERVER_ARROW_VERSION" => Some(Self::FlightSqlServerArrowVersion),
"FLIGHT_SQL_SERVER_READ_ONLY" => Some(Self::FlightSqlServerReadOnly),
"FLIGHT_SQL_SERVER_SQL" => Some(Self::FlightSqlServerSql),
"FLIGHT_SQL_SERVER_SUBSTRAIT" => Some(Self::FlightSqlServerSubstrait),
"FLIGHT_SQL_SERVER_SUBSTRAIT_MIN_VERSION" => {
Some(Self::FlightSqlServerSubstraitMinVersion)
}
"FLIGHT_SQL_SERVER_SUBSTRAIT_MAX_VERSION" => {
Some(Self::FlightSqlServerSubstraitMaxVersion)
}
"FLIGHT_SQL_SERVER_TRANSACTION" => Some(Self::FlightSqlServerTransaction),
"FLIGHT_SQL_SERVER_CANCEL" => Some(Self::FlightSqlServerCancel),
"FLIGHT_SQL_SERVER_BULK_INGESTION" => {
Some(Self::FlightSqlServerBulkIngestion)
}
"FLIGHT_SQL_SERVER_INGEST_TRANSACTIONS_SUPPORTED" => {
Some(Self::FlightSqlServerIngestTransactionsSupported)
}
"FLIGHT_SQL_SERVER_STATEMENT_TIMEOUT" => {
Some(Self::FlightSqlServerStatementTimeout)
}
"FLIGHT_SQL_SERVER_TRANSACTION_TIMEOUT" => {
Some(Self::FlightSqlServerTransactionTimeout)
}
"SQL_DDL_CATALOG" => Some(Self::SqlDdlCatalog),
"SQL_DDL_SCHEMA" => Some(Self::SqlDdlSchema),
"SQL_DDL_TABLE" => Some(Self::SqlDdlTable),
"SQL_IDENTIFIER_CASE" => Some(Self::SqlIdentifierCase),
"SQL_IDENTIFIER_QUOTE_CHAR" => Some(Self::SqlIdentifierQuoteChar),
"SQL_QUOTED_IDENTIFIER_CASE" => Some(Self::SqlQuotedIdentifierCase),
"SQL_ALL_TABLES_ARE_SELECTABLE" => Some(Self::SqlAllTablesAreSelectable),
"SQL_NULL_ORDERING" => Some(Self::SqlNullOrdering),
"SQL_KEYWORDS" => Some(Self::SqlKeywords),
"SQL_NUMERIC_FUNCTIONS" => Some(Self::SqlNumericFunctions),
"SQL_STRING_FUNCTIONS" => Some(Self::SqlStringFunctions),
"SQL_SYSTEM_FUNCTIONS" => Some(Self::SqlSystemFunctions),
"SQL_DATETIME_FUNCTIONS" => Some(Self::SqlDatetimeFunctions),
"SQL_SEARCH_STRING_ESCAPE" => Some(Self::SqlSearchStringEscape),
"SQL_EXTRA_NAME_CHARACTERS" => Some(Self::SqlExtraNameCharacters),
"SQL_SUPPORTS_COLUMN_ALIASING" => Some(Self::SqlSupportsColumnAliasing),
"SQL_NULL_PLUS_NULL_IS_NULL" => Some(Self::SqlNullPlusNullIsNull),
"SQL_SUPPORTS_CONVERT" => Some(Self::SqlSupportsConvert),
"SQL_SUPPORTS_TABLE_CORRELATION_NAMES" => {
Some(Self::SqlSupportsTableCorrelationNames)
}
"SQL_SUPPORTS_DIFFERENT_TABLE_CORRELATION_NAMES" => {
Some(Self::SqlSupportsDifferentTableCorrelationNames)
}
"SQL_SUPPORTS_EXPRESSIONS_IN_ORDER_BY" => {
Some(Self::SqlSupportsExpressionsInOrderBy)
}
"SQL_SUPPORTS_ORDER_BY_UNRELATED" => Some(Self::SqlSupportsOrderByUnrelated),
"SQL_SUPPORTED_GROUP_BY" => Some(Self::SqlSupportedGroupBy),
"SQL_SUPPORTS_LIKE_ESCAPE_CLAUSE" => Some(Self::SqlSupportsLikeEscapeClause),
"SQL_SUPPORTS_NON_NULLABLE_COLUMNS" => {
Some(Self::SqlSupportsNonNullableColumns)
}
"SQL_SUPPORTED_GRAMMAR" => Some(Self::SqlSupportedGrammar),
"SQL_ANSI92_SUPPORTED_LEVEL" => Some(Self::SqlAnsi92SupportedLevel),
"SQL_SUPPORTS_INTEGRITY_ENHANCEMENT_FACILITY" => {
Some(Self::SqlSupportsIntegrityEnhancementFacility)
}
"SQL_OUTER_JOINS_SUPPORT_LEVEL" => Some(Self::SqlOuterJoinsSupportLevel),
"SQL_SCHEMA_TERM" => Some(Self::SqlSchemaTerm),
"SQL_PROCEDURE_TERM" => Some(Self::SqlProcedureTerm),
"SQL_CATALOG_TERM" => Some(Self::SqlCatalogTerm),
"SQL_CATALOG_AT_START" => Some(Self::SqlCatalogAtStart),
"SQL_SCHEMAS_SUPPORTED_ACTIONS" => Some(Self::SqlSchemasSupportedActions),
"SQL_CATALOGS_SUPPORTED_ACTIONS" => Some(Self::SqlCatalogsSupportedActions),
"SQL_SUPPORTED_POSITIONED_COMMANDS" => {
Some(Self::SqlSupportedPositionedCommands)
}
"SQL_SELECT_FOR_UPDATE_SUPPORTED" => Some(Self::SqlSelectForUpdateSupported),
"SQL_STORED_PROCEDURES_SUPPORTED" => Some(Self::SqlStoredProceduresSupported),
"SQL_SUPPORTED_SUBQUERIES" => Some(Self::SqlSupportedSubqueries),
"SQL_CORRELATED_SUBQUERIES_SUPPORTED" => {
Some(Self::SqlCorrelatedSubqueriesSupported)
}
"SQL_SUPPORTED_UNIONS" => Some(Self::SqlSupportedUnions),
"SQL_MAX_BINARY_LITERAL_LENGTH" => Some(Self::SqlMaxBinaryLiteralLength),
"SQL_MAX_CHAR_LITERAL_LENGTH" => Some(Self::SqlMaxCharLiteralLength),
"SQL_MAX_COLUMN_NAME_LENGTH" => Some(Self::SqlMaxColumnNameLength),
"SQL_MAX_COLUMNS_IN_GROUP_BY" => Some(Self::SqlMaxColumnsInGroupBy),
"SQL_MAX_COLUMNS_IN_INDEX" => Some(Self::SqlMaxColumnsInIndex),
"SQL_MAX_COLUMNS_IN_ORDER_BY" => Some(Self::SqlMaxColumnsInOrderBy),
"SQL_MAX_COLUMNS_IN_SELECT" => Some(Self::SqlMaxColumnsInSelect),
"SQL_MAX_COLUMNS_IN_TABLE" => Some(Self::SqlMaxColumnsInTable),
"SQL_MAX_CONNECTIONS" => Some(Self::SqlMaxConnections),
"SQL_MAX_CURSOR_NAME_LENGTH" => Some(Self::SqlMaxCursorNameLength),
"SQL_MAX_INDEX_LENGTH" => Some(Self::SqlMaxIndexLength),
"SQL_DB_SCHEMA_NAME_LENGTH" => Some(Self::SqlDbSchemaNameLength),
"SQL_MAX_PROCEDURE_NAME_LENGTH" => Some(Self::SqlMaxProcedureNameLength),
"SQL_MAX_CATALOG_NAME_LENGTH" => Some(Self::SqlMaxCatalogNameLength),
"SQL_MAX_ROW_SIZE" => Some(Self::SqlMaxRowSize),
"SQL_MAX_ROW_SIZE_INCLUDES_BLOBS" => Some(Self::SqlMaxRowSizeIncludesBlobs),
"SQL_MAX_STATEMENT_LENGTH" => Some(Self::SqlMaxStatementLength),
"SQL_MAX_STATEMENTS" => Some(Self::SqlMaxStatements),
"SQL_MAX_TABLE_NAME_LENGTH" => Some(Self::SqlMaxTableNameLength),
"SQL_MAX_TABLES_IN_SELECT" => Some(Self::SqlMaxTablesInSelect),
"SQL_MAX_USERNAME_LENGTH" => Some(Self::SqlMaxUsernameLength),
"SQL_DEFAULT_TRANSACTION_ISOLATION" => {
Some(Self::SqlDefaultTransactionIsolation)
}
"SQL_TRANSACTIONS_SUPPORTED" => Some(Self::SqlTransactionsSupported),
"SQL_SUPPORTED_TRANSACTIONS_ISOLATION_LEVELS" => {
Some(Self::SqlSupportedTransactionsIsolationLevels)
}
"SQL_DATA_DEFINITION_CAUSES_TRANSACTION_COMMIT" => {
Some(Self::SqlDataDefinitionCausesTransactionCommit)
}
"SQL_DATA_DEFINITIONS_IN_TRANSACTIONS_IGNORED" => {
Some(Self::SqlDataDefinitionsInTransactionsIgnored)
}
"SQL_SUPPORTED_RESULT_SET_TYPES" => Some(Self::SqlSupportedResultSetTypes),
"SQL_SUPPORTED_CONCURRENCIES_FOR_RESULT_SET_UNSPECIFIED" => {
Some(Self::SqlSupportedConcurrenciesForResultSetUnspecified)
}
"SQL_SUPPORTED_CONCURRENCIES_FOR_RESULT_SET_FORWARD_ONLY" => {
Some(Self::SqlSupportedConcurrenciesForResultSetForwardOnly)
}
"SQL_SUPPORTED_CONCURRENCIES_FOR_RESULT_SET_SCROLL_SENSITIVE" => {
Some(Self::SqlSupportedConcurrenciesForResultSetScrollSensitive)
}
"SQL_SUPPORTED_CONCURRENCIES_FOR_RESULT_SET_SCROLL_INSENSITIVE" => {
Some(Self::SqlSupportedConcurrenciesForResultSetScrollInsensitive)
}
"SQL_BATCH_UPDATES_SUPPORTED" => Some(Self::SqlBatchUpdatesSupported),
"SQL_SAVEPOINTS_SUPPORTED" => Some(Self::SqlSavepointsSupported),
"SQL_NAMED_PARAMETERS_SUPPORTED" => Some(Self::SqlNamedParametersSupported),
"SQL_LOCATORS_UPDATE_COPY" => Some(Self::SqlLocatorsUpdateCopy),
"SQL_STORED_FUNCTIONS_USING_CALL_SYNTAX_SUPPORTED" => {
Some(Self::SqlStoredFunctionsUsingCallSyntaxSupported)
}
_ => None,
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum SqlSupportedTransaction {
None = 0,
Transaction = 1,
Savepoint = 2,
}
impl SqlSupportedTransaction {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::None => "SQL_SUPPORTED_TRANSACTION_NONE",
Self::Transaction => "SQL_SUPPORTED_TRANSACTION_TRANSACTION",
Self::Savepoint => "SQL_SUPPORTED_TRANSACTION_SAVEPOINT",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"SQL_SUPPORTED_TRANSACTION_NONE" => Some(Self::None),
"SQL_SUPPORTED_TRANSACTION_TRANSACTION" => Some(Self::Transaction),
"SQL_SUPPORTED_TRANSACTION_SAVEPOINT" => Some(Self::Savepoint),
_ => None,
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum SqlSupportedCaseSensitivity {
SqlCaseSensitivityUnknown = 0,
SqlCaseSensitivityCaseInsensitive = 1,
SqlCaseSensitivityUppercase = 2,
SqlCaseSensitivityLowercase = 3,
}
impl SqlSupportedCaseSensitivity {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::SqlCaseSensitivityUnknown => "SQL_CASE_SENSITIVITY_UNKNOWN",
Self::SqlCaseSensitivityCaseInsensitive => {
"SQL_CASE_SENSITIVITY_CASE_INSENSITIVE"
}
Self::SqlCaseSensitivityUppercase => "SQL_CASE_SENSITIVITY_UPPERCASE",
Self::SqlCaseSensitivityLowercase => "SQL_CASE_SENSITIVITY_LOWERCASE",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"SQL_CASE_SENSITIVITY_UNKNOWN" => Some(Self::SqlCaseSensitivityUnknown),
"SQL_CASE_SENSITIVITY_CASE_INSENSITIVE" => {
Some(Self::SqlCaseSensitivityCaseInsensitive)
}
"SQL_CASE_SENSITIVITY_UPPERCASE" => Some(Self::SqlCaseSensitivityUppercase),
"SQL_CASE_SENSITIVITY_LOWERCASE" => Some(Self::SqlCaseSensitivityLowercase),
_ => None,
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum SqlNullOrdering {
SqlNullsSortedHigh = 0,
SqlNullsSortedLow = 1,
SqlNullsSortedAtStart = 2,
SqlNullsSortedAtEnd = 3,
}
impl SqlNullOrdering {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::SqlNullsSortedHigh => "SQL_NULLS_SORTED_HIGH",
Self::SqlNullsSortedLow => "SQL_NULLS_SORTED_LOW",
Self::SqlNullsSortedAtStart => "SQL_NULLS_SORTED_AT_START",
Self::SqlNullsSortedAtEnd => "SQL_NULLS_SORTED_AT_END",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"SQL_NULLS_SORTED_HIGH" => Some(Self::SqlNullsSortedHigh),
"SQL_NULLS_SORTED_LOW" => Some(Self::SqlNullsSortedLow),
"SQL_NULLS_SORTED_AT_START" => Some(Self::SqlNullsSortedAtStart),
"SQL_NULLS_SORTED_AT_END" => Some(Self::SqlNullsSortedAtEnd),
_ => None,
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum SupportedSqlGrammar {
SqlMinimumGrammar = 0,
SqlCoreGrammar = 1,
SqlExtendedGrammar = 2,
}
impl SupportedSqlGrammar {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::SqlMinimumGrammar => "SQL_MINIMUM_GRAMMAR",
Self::SqlCoreGrammar => "SQL_CORE_GRAMMAR",
Self::SqlExtendedGrammar => "SQL_EXTENDED_GRAMMAR",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"SQL_MINIMUM_GRAMMAR" => Some(Self::SqlMinimumGrammar),
"SQL_CORE_GRAMMAR" => Some(Self::SqlCoreGrammar),
"SQL_EXTENDED_GRAMMAR" => Some(Self::SqlExtendedGrammar),
_ => None,
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum SupportedAnsi92SqlGrammarLevel {
Ansi92EntrySql = 0,
Ansi92IntermediateSql = 1,
Ansi92FullSql = 2,
}
impl SupportedAnsi92SqlGrammarLevel {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Ansi92EntrySql => "ANSI92_ENTRY_SQL",
Self::Ansi92IntermediateSql => "ANSI92_INTERMEDIATE_SQL",
Self::Ansi92FullSql => "ANSI92_FULL_SQL",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"ANSI92_ENTRY_SQL" => Some(Self::Ansi92EntrySql),
"ANSI92_INTERMEDIATE_SQL" => Some(Self::Ansi92IntermediateSql),
"ANSI92_FULL_SQL" => Some(Self::Ansi92FullSql),
_ => None,
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum SqlOuterJoinsSupportLevel {
SqlJoinsUnsupported = 0,
SqlLimitedOuterJoins = 1,
SqlFullOuterJoins = 2,
}
impl SqlOuterJoinsSupportLevel {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::SqlJoinsUnsupported => "SQL_JOINS_UNSUPPORTED",
Self::SqlLimitedOuterJoins => "SQL_LIMITED_OUTER_JOINS",
Self::SqlFullOuterJoins => "SQL_FULL_OUTER_JOINS",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"SQL_JOINS_UNSUPPORTED" => Some(Self::SqlJoinsUnsupported),
"SQL_LIMITED_OUTER_JOINS" => Some(Self::SqlLimitedOuterJoins),
"SQL_FULL_OUTER_JOINS" => Some(Self::SqlFullOuterJoins),
_ => None,
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum SqlSupportedGroupBy {
SqlGroupByUnrelated = 0,
SqlGroupByBeyondSelect = 1,
}
impl SqlSupportedGroupBy {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::SqlGroupByUnrelated => "SQL_GROUP_BY_UNRELATED",
Self::SqlGroupByBeyondSelect => "SQL_GROUP_BY_BEYOND_SELECT",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"SQL_GROUP_BY_UNRELATED" => Some(Self::SqlGroupByUnrelated),
"SQL_GROUP_BY_BEYOND_SELECT" => Some(Self::SqlGroupByBeyondSelect),
_ => None,
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum SqlSupportedElementActions {
SqlElementInProcedureCalls = 0,
SqlElementInIndexDefinitions = 1,
SqlElementInPrivilegeDefinitions = 2,
}
impl SqlSupportedElementActions {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::SqlElementInProcedureCalls => "SQL_ELEMENT_IN_PROCEDURE_CALLS",
Self::SqlElementInIndexDefinitions => "SQL_ELEMENT_IN_INDEX_DEFINITIONS",
Self::SqlElementInPrivilegeDefinitions => {
"SQL_ELEMENT_IN_PRIVILEGE_DEFINITIONS"
}
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"SQL_ELEMENT_IN_PROCEDURE_CALLS" => Some(Self::SqlElementInProcedureCalls),
"SQL_ELEMENT_IN_INDEX_DEFINITIONS" => {
Some(Self::SqlElementInIndexDefinitions)
}
"SQL_ELEMENT_IN_PRIVILEGE_DEFINITIONS" => {
Some(Self::SqlElementInPrivilegeDefinitions)
}
_ => None,
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum SqlSupportedPositionedCommands {
SqlPositionedDelete = 0,
SqlPositionedUpdate = 1,
}
impl SqlSupportedPositionedCommands {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::SqlPositionedDelete => "SQL_POSITIONED_DELETE",
Self::SqlPositionedUpdate => "SQL_POSITIONED_UPDATE",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"SQL_POSITIONED_DELETE" => Some(Self::SqlPositionedDelete),
"SQL_POSITIONED_UPDATE" => Some(Self::SqlPositionedUpdate),
_ => None,
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum SqlSupportedSubqueries {
SqlSubqueriesInComparisons = 0,
SqlSubqueriesInExists = 1,
SqlSubqueriesInIns = 2,
SqlSubqueriesInQuantifieds = 3,
}
impl SqlSupportedSubqueries {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::SqlSubqueriesInComparisons => "SQL_SUBQUERIES_IN_COMPARISONS",
Self::SqlSubqueriesInExists => "SQL_SUBQUERIES_IN_EXISTS",
Self::SqlSubqueriesInIns => "SQL_SUBQUERIES_IN_INS",
Self::SqlSubqueriesInQuantifieds => "SQL_SUBQUERIES_IN_QUANTIFIEDS",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"SQL_SUBQUERIES_IN_COMPARISONS" => Some(Self::SqlSubqueriesInComparisons),
"SQL_SUBQUERIES_IN_EXISTS" => Some(Self::SqlSubqueriesInExists),
"SQL_SUBQUERIES_IN_INS" => Some(Self::SqlSubqueriesInIns),
"SQL_SUBQUERIES_IN_QUANTIFIEDS" => Some(Self::SqlSubqueriesInQuantifieds),
_ => None,
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum SqlSupportedUnions {
SqlUnion = 0,
SqlUnionAll = 1,
}
impl SqlSupportedUnions {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::SqlUnion => "SQL_UNION",
Self::SqlUnionAll => "SQL_UNION_ALL",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"SQL_UNION" => Some(Self::SqlUnion),
"SQL_UNION_ALL" => Some(Self::SqlUnionAll),
_ => None,
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum SqlTransactionIsolationLevel {
SqlTransactionNone = 0,
SqlTransactionReadUncommitted = 1,
SqlTransactionReadCommitted = 2,
SqlTransactionRepeatableRead = 3,
SqlTransactionSerializable = 4,
}
impl SqlTransactionIsolationLevel {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::SqlTransactionNone => "SQL_TRANSACTION_NONE",
Self::SqlTransactionReadUncommitted => "SQL_TRANSACTION_READ_UNCOMMITTED",
Self::SqlTransactionReadCommitted => "SQL_TRANSACTION_READ_COMMITTED",
Self::SqlTransactionRepeatableRead => "SQL_TRANSACTION_REPEATABLE_READ",
Self::SqlTransactionSerializable => "SQL_TRANSACTION_SERIALIZABLE",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"SQL_TRANSACTION_NONE" => Some(Self::SqlTransactionNone),
"SQL_TRANSACTION_READ_UNCOMMITTED" => {
Some(Self::SqlTransactionReadUncommitted)
}
"SQL_TRANSACTION_READ_COMMITTED" => Some(Self::SqlTransactionReadCommitted),
"SQL_TRANSACTION_REPEATABLE_READ" => Some(Self::SqlTransactionRepeatableRead),
"SQL_TRANSACTION_SERIALIZABLE" => Some(Self::SqlTransactionSerializable),
_ => None,
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum SqlSupportedTransactions {
SqlTransactionUnspecified = 0,
SqlDataDefinitionTransactions = 1,
SqlDataManipulationTransactions = 2,
}
impl SqlSupportedTransactions {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::SqlTransactionUnspecified => "SQL_TRANSACTION_UNSPECIFIED",
Self::SqlDataDefinitionTransactions => "SQL_DATA_DEFINITION_TRANSACTIONS",
Self::SqlDataManipulationTransactions => "SQL_DATA_MANIPULATION_TRANSACTIONS",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"SQL_TRANSACTION_UNSPECIFIED" => Some(Self::SqlTransactionUnspecified),
"SQL_DATA_DEFINITION_TRANSACTIONS" => {
Some(Self::SqlDataDefinitionTransactions)
}
"SQL_DATA_MANIPULATION_TRANSACTIONS" => {
Some(Self::SqlDataManipulationTransactions)
}
_ => None,
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum SqlSupportedResultSetType {
SqlResultSetTypeUnspecified = 0,
SqlResultSetTypeForwardOnly = 1,
SqlResultSetTypeScrollInsensitive = 2,
SqlResultSetTypeScrollSensitive = 3,
}
impl SqlSupportedResultSetType {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::SqlResultSetTypeUnspecified => "SQL_RESULT_SET_TYPE_UNSPECIFIED",
Self::SqlResultSetTypeForwardOnly => "SQL_RESULT_SET_TYPE_FORWARD_ONLY",
Self::SqlResultSetTypeScrollInsensitive => {
"SQL_RESULT_SET_TYPE_SCROLL_INSENSITIVE"
}
Self::SqlResultSetTypeScrollSensitive => {
"SQL_RESULT_SET_TYPE_SCROLL_SENSITIVE"
}
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"SQL_RESULT_SET_TYPE_UNSPECIFIED" => Some(Self::SqlResultSetTypeUnspecified),
"SQL_RESULT_SET_TYPE_FORWARD_ONLY" => Some(Self::SqlResultSetTypeForwardOnly),
"SQL_RESULT_SET_TYPE_SCROLL_INSENSITIVE" => {
Some(Self::SqlResultSetTypeScrollInsensitive)
}
"SQL_RESULT_SET_TYPE_SCROLL_SENSITIVE" => {
Some(Self::SqlResultSetTypeScrollSensitive)
}
_ => None,
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum SqlSupportedResultSetConcurrency {
SqlResultSetConcurrencyUnspecified = 0,
SqlResultSetConcurrencyReadOnly = 1,
SqlResultSetConcurrencyUpdatable = 2,
}
impl SqlSupportedResultSetConcurrency {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::SqlResultSetConcurrencyUnspecified => {
"SQL_RESULT_SET_CONCURRENCY_UNSPECIFIED"
}
Self::SqlResultSetConcurrencyReadOnly => {
"SQL_RESULT_SET_CONCURRENCY_READ_ONLY"
}
Self::SqlResultSetConcurrencyUpdatable => {
"SQL_RESULT_SET_CONCURRENCY_UPDATABLE"
}
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"SQL_RESULT_SET_CONCURRENCY_UNSPECIFIED" => {
Some(Self::SqlResultSetConcurrencyUnspecified)
}
"SQL_RESULT_SET_CONCURRENCY_READ_ONLY" => {
Some(Self::SqlResultSetConcurrencyReadOnly)
}
"SQL_RESULT_SET_CONCURRENCY_UPDATABLE" => {
Some(Self::SqlResultSetConcurrencyUpdatable)
}
_ => None,
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum SqlSupportsConvert {
SqlConvertBigint = 0,
SqlConvertBinary = 1,
SqlConvertBit = 2,
SqlConvertChar = 3,
SqlConvertDate = 4,
SqlConvertDecimal = 5,
SqlConvertFloat = 6,
SqlConvertInteger = 7,
SqlConvertIntervalDayTime = 8,
SqlConvertIntervalYearMonth = 9,
SqlConvertLongvarbinary = 10,
SqlConvertLongvarchar = 11,
SqlConvertNumeric = 12,
SqlConvertReal = 13,
SqlConvertSmallint = 14,
SqlConvertTime = 15,
SqlConvertTimestamp = 16,
SqlConvertTinyint = 17,
SqlConvertVarbinary = 18,
SqlConvertVarchar = 19,
}
impl SqlSupportsConvert {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::SqlConvertBigint => "SQL_CONVERT_BIGINT",
Self::SqlConvertBinary => "SQL_CONVERT_BINARY",
Self::SqlConvertBit => "SQL_CONVERT_BIT",
Self::SqlConvertChar => "SQL_CONVERT_CHAR",
Self::SqlConvertDate => "SQL_CONVERT_DATE",
Self::SqlConvertDecimal => "SQL_CONVERT_DECIMAL",
Self::SqlConvertFloat => "SQL_CONVERT_FLOAT",
Self::SqlConvertInteger => "SQL_CONVERT_INTEGER",
Self::SqlConvertIntervalDayTime => "SQL_CONVERT_INTERVAL_DAY_TIME",
Self::SqlConvertIntervalYearMonth => "SQL_CONVERT_INTERVAL_YEAR_MONTH",
Self::SqlConvertLongvarbinary => "SQL_CONVERT_LONGVARBINARY",
Self::SqlConvertLongvarchar => "SQL_CONVERT_LONGVARCHAR",
Self::SqlConvertNumeric => "SQL_CONVERT_NUMERIC",
Self::SqlConvertReal => "SQL_CONVERT_REAL",
Self::SqlConvertSmallint => "SQL_CONVERT_SMALLINT",
Self::SqlConvertTime => "SQL_CONVERT_TIME",
Self::SqlConvertTimestamp => "SQL_CONVERT_TIMESTAMP",
Self::SqlConvertTinyint => "SQL_CONVERT_TINYINT",
Self::SqlConvertVarbinary => "SQL_CONVERT_VARBINARY",
Self::SqlConvertVarchar => "SQL_CONVERT_VARCHAR",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"SQL_CONVERT_BIGINT" => Some(Self::SqlConvertBigint),
"SQL_CONVERT_BINARY" => Some(Self::SqlConvertBinary),
"SQL_CONVERT_BIT" => Some(Self::SqlConvertBit),
"SQL_CONVERT_CHAR" => Some(Self::SqlConvertChar),
"SQL_CONVERT_DATE" => Some(Self::SqlConvertDate),
"SQL_CONVERT_DECIMAL" => Some(Self::SqlConvertDecimal),
"SQL_CONVERT_FLOAT" => Some(Self::SqlConvertFloat),
"SQL_CONVERT_INTEGER" => Some(Self::SqlConvertInteger),
"SQL_CONVERT_INTERVAL_DAY_TIME" => Some(Self::SqlConvertIntervalDayTime),
"SQL_CONVERT_INTERVAL_YEAR_MONTH" => Some(Self::SqlConvertIntervalYearMonth),
"SQL_CONVERT_LONGVARBINARY" => Some(Self::SqlConvertLongvarbinary),
"SQL_CONVERT_LONGVARCHAR" => Some(Self::SqlConvertLongvarchar),
"SQL_CONVERT_NUMERIC" => Some(Self::SqlConvertNumeric),
"SQL_CONVERT_REAL" => Some(Self::SqlConvertReal),
"SQL_CONVERT_SMALLINT" => Some(Self::SqlConvertSmallint),
"SQL_CONVERT_TIME" => Some(Self::SqlConvertTime),
"SQL_CONVERT_TIMESTAMP" => Some(Self::SqlConvertTimestamp),
"SQL_CONVERT_TINYINT" => Some(Self::SqlConvertTinyint),
"SQL_CONVERT_VARBINARY" => Some(Self::SqlConvertVarbinary),
"SQL_CONVERT_VARCHAR" => Some(Self::SqlConvertVarchar),
_ => None,
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum XdbcDataType {
XdbcUnknownType = 0,
XdbcChar = 1,
XdbcNumeric = 2,
XdbcDecimal = 3,
XdbcInteger = 4,
XdbcSmallint = 5,
XdbcFloat = 6,
XdbcReal = 7,
XdbcDouble = 8,
XdbcDatetime = 9,
XdbcInterval = 10,
XdbcVarchar = 12,
XdbcDate = 91,
XdbcTime = 92,
XdbcTimestamp = 93,
XdbcLongvarchar = -1,
XdbcBinary = -2,
XdbcVarbinary = -3,
XdbcLongvarbinary = -4,
XdbcBigint = -5,
XdbcTinyint = -6,
XdbcBit = -7,
XdbcWchar = -8,
XdbcWvarchar = -9,
}
impl XdbcDataType {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::XdbcUnknownType => "XDBC_UNKNOWN_TYPE",
Self::XdbcChar => "XDBC_CHAR",
Self::XdbcNumeric => "XDBC_NUMERIC",
Self::XdbcDecimal => "XDBC_DECIMAL",
Self::XdbcInteger => "XDBC_INTEGER",
Self::XdbcSmallint => "XDBC_SMALLINT",
Self::XdbcFloat => "XDBC_FLOAT",
Self::XdbcReal => "XDBC_REAL",
Self::XdbcDouble => "XDBC_DOUBLE",
Self::XdbcDatetime => "XDBC_DATETIME",
Self::XdbcInterval => "XDBC_INTERVAL",
Self::XdbcVarchar => "XDBC_VARCHAR",
Self::XdbcDate => "XDBC_DATE",
Self::XdbcTime => "XDBC_TIME",
Self::XdbcTimestamp => "XDBC_TIMESTAMP",
Self::XdbcLongvarchar => "XDBC_LONGVARCHAR",
Self::XdbcBinary => "XDBC_BINARY",
Self::XdbcVarbinary => "XDBC_VARBINARY",
Self::XdbcLongvarbinary => "XDBC_LONGVARBINARY",
Self::XdbcBigint => "XDBC_BIGINT",
Self::XdbcTinyint => "XDBC_TINYINT",
Self::XdbcBit => "XDBC_BIT",
Self::XdbcWchar => "XDBC_WCHAR",
Self::XdbcWvarchar => "XDBC_WVARCHAR",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"XDBC_UNKNOWN_TYPE" => Some(Self::XdbcUnknownType),
"XDBC_CHAR" => Some(Self::XdbcChar),
"XDBC_NUMERIC" => Some(Self::XdbcNumeric),
"XDBC_DECIMAL" => Some(Self::XdbcDecimal),
"XDBC_INTEGER" => Some(Self::XdbcInteger),
"XDBC_SMALLINT" => Some(Self::XdbcSmallint),
"XDBC_FLOAT" => Some(Self::XdbcFloat),
"XDBC_REAL" => Some(Self::XdbcReal),
"XDBC_DOUBLE" => Some(Self::XdbcDouble),
"XDBC_DATETIME" => Some(Self::XdbcDatetime),
"XDBC_INTERVAL" => Some(Self::XdbcInterval),
"XDBC_VARCHAR" => Some(Self::XdbcVarchar),
"XDBC_DATE" => Some(Self::XdbcDate),
"XDBC_TIME" => Some(Self::XdbcTime),
"XDBC_TIMESTAMP" => Some(Self::XdbcTimestamp),
"XDBC_LONGVARCHAR" => Some(Self::XdbcLongvarchar),
"XDBC_BINARY" => Some(Self::XdbcBinary),
"XDBC_VARBINARY" => Some(Self::XdbcVarbinary),
"XDBC_LONGVARBINARY" => Some(Self::XdbcLongvarbinary),
"XDBC_BIGINT" => Some(Self::XdbcBigint),
"XDBC_TINYINT" => Some(Self::XdbcTinyint),
"XDBC_BIT" => Some(Self::XdbcBit),
"XDBC_WCHAR" => Some(Self::XdbcWchar),
"XDBC_WVARCHAR" => Some(Self::XdbcWvarchar),
_ => None,
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum XdbcDatetimeSubcode {
XdbcSubcodeUnknown = 0,
XdbcSubcodeYear = 1,
XdbcSubcodeTime = 2,
XdbcSubcodeTimestamp = 3,
XdbcSubcodeTimeWithTimezone = 4,
XdbcSubcodeTimestampWithTimezone = 5,
XdbcSubcodeSecond = 6,
XdbcSubcodeYearToMonth = 7,
XdbcSubcodeDayToHour = 8,
XdbcSubcodeDayToMinute = 9,
XdbcSubcodeDayToSecond = 10,
XdbcSubcodeHourToMinute = 11,
XdbcSubcodeHourToSecond = 12,
XdbcSubcodeMinuteToSecond = 13,
XdbcSubcodeIntervalYear = 101,
XdbcSubcodeIntervalMonth = 102,
XdbcSubcodeIntervalDay = 103,
XdbcSubcodeIntervalHour = 104,
XdbcSubcodeIntervalMinute = 105,
XdbcSubcodeIntervalSecond = 106,
XdbcSubcodeIntervalYearToMonth = 107,
XdbcSubcodeIntervalDayToHour = 108,
XdbcSubcodeIntervalDayToMinute = 109,
XdbcSubcodeIntervalDayToSecond = 110,
XdbcSubcodeIntervalHourToMinute = 111,
XdbcSubcodeIntervalHourToSecond = 112,
XdbcSubcodeIntervalMinuteToSecond = 113,
}
impl XdbcDatetimeSubcode {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::XdbcSubcodeUnknown => "XDBC_SUBCODE_UNKNOWN",
Self::XdbcSubcodeYear => "XDBC_SUBCODE_YEAR",
Self::XdbcSubcodeTime => "XDBC_SUBCODE_TIME",
Self::XdbcSubcodeTimestamp => "XDBC_SUBCODE_TIMESTAMP",
Self::XdbcSubcodeTimeWithTimezone => "XDBC_SUBCODE_TIME_WITH_TIMEZONE",
Self::XdbcSubcodeTimestampWithTimezone => {
"XDBC_SUBCODE_TIMESTAMP_WITH_TIMEZONE"
}
Self::XdbcSubcodeSecond => "XDBC_SUBCODE_SECOND",
Self::XdbcSubcodeYearToMonth => "XDBC_SUBCODE_YEAR_TO_MONTH",
Self::XdbcSubcodeDayToHour => "XDBC_SUBCODE_DAY_TO_HOUR",
Self::XdbcSubcodeDayToMinute => "XDBC_SUBCODE_DAY_TO_MINUTE",
Self::XdbcSubcodeDayToSecond => "XDBC_SUBCODE_DAY_TO_SECOND",
Self::XdbcSubcodeHourToMinute => "XDBC_SUBCODE_HOUR_TO_MINUTE",
Self::XdbcSubcodeHourToSecond => "XDBC_SUBCODE_HOUR_TO_SECOND",
Self::XdbcSubcodeMinuteToSecond => "XDBC_SUBCODE_MINUTE_TO_SECOND",
Self::XdbcSubcodeIntervalYear => "XDBC_SUBCODE_INTERVAL_YEAR",
Self::XdbcSubcodeIntervalMonth => "XDBC_SUBCODE_INTERVAL_MONTH",
Self::XdbcSubcodeIntervalDay => "XDBC_SUBCODE_INTERVAL_DAY",
Self::XdbcSubcodeIntervalHour => "XDBC_SUBCODE_INTERVAL_HOUR",
Self::XdbcSubcodeIntervalMinute => "XDBC_SUBCODE_INTERVAL_MINUTE",
Self::XdbcSubcodeIntervalSecond => "XDBC_SUBCODE_INTERVAL_SECOND",
Self::XdbcSubcodeIntervalYearToMonth => "XDBC_SUBCODE_INTERVAL_YEAR_TO_MONTH",
Self::XdbcSubcodeIntervalDayToHour => "XDBC_SUBCODE_INTERVAL_DAY_TO_HOUR",
Self::XdbcSubcodeIntervalDayToMinute => "XDBC_SUBCODE_INTERVAL_DAY_TO_MINUTE",
Self::XdbcSubcodeIntervalDayToSecond => "XDBC_SUBCODE_INTERVAL_DAY_TO_SECOND",
Self::XdbcSubcodeIntervalHourToMinute => {
"XDBC_SUBCODE_INTERVAL_HOUR_TO_MINUTE"
}
Self::XdbcSubcodeIntervalHourToSecond => {
"XDBC_SUBCODE_INTERVAL_HOUR_TO_SECOND"
}
Self::XdbcSubcodeIntervalMinuteToSecond => {
"XDBC_SUBCODE_INTERVAL_MINUTE_TO_SECOND"
}
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"XDBC_SUBCODE_UNKNOWN" => Some(Self::XdbcSubcodeUnknown),
"XDBC_SUBCODE_YEAR" => Some(Self::XdbcSubcodeYear),
"XDBC_SUBCODE_TIME" => Some(Self::XdbcSubcodeTime),
"XDBC_SUBCODE_TIMESTAMP" => Some(Self::XdbcSubcodeTimestamp),
"XDBC_SUBCODE_TIME_WITH_TIMEZONE" => Some(Self::XdbcSubcodeTimeWithTimezone),
"XDBC_SUBCODE_TIMESTAMP_WITH_TIMEZONE" => {
Some(Self::XdbcSubcodeTimestampWithTimezone)
}
"XDBC_SUBCODE_SECOND" => Some(Self::XdbcSubcodeSecond),
"XDBC_SUBCODE_YEAR_TO_MONTH" => Some(Self::XdbcSubcodeYearToMonth),
"XDBC_SUBCODE_DAY_TO_HOUR" => Some(Self::XdbcSubcodeDayToHour),
"XDBC_SUBCODE_DAY_TO_MINUTE" => Some(Self::XdbcSubcodeDayToMinute),
"XDBC_SUBCODE_DAY_TO_SECOND" => Some(Self::XdbcSubcodeDayToSecond),
"XDBC_SUBCODE_HOUR_TO_MINUTE" => Some(Self::XdbcSubcodeHourToMinute),
"XDBC_SUBCODE_HOUR_TO_SECOND" => Some(Self::XdbcSubcodeHourToSecond),
"XDBC_SUBCODE_MINUTE_TO_SECOND" => Some(Self::XdbcSubcodeMinuteToSecond),
"XDBC_SUBCODE_INTERVAL_YEAR" => Some(Self::XdbcSubcodeIntervalYear),
"XDBC_SUBCODE_INTERVAL_MONTH" => Some(Self::XdbcSubcodeIntervalMonth),
"XDBC_SUBCODE_INTERVAL_DAY" => Some(Self::XdbcSubcodeIntervalDay),
"XDBC_SUBCODE_INTERVAL_HOUR" => Some(Self::XdbcSubcodeIntervalHour),
"XDBC_SUBCODE_INTERVAL_MINUTE" => Some(Self::XdbcSubcodeIntervalMinute),
"XDBC_SUBCODE_INTERVAL_SECOND" => Some(Self::XdbcSubcodeIntervalSecond),
"XDBC_SUBCODE_INTERVAL_YEAR_TO_MONTH" => {
Some(Self::XdbcSubcodeIntervalYearToMonth)
}
"XDBC_SUBCODE_INTERVAL_DAY_TO_HOUR" => {
Some(Self::XdbcSubcodeIntervalDayToHour)
}
"XDBC_SUBCODE_INTERVAL_DAY_TO_MINUTE" => {
Some(Self::XdbcSubcodeIntervalDayToMinute)
}
"XDBC_SUBCODE_INTERVAL_DAY_TO_SECOND" => {
Some(Self::XdbcSubcodeIntervalDayToSecond)
}
"XDBC_SUBCODE_INTERVAL_HOUR_TO_MINUTE" => {
Some(Self::XdbcSubcodeIntervalHourToMinute)
}
"XDBC_SUBCODE_INTERVAL_HOUR_TO_SECOND" => {
Some(Self::XdbcSubcodeIntervalHourToSecond)
}
"XDBC_SUBCODE_INTERVAL_MINUTE_TO_SECOND" => {
Some(Self::XdbcSubcodeIntervalMinuteToSecond)
}
_ => None,
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum Nullable {
NullabilityNoNulls = 0,
NullabilityNullable = 1,
NullabilityUnknown = 2,
}
impl Nullable {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::NullabilityNoNulls => "NULLABILITY_NO_NULLS",
Self::NullabilityNullable => "NULLABILITY_NULLABLE",
Self::NullabilityUnknown => "NULLABILITY_UNKNOWN",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"NULLABILITY_NO_NULLS" => Some(Self::NullabilityNoNulls),
"NULLABILITY_NULLABLE" => Some(Self::NullabilityNullable),
"NULLABILITY_UNKNOWN" => Some(Self::NullabilityUnknown),
_ => None,
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum Searchable {
None = 0,
Char = 1,
Basic = 2,
Full = 3,
}
impl Searchable {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::None => "SEARCHABLE_NONE",
Self::Char => "SEARCHABLE_CHAR",
Self::Basic => "SEARCHABLE_BASIC",
Self::Full => "SEARCHABLE_FULL",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"SEARCHABLE_NONE" => Some(Self::None),
"SEARCHABLE_CHAR" => Some(Self::Char),
"SEARCHABLE_BASIC" => Some(Self::Basic),
"SEARCHABLE_FULL" => Some(Self::Full),
_ => None,
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum UpdateDeleteRules {
Cascade = 0,
Restrict = 1,
SetNull = 2,
NoAction = 3,
SetDefault = 4,
}
impl UpdateDeleteRules {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Cascade => "CASCADE",
Self::Restrict => "RESTRICT",
Self::SetNull => "SET_NULL",
Self::NoAction => "NO_ACTION",
Self::SetDefault => "SET_DEFAULT",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"CASCADE" => Some(Self::Cascade),
"RESTRICT" => Some(Self::Restrict),
"SET_NULL" => Some(Self::SetNull),
"NO_ACTION" => Some(Self::NoAction),
"SET_DEFAULT" => Some(Self::SetDefault),
_ => None,
}
}
}