#[repr(i32)]
pub enum SqlInfo {
Show 89 variants FlightSqlServerName, FlightSqlServerVersion, FlightSqlServerArrowVersion, FlightSqlServerReadOnly, FlightSqlServerSql, FlightSqlServerSubstrait, FlightSqlServerSubstraitMinVersion, FlightSqlServerSubstraitMaxVersion, FlightSqlServerTransaction, FlightSqlServerCancel, FlightSqlServerStatementTimeout, FlightSqlServerTransactionTimeout, SqlDdlCatalog, SqlDdlSchema, SqlDdlTable, SqlIdentifierCase, SqlIdentifierQuoteChar, SqlQuotedIdentifierCase, SqlAllTablesAreSelectable, SqlNullOrdering, SqlKeywords, SqlNumericFunctions, SqlStringFunctions, SqlSystemFunctions, SqlDatetimeFunctions, SqlSearchStringEscape, SqlExtraNameCharacters, SqlSupportsColumnAliasing, SqlNullPlusNullIsNull, SqlSupportsConvert, SqlSupportsTableCorrelationNames, SqlSupportsDifferentTableCorrelationNames, SqlSupportsExpressionsInOrderBy, SqlSupportsOrderByUnrelated, SqlSupportedGroupBy, SqlSupportsLikeEscapeClause, SqlSupportsNonNullableColumns, SqlSupportedGrammar, SqlAnsi92SupportedLevel, SqlSupportsIntegrityEnhancementFacility, SqlOuterJoinsSupportLevel, SqlSchemaTerm, SqlProcedureTerm, SqlCatalogTerm, SqlCatalogAtStart, SqlSchemasSupportedActions, SqlCatalogsSupportedActions, SqlSupportedPositionedCommands, SqlSelectForUpdateSupported, SqlStoredProceduresSupported, SqlSupportedSubqueries, SqlCorrelatedSubqueriesSupported, SqlSupportedUnions, SqlMaxBinaryLiteralLength, SqlMaxCharLiteralLength, SqlMaxColumnNameLength, SqlMaxColumnsInGroupBy, SqlMaxColumnsInIndex, SqlMaxColumnsInOrderBy, SqlMaxColumnsInSelect, SqlMaxColumnsInTable, SqlMaxConnections, SqlMaxCursorNameLength, SqlMaxIndexLength, SqlDbSchemaNameLength, SqlMaxProcedureNameLength, SqlMaxCatalogNameLength, SqlMaxRowSize, SqlMaxRowSizeIncludesBlobs, SqlMaxStatementLength, SqlMaxStatements, SqlMaxTableNameLength, SqlMaxTablesInSelect, SqlMaxUsernameLength, SqlDefaultTransactionIsolation, SqlTransactionsSupported, SqlSupportedTransactionsIsolationLevels, SqlDataDefinitionCausesTransactionCommit, SqlDataDefinitionsInTransactionsIgnored, SqlSupportedResultSetTypes, SqlSupportedConcurrenciesForResultSetUnspecified, SqlSupportedConcurrenciesForResultSetForwardOnly, SqlSupportedConcurrenciesForResultSetScrollSensitive, SqlSupportedConcurrenciesForResultSetScrollInsensitive, SqlBatchUpdatesSupported, SqlSavepointsSupported, SqlNamedParametersSupported, SqlLocatorsUpdateCopy, SqlStoredFunctionsUsingCallSyntaxSupported,
}
Expand description

Options for CommandGetSqlInfo.

Variants§

§

FlightSqlServerName

Retrieves a UTF-8 string with the name of the Flight SQL Server.

§

FlightSqlServerVersion

Retrieves a UTF-8 string with the native version of the Flight SQL Server.

§

FlightSqlServerArrowVersion

Retrieves a UTF-8 string with the Arrow format version of the Flight SQL Server.

§

FlightSqlServerReadOnly

Retrieves a boolean value indicating whether the Flight SQL Server is read only.

Returns:

  • false: if read-write
  • true: if read only
§

FlightSqlServerSql

Retrieves a boolean value indicating whether the Flight SQL Server supports executing SQL queries.

Note that the absence of this info (as opposed to a false value) does not necessarily mean that SQL is not supported, as this property was not originally defined.

§

FlightSqlServerSubstrait

Retrieves a boolean value indicating whether the Flight SQL Server supports executing Substrait plans.

§

FlightSqlServerSubstraitMinVersion

Retrieves a string value indicating the minimum supported Substrait version, or null if Substrait is not supported.

§

FlightSqlServerSubstraitMaxVersion

Retrieves a string value indicating the maximum supported Substrait version, or null if Substrait is not supported.

§

FlightSqlServerTransaction

Retrieves an int32 indicating whether the Flight SQL Server supports the BeginTransaction/EndTransaction/BeginSavepoint/EndSavepoint actions.

Even if this is not supported, the database may still support explicit “BEGIN TRANSACTION”/“COMMIT” SQL statements (see SQL_TRANSACTIONS_SUPPORTED); this property is only about whether the server implements the Flight SQL API endpoints.

The possible values are listed in SqlSupportedTransaction.

§

FlightSqlServerCancel

Retrieves a boolean value indicating whether the Flight SQL Server supports explicit query cancellation (the CancelQuery action).

§

FlightSqlServerStatementTimeout

Retrieves an int32 indicating the timeout (in milliseconds) for prepared statement handles.

If 0, there is no timeout. Servers should reset the timeout when the handle is used in a command.

§

FlightSqlServerTransactionTimeout

Retrieves an int32 indicating the timeout (in milliseconds) for transactions, since transactions are not tied to a connection.

If 0, there is no timeout. Servers should reset the timeout when the handle is used in a command.

§

SqlDdlCatalog

Retrieves a boolean value indicating whether the Flight SQL Server supports CREATE and DROP of catalogs.

Returns:

  • false: if it doesn’t support CREATE and DROP of catalogs.
  • true: if it supports CREATE and DROP of catalogs.
§

SqlDdlSchema

Retrieves a boolean value indicating whether the Flight SQL Server supports CREATE and DROP of schemas.

Returns:

  • false: if it doesn’t support CREATE and DROP of schemas.
  • true: if it supports CREATE and DROP of schemas.
§

SqlDdlTable

Indicates whether the Flight SQL Server supports CREATE and DROP of tables.

Returns:

  • false: if it doesn’t support CREATE and DROP of tables.
  • true: if it supports CREATE and DROP of tables.
§

SqlIdentifierCase

Retrieves a int32 ordinal representing the case sensitivity of catalog, table, schema and table names.

The possible values are listed in arrow.flight.protocol.sql.SqlSupportedCaseSensitivity.

§

SqlIdentifierQuoteChar

Retrieves a UTF-8 string with the supported character(s) used to surround a delimited identifier.

§

SqlQuotedIdentifierCase

Retrieves a int32 describing the case sensitivity of quoted identifiers.

The possible values are listed in arrow.flight.protocol.sql.SqlSupportedCaseSensitivity.

§

SqlAllTablesAreSelectable

Retrieves a boolean value indicating whether all tables are selectable.

Returns:

  • false: if not all tables are selectable or if none are;
  • true: if all tables are selectable.
§

SqlNullOrdering

Retrieves the null ordering.

Returns a int32 ordinal for the null ordering being used, as described in arrow.flight.protocol.sql.SqlNullOrdering.

§

SqlKeywords

Retrieves a UTF-8 string list with values of the supported keywords.

§

SqlNumericFunctions

Retrieves a UTF-8 string list with values of the supported numeric functions.

§

SqlStringFunctions

Retrieves a UTF-8 string list with values of the supported string functions.

§

SqlSystemFunctions

Retrieves a UTF-8 string list with values of the supported system functions.

§

SqlDatetimeFunctions

Retrieves a UTF-8 string list with values of the supported datetime functions.

§

SqlSearchStringEscape

Retrieves the UTF-8 string that can be used to escape wildcard characters. This is the string that can be used to escape ‘’ or ‘%’ in the catalog search parameters that are a pattern (and therefore use one of the wildcard characters). The ‘’ character represents any single character; the ‘%’ character represents any sequence of zero or more characters.

§

SqlExtraNameCharacters

Retrieves a UTF-8 string with all the “extra” characters that can be used in unquoted identifier names (those beyond a-z, A-Z, 0-9 and _).

§

SqlSupportsColumnAliasing

Retrieves a boolean value indicating whether column aliasing is supported. If so, the SQL AS clause can be used to provide names for computed columns or to provide alias names for columns as required.

Returns:

  • false: if column aliasing is unsupported;
  • true: if column aliasing is supported.
§

SqlNullPlusNullIsNull

Retrieves a boolean value indicating whether concatenations between null and non-null values being null are supported.

  • Returns:
  • false: if concatenations between null and non-null values being null are unsupported;
  • true: if concatenations between null and non-null values being null are supported.
§

SqlSupportsConvert

Retrieves a map where the key is the type to convert from and the value is a list with the types to convert to, indicating the supported conversions. Each key and each item on the list value is a value to a predefined type on SqlSupportsConvert enum. The returned map will be: map<int32, list>

§

SqlSupportsTableCorrelationNames

Retrieves a boolean value indicating whether, when table correlation names are supported, they are restricted to being different from the names of the tables.

Returns:

  • false: if table correlation names are unsupported;
  • true: if table correlation names are supported.
§

SqlSupportsDifferentTableCorrelationNames

Retrieves a boolean value indicating whether, when table correlation names are supported, they are restricted to being different from the names of the tables.

Returns:

  • false: if different table correlation names are unsupported;
  • true: if different table correlation names are supported
§

SqlSupportsExpressionsInOrderBy

Retrieves a boolean value indicating whether expressions in ORDER BY lists are supported.

Returns:

  • false: if expressions in ORDER BY are unsupported;
  • true: if expressions in ORDER BY are supported;
§

SqlSupportsOrderByUnrelated

Retrieves a boolean value indicating whether using a column that is not in the SELECT statement in a GROUP BY clause is supported.

Returns:

  • false: if using a column that is not in the SELECT statement in a GROUP BY clause is unsupported;
  • true: if using a column that is not in the SELECT statement in a GROUP BY clause is supported.
§

SqlSupportedGroupBy

Retrieves the supported GROUP BY commands;

Returns an int32 bitmask value representing the supported commands. The returned bitmask should be parsed in order to retrieve the supported commands.

For instance:

  • return 0 (\b0) => [] (GROUP BY is unsupported);
  • return 1 (\b1) => [SQL_GROUP_BY_UNRELATED];
  • return 2 (\b10) => [SQL_GROUP_BY_BEYOND_SELECT];
  • return 3 (\b11) => [SQL_GROUP_BY_UNRELATED, SQL_GROUP_BY_BEYOND_SELECT]. Valid GROUP BY types are described under arrow.flight.protocol.sql.SqlSupportedGroupBy.
§

SqlSupportsLikeEscapeClause

Retrieves a boolean value indicating whether specifying a LIKE escape clause is supported.

Returns:

  • false: if specifying a LIKE escape clause is unsupported;
  • true: if specifying a LIKE escape clause is supported.
§

SqlSupportsNonNullableColumns

Retrieves a boolean value indicating whether columns may be defined as non-nullable.

Returns:

  • false: if columns cannot be defined as non-nullable;
  • true: if columns may be defined as non-nullable.
§

SqlSupportedGrammar

Retrieves the supported SQL grammar level as per the ODBC specification.

Returns an int32 bitmask value representing the supported SQL grammar level. The returned bitmask should be parsed in order to retrieve the supported grammar levels.

For instance:

  • return 0 (\b0) => [] (SQL grammar is unsupported);
  • return 1 (\b1) => [SQL_MINIMUM_GRAMMAR];
  • return 2 (\b10) => [SQL_CORE_GRAMMAR];
  • return 3 (\b11) => [SQL_MINIMUM_GRAMMAR, SQL_CORE_GRAMMAR];
  • return 4 (\b100) => [SQL_EXTENDED_GRAMMAR];
  • return 5 (\b101) => [SQL_MINIMUM_GRAMMAR, SQL_EXTENDED_GRAMMAR];
  • return 6 (\b110) => [SQL_CORE_GRAMMAR, SQL_EXTENDED_GRAMMAR];
  • return 7 (\b111) => [SQL_MINIMUM_GRAMMAR, SQL_CORE_GRAMMAR, SQL_EXTENDED_GRAMMAR]. Valid SQL grammar levels are described under arrow.flight.protocol.sql.SupportedSqlGrammar.
§

SqlAnsi92SupportedLevel

Retrieves the supported ANSI92 SQL grammar level.

Returns an int32 bitmask value representing the supported ANSI92 SQL grammar level. The returned bitmask should be parsed in order to retrieve the supported commands.

For instance:

  • return 0 (\b0) => [] (ANSI92 SQL grammar is unsupported);
  • return 1 (\b1) => [ANSI92_ENTRY_SQL];
  • return 2 (\b10) => [ANSI92_INTERMEDIATE_SQL];
  • return 3 (\b11) => [ANSI92_ENTRY_SQL, ANSI92_INTERMEDIATE_SQL];
  • return 4 (\b100) => [ANSI92_FULL_SQL];
  • return 5 (\b101) => [ANSI92_ENTRY_SQL, ANSI92_FULL_SQL];
  • return 6 (\b110) => [ANSI92_INTERMEDIATE_SQL, ANSI92_FULL_SQL];
  • return 7 (\b111) => [ANSI92_ENTRY_SQL, ANSI92_INTERMEDIATE_SQL, ANSI92_FULL_SQL]. Valid ANSI92 SQL grammar levels are described under arrow.flight.protocol.sql.SupportedAnsi92SqlGrammarLevel.
§

SqlSupportsIntegrityEnhancementFacility

Retrieves a boolean value indicating whether the SQL Integrity Enhancement Facility is supported.

Returns:

  • false: if the SQL Integrity Enhancement Facility is supported;
  • true: if the SQL Integrity Enhancement Facility is supported.
§

SqlOuterJoinsSupportLevel

Retrieves the support level for SQL OUTER JOINs.

Returns a int32 ordinal for the SQL ordering being used, as described in arrow.flight.protocol.sql.SqlOuterJoinsSupportLevel.

§

SqlSchemaTerm

Retrieves a UTF-8 string with the preferred term for “schema”.

§

SqlProcedureTerm

Retrieves a UTF-8 string with the preferred term for “procedure”.

§

SqlCatalogTerm

Retrieves a UTF-8 string with the preferred term for “catalog”. If a empty string is returned its assumed that the server does NOT supports catalogs.

§

SqlCatalogAtStart

Retrieves a boolean value indicating whether a catalog appears at the start of a fully qualified table name.

  • false: if a catalog does not appear at the start of a fully qualified table name;
  • true: if a catalog appears at the start of a fully qualified table name.
§

SqlSchemasSupportedActions

Retrieves the supported actions for a SQL schema.

Returns an int32 bitmask value representing the supported actions for a SQL schema. The returned bitmask should be parsed in order to retrieve the supported actions for a SQL schema.

For instance:

  • return 0 (\b0) => [] (no supported actions for SQL schema);
  • return 1 (\b1) => [SQL_ELEMENT_IN_PROCEDURE_CALLS];
  • return 2 (\b10) => [SQL_ELEMENT_IN_INDEX_DEFINITIONS];
  • return 3 (\b11) => [SQL_ELEMENT_IN_PROCEDURE_CALLS, SQL_ELEMENT_IN_INDEX_DEFINITIONS];
  • return 4 (\b100) => [SQL_ELEMENT_IN_PRIVILEGE_DEFINITIONS];
  • return 5 (\b101) => [SQL_ELEMENT_IN_PROCEDURE_CALLS, SQL_ELEMENT_IN_PRIVILEGE_DEFINITIONS];
  • return 6 (\b110) => [SQL_ELEMENT_IN_INDEX_DEFINITIONS, SQL_ELEMENT_IN_PRIVILEGE_DEFINITIONS];
  • return 7 (\b111) => [SQL_ELEMENT_IN_PROCEDURE_CALLS, SQL_ELEMENT_IN_INDEX_DEFINITIONS, SQL_ELEMENT_IN_PRIVILEGE_DEFINITIONS]. Valid actions for a SQL schema described under arrow.flight.protocol.sql.SqlSupportedElementActions.
§

SqlCatalogsSupportedActions

Retrieves the supported actions for a SQL schema.

Returns an int32 bitmask value representing the supported actions for a SQL catalog. The returned bitmask should be parsed in order to retrieve the supported actions for a SQL catalog.

For instance:

  • return 0 (\b0) => [] (no supported actions for SQL catalog);
  • return 1 (\b1) => [SQL_ELEMENT_IN_PROCEDURE_CALLS];
  • return 2 (\b10) => [SQL_ELEMENT_IN_INDEX_DEFINITIONS];
  • return 3 (\b11) => [SQL_ELEMENT_IN_PROCEDURE_CALLS, SQL_ELEMENT_IN_INDEX_DEFINITIONS];
  • return 4 (\b100) => [SQL_ELEMENT_IN_PRIVILEGE_DEFINITIONS];
  • return 5 (\b101) => [SQL_ELEMENT_IN_PROCEDURE_CALLS, SQL_ELEMENT_IN_PRIVILEGE_DEFINITIONS];
  • return 6 (\b110) => [SQL_ELEMENT_IN_INDEX_DEFINITIONS, SQL_ELEMENT_IN_PRIVILEGE_DEFINITIONS];
  • return 7 (\b111) => [SQL_ELEMENT_IN_PROCEDURE_CALLS, SQL_ELEMENT_IN_INDEX_DEFINITIONS, SQL_ELEMENT_IN_PRIVILEGE_DEFINITIONS]. Valid actions for a SQL catalog are described under arrow.flight.protocol.sql.SqlSupportedElementActions.
§

SqlSupportedPositionedCommands

Retrieves the supported SQL positioned commands.

Returns an int32 bitmask value representing the supported SQL positioned commands. The returned bitmask should be parsed in order to retrieve the supported SQL positioned commands.

For instance:

  • return 0 (\b0) => [] (no supported SQL positioned commands);
  • return 1 (\b1) => [SQL_POSITIONED_DELETE];
  • return 2 (\b10) => [SQL_POSITIONED_UPDATE];
  • return 3 (\b11) => [SQL_POSITIONED_DELETE, SQL_POSITIONED_UPDATE]. Valid SQL positioned commands are described under arrow.flight.protocol.sql.SqlSupportedPositionedCommands.
§

SqlSelectForUpdateSupported

Retrieves a boolean value indicating whether SELECT FOR UPDATE statements are supported.

Returns:

  • false: if SELECT FOR UPDATE statements are unsupported;
  • true: if SELECT FOR UPDATE statements are supported.
§

SqlStoredProceduresSupported

Retrieves a boolean value indicating whether stored procedure calls that use the stored procedure escape syntax are supported.

Returns:

  • false: if stored procedure calls that use the stored procedure escape syntax are unsupported;
  • true: if stored procedure calls that use the stored procedure escape syntax are supported.
§

SqlSupportedSubqueries

Retrieves the supported SQL subqueries.

Returns an int32 bitmask value representing the supported SQL subqueries. The returned bitmask should be parsed in order to retrieve the supported SQL subqueries.

For instance:

  • return 0 (\b0) => [] (no supported SQL subqueries);
  • return 1 (\b1) => [SQL_SUBQUERIES_IN_COMPARISONS];
  • return 2 (\b10) => [SQL_SUBQUERIES_IN_EXISTS];
  • return 3 (\b11) => [SQL_SUBQUERIES_IN_COMPARISONS, SQL_SUBQUERIES_IN_EXISTS];
  • return 4 (\b100) => [SQL_SUBQUERIES_IN_INS];
  • return 5 (\b101) => [SQL_SUBQUERIES_IN_COMPARISONS, SQL_SUBQUERIES_IN_INS];
  • return 6 (\b110) => [SQL_SUBQUERIES_IN_INS, SQL_SUBQUERIES_IN_EXISTS];
  • return 7 (\b111) => [SQL_SUBQUERIES_IN_COMPARISONS, SQL_SUBQUERIES_IN_EXISTS, SQL_SUBQUERIES_IN_INS];
  • return 8 (\b1000) => [SQL_SUBQUERIES_IN_QUANTIFIEDS];
  • return 9 (\b1001) => [SQL_SUBQUERIES_IN_COMPARISONS, SQL_SUBQUERIES_IN_QUANTIFIEDS];
  • return 10 (\b1010) => [SQL_SUBQUERIES_IN_EXISTS, SQL_SUBQUERIES_IN_QUANTIFIEDS];
  • return 11 (\b1011) => [SQL_SUBQUERIES_IN_COMPARISONS, SQL_SUBQUERIES_IN_EXISTS, SQL_SUBQUERIES_IN_QUANTIFIEDS];
  • return 12 (\b1100) => [SQL_SUBQUERIES_IN_INS, SQL_SUBQUERIES_IN_QUANTIFIEDS];
  • return 13 (\b1101) => [SQL_SUBQUERIES_IN_COMPARISONS, SQL_SUBQUERIES_IN_INS, SQL_SUBQUERIES_IN_QUANTIFIEDS];
  • return 14 (\b1110) => [SQL_SUBQUERIES_IN_EXISTS, SQL_SUBQUERIES_IN_INS, SQL_SUBQUERIES_IN_QUANTIFIEDS];
  • return 15 (\b1111) => [SQL_SUBQUERIES_IN_COMPARISONS, SQL_SUBQUERIES_IN_EXISTS, SQL_SUBQUERIES_IN_INS, SQL_SUBQUERIES_IN_QUANTIFIEDS];
  • … Valid SQL subqueries are described under arrow.flight.protocol.sql.SqlSupportedSubqueries.
§

SqlCorrelatedSubqueriesSupported

Retrieves a boolean value indicating whether correlated subqueries are supported.

Returns:

  • false: if correlated subqueries are unsupported;
  • true: if correlated subqueries are supported.
§

SqlSupportedUnions

Retrieves the supported SQL UNIONs.

Returns an int32 bitmask value representing the supported SQL UNIONs. The returned bitmask should be parsed in order to retrieve the supported SQL UNIONs.

For instance:

  • return 0 (\b0) => [] (no supported SQL positioned commands);
  • return 1 (\b1) => [SQL_UNION];
  • return 2 (\b10) => [SQL_UNION_ALL];
  • return 3 (\b11) => [SQL_UNION, SQL_UNION_ALL]. Valid SQL positioned commands are described under arrow.flight.protocol.sql.SqlSupportedUnions.
§

SqlMaxBinaryLiteralLength

Retrieves a int64 value representing the maximum number of hex characters allowed in an inline binary literal.

§

SqlMaxCharLiteralLength

Retrieves a int64 value representing the maximum number of characters allowed for a character literal.

§

SqlMaxColumnNameLength

Retrieves a int64 value representing the maximum number of characters allowed for a column name.

§

SqlMaxColumnsInGroupBy

Retrieves a int64 value representing the the maximum number of columns allowed in a GROUP BY clause.

§

SqlMaxColumnsInIndex

Retrieves a int64 value representing the maximum number of columns allowed in an index.

§

SqlMaxColumnsInOrderBy

Retrieves a int64 value representing the maximum number of columns allowed in an ORDER BY clause.

§

SqlMaxColumnsInSelect

Retrieves a int64 value representing the maximum number of columns allowed in a SELECT list.

§

SqlMaxColumnsInTable

Retrieves a int64 value representing the maximum number of columns allowed in a table.

§

SqlMaxConnections

Retrieves a int64 value representing the maximum number of concurrent connections possible.

§

SqlMaxCursorNameLength

Retrieves a int64 value the maximum number of characters allowed in a cursor name.

§

SqlMaxIndexLength

Retrieves a int64 value representing the maximum number of bytes allowed for an index, including all of the parts of the index.

§

SqlDbSchemaNameLength

Retrieves a int64 value representing the maximum number of characters allowed in a schema name.

§

SqlMaxProcedureNameLength

Retrieves a int64 value representing the maximum number of characters allowed in a procedure name.

§

SqlMaxCatalogNameLength

Retrieves a int64 value representing the maximum number of characters allowed in a catalog name.

§

SqlMaxRowSize

Retrieves a int64 value representing the maximum number of bytes allowed in a single row.

§

SqlMaxRowSizeIncludesBlobs

Retrieves a boolean indicating whether the return value for the JDBC method getMaxRowSize includes the SQL data types LONGVARCHAR and LONGVARBINARY.

Returns:

  • false: if return value for the JDBC method getMaxRowSize does not include the SQL data types LONGVARCHAR and LONGVARBINARY;
  • true: if return value for the JDBC method getMaxRowSize includes the SQL data types LONGVARCHAR and LONGVARBINARY.
§

SqlMaxStatementLength

Retrieves a int64 value representing the maximum number of characters allowed for an SQL statement; a result of 0 (zero) means that there is no limit or the limit is not known.

§

SqlMaxStatements

Retrieves a int64 value representing the maximum number of active statements that can be open at the same time.

§

SqlMaxTableNameLength

Retrieves a int64 value representing the maximum number of characters allowed in a table name.

§

SqlMaxTablesInSelect

Retrieves a int64 value representing the maximum number of tables allowed in a SELECT statement.

§

SqlMaxUsernameLength

Retrieves a int64 value representing the maximum number of characters allowed in a user name.

§

SqlDefaultTransactionIsolation

Retrieves this database’s default transaction isolation level as described in arrow.flight.protocol.sql.SqlTransactionIsolationLevel.

Returns a int32 ordinal for the SQL transaction isolation level.

§

SqlTransactionsSupported

Retrieves a boolean value indicating whether transactions are supported. If not, invoking the method commit is a noop, and the isolation level is arrow.flight.protocol.sql.SqlTransactionIsolationLevel.TRANSACTION_NONE.

Returns:

  • false: if transactions are unsupported;
  • true: if transactions are supported.
§

SqlSupportedTransactionsIsolationLevels

Retrieves the supported transactions isolation levels.

Returns an int32 bitmask value representing the supported transactions isolation levels. The returned bitmask should be parsed in order to retrieve the supported transactions isolation levels.

For instance:

  • return 0 (\b0) => [] (no supported SQL transactions isolation levels);
  • return 1 (\b1) => [SQL_TRANSACTION_NONE];
  • return 2 (\b10) => [SQL_TRANSACTION_READ_UNCOMMITTED];
  • return 3 (\b11) => [SQL_TRANSACTION_NONE, SQL_TRANSACTION_READ_UNCOMMITTED];
  • return 4 (\b100) => [SQL_TRANSACTION_REPEATABLE_READ];
  • return 5 (\b101) => [SQL_TRANSACTION_NONE, SQL_TRANSACTION_REPEATABLE_READ];
  • return 6 (\b110) => [SQL_TRANSACTION_READ_UNCOMMITTED, SQL_TRANSACTION_REPEATABLE_READ];
  • return 7 (\b111) => [SQL_TRANSACTION_NONE, SQL_TRANSACTION_READ_UNCOMMITTED, SQL_TRANSACTION_REPEATABLE_READ];
  • return 8 (\b1000) => [SQL_TRANSACTION_REPEATABLE_READ];
  • return 9 (\b1001) => [SQL_TRANSACTION_NONE, SQL_TRANSACTION_REPEATABLE_READ];
  • return 10 (\b1010) => [SQL_TRANSACTION_READ_UNCOMMITTED, SQL_TRANSACTION_REPEATABLE_READ];
  • return 11 (\b1011) => [SQL_TRANSACTION_NONE, SQL_TRANSACTION_READ_UNCOMMITTED, SQL_TRANSACTION_REPEATABLE_READ];
  • return 12 (\b1100) => [SQL_TRANSACTION_REPEATABLE_READ, SQL_TRANSACTION_REPEATABLE_READ];
  • return 13 (\b1101) => [SQL_TRANSACTION_NONE, SQL_TRANSACTION_REPEATABLE_READ, SQL_TRANSACTION_REPEATABLE_READ];
  • return 14 (\b1110) => [SQL_TRANSACTION_READ_UNCOMMITTED, SQL_TRANSACTION_REPEATABLE_READ, SQL_TRANSACTION_REPEATABLE_READ];
  • return 15 (\b1111) => [SQL_TRANSACTION_NONE, SQL_TRANSACTION_READ_UNCOMMITTED, SQL_TRANSACTION_REPEATABLE_READ, SQL_TRANSACTION_REPEATABLE_READ];
  • return 16 (\b10000) => [SQL_TRANSACTION_SERIALIZABLE];
  • … Valid SQL positioned commands are described under arrow.flight.protocol.sql.SqlTransactionIsolationLevel.
§

SqlDataDefinitionCausesTransactionCommit

Retrieves a boolean value indicating whether a data definition statement within a transaction forces the transaction to commit.

Returns:

  • false: if a data definition statement within a transaction does not force the transaction to commit;
  • true: if a data definition statement within a transaction forces the transaction to commit.
§

SqlDataDefinitionsInTransactionsIgnored

Retrieves a boolean value indicating whether a data definition statement within a transaction is ignored.

Returns:

  • false: if a data definition statement within a transaction is taken into account;
  • true: a data definition statement within a transaction is ignored.
§

SqlSupportedResultSetTypes

Retrieves an int32 bitmask value representing the supported result set types. The returned bitmask should be parsed in order to retrieve the supported result set types.

For instance:

  • return 0 (\b0) => [] (no supported result set types);
  • return 1 (\b1) => [SQL_RESULT_SET_TYPE_UNSPECIFIED];
  • return 2 (\b10) => [SQL_RESULT_SET_TYPE_FORWARD_ONLY];
  • return 3 (\b11) => [SQL_RESULT_SET_TYPE_UNSPECIFIED, SQL_RESULT_SET_TYPE_FORWARD_ONLY];
  • return 4 (\b100) => [SQL_RESULT_SET_TYPE_SCROLL_INSENSITIVE];
  • return 5 (\b101) => [SQL_RESULT_SET_TYPE_UNSPECIFIED, SQL_RESULT_SET_TYPE_SCROLL_INSENSITIVE];
  • return 6 (\b110) => [SQL_RESULT_SET_TYPE_FORWARD_ONLY, SQL_RESULT_SET_TYPE_SCROLL_INSENSITIVE];
  • return 7 (\b111) => [SQL_RESULT_SET_TYPE_UNSPECIFIED, SQL_RESULT_SET_TYPE_FORWARD_ONLY, SQL_RESULT_SET_TYPE_SCROLL_INSENSITIVE];
  • return 8 (\b1000) => [SQL_RESULT_SET_TYPE_SCROLL_SENSITIVE];
  • … Valid result set types are described under arrow.flight.protocol.sql.SqlSupportedResultSetType.
§

SqlSupportedConcurrenciesForResultSetUnspecified

Returns an int32 bitmask value concurrency types supported for arrow.flight.protocol.sql.SqlSupportedResultSetType.SQL_RESULT_SET_TYPE_UNSPECIFIED.

For instance:

  • return 0 (\b0) => [] (no supported concurrency types for this result set type)
  • return 1 (\b1) => [SQL_RESULT_SET_CONCURRENCY_UNSPECIFIED]
  • return 2 (\b10) => [SQL_RESULT_SET_CONCURRENCY_READ_ONLY]
  • return 3 (\b11) => [SQL_RESULT_SET_CONCURRENCY_UNSPECIFIED, SQL_RESULT_SET_CONCURRENCY_READ_ONLY]
  • return 4 (\b100) => [SQL_RESULT_SET_CONCURRENCY_UPDATABLE]
  • return 5 (\b101) => [SQL_RESULT_SET_CONCURRENCY_UNSPECIFIED, SQL_RESULT_SET_CONCURRENCY_UPDATABLE]
  • return 6 (\b110) => [SQL_RESULT_SET_CONCURRENCY_READ_ONLY, SQL_RESULT_SET_CONCURRENCY_UPDATABLE]
  • return 7 (\b111) => [SQL_RESULT_SET_CONCURRENCY_UNSPECIFIED, SQL_RESULT_SET_CONCURRENCY_READ_ONLY, SQL_RESULT_SET_CONCURRENCY_UPDATABLE] Valid result set types are described under arrow.flight.protocol.sql.SqlSupportedResultSetConcurrency.
§

SqlSupportedConcurrenciesForResultSetForwardOnly

Returns an int32 bitmask value concurrency types supported for arrow.flight.protocol.sql.SqlSupportedResultSetType.SQL_RESULT_SET_TYPE_FORWARD_ONLY.

For instance:

  • return 0 (\b0) => [] (no supported concurrency types for this result set type)
  • return 1 (\b1) => [SQL_RESULT_SET_CONCURRENCY_UNSPECIFIED]
  • return 2 (\b10) => [SQL_RESULT_SET_CONCURRENCY_READ_ONLY]
  • return 3 (\b11) => [SQL_RESULT_SET_CONCURRENCY_UNSPECIFIED, SQL_RESULT_SET_CONCURRENCY_READ_ONLY]
  • return 4 (\b100) => [SQL_RESULT_SET_CONCURRENCY_UPDATABLE]
  • return 5 (\b101) => [SQL_RESULT_SET_CONCURRENCY_UNSPECIFIED, SQL_RESULT_SET_CONCURRENCY_UPDATABLE]
  • return 6 (\b110) => [SQL_RESULT_SET_CONCURRENCY_READ_ONLY, SQL_RESULT_SET_CONCURRENCY_UPDATABLE]
  • return 7 (\b111) => [SQL_RESULT_SET_CONCURRENCY_UNSPECIFIED, SQL_RESULT_SET_CONCURRENCY_READ_ONLY, SQL_RESULT_SET_CONCURRENCY_UPDATABLE] Valid result set types are described under arrow.flight.protocol.sql.SqlSupportedResultSetConcurrency.
§

SqlSupportedConcurrenciesForResultSetScrollSensitive

Returns an int32 bitmask value concurrency types supported for arrow.flight.protocol.sql.SqlSupportedResultSetType.SQL_RESULT_SET_TYPE_SCROLL_SENSITIVE.

For instance:

  • return 0 (\b0) => [] (no supported concurrency types for this result set type)
  • return 1 (\b1) => [SQL_RESULT_SET_CONCURRENCY_UNSPECIFIED]
  • return 2 (\b10) => [SQL_RESULT_SET_CONCURRENCY_READ_ONLY]
  • return 3 (\b11) => [SQL_RESULT_SET_CONCURRENCY_UNSPECIFIED, SQL_RESULT_SET_CONCURRENCY_READ_ONLY]
  • return 4 (\b100) => [SQL_RESULT_SET_CONCURRENCY_UPDATABLE]
  • return 5 (\b101) => [SQL_RESULT_SET_CONCURRENCY_UNSPECIFIED, SQL_RESULT_SET_CONCURRENCY_UPDATABLE]
  • return 6 (\b110) => [SQL_RESULT_SET_CONCURRENCY_READ_ONLY, SQL_RESULT_SET_CONCURRENCY_UPDATABLE]
  • return 7 (\b111) => [SQL_RESULT_SET_CONCURRENCY_UNSPECIFIED, SQL_RESULT_SET_CONCURRENCY_READ_ONLY, SQL_RESULT_SET_CONCURRENCY_UPDATABLE] Valid result set types are described under arrow.flight.protocol.sql.SqlSupportedResultSetConcurrency.
§

SqlSupportedConcurrenciesForResultSetScrollInsensitive

Returns an int32 bitmask value concurrency types supported for arrow.flight.protocol.sql.SqlSupportedResultSetType.SQL_RESULT_SET_TYPE_SCROLL_INSENSITIVE.

For instance:

  • return 0 (\b0) => [] (no supported concurrency types for this result set type)
  • return 1 (\b1) => [SQL_RESULT_SET_CONCURRENCY_UNSPECIFIED]
  • return 2 (\b10) => [SQL_RESULT_SET_CONCURRENCY_READ_ONLY]
  • return 3 (\b11) => [SQL_RESULT_SET_CONCURRENCY_UNSPECIFIED, SQL_RESULT_SET_CONCURRENCY_READ_ONLY]
  • return 4 (\b100) => [SQL_RESULT_SET_CONCURRENCY_UPDATABLE]
  • return 5 (\b101) => [SQL_RESULT_SET_CONCURRENCY_UNSPECIFIED, SQL_RESULT_SET_CONCURRENCY_UPDATABLE]
  • return 6 (\b110) => [SQL_RESULT_SET_CONCURRENCY_READ_ONLY, SQL_RESULT_SET_CONCURRENCY_UPDATABLE]
  • return 7 (\b111) => [SQL_RESULT_SET_CONCURRENCY_UNSPECIFIED, SQL_RESULT_SET_CONCURRENCY_READ_ONLY, SQL_RESULT_SET_CONCURRENCY_UPDATABLE] Valid result set types are described under arrow.flight.protocol.sql.SqlSupportedResultSetConcurrency.
§

SqlBatchUpdatesSupported

Retrieves a boolean value indicating whether this database supports batch updates.

  • false: if this database does not support batch updates;
  • true: if this database supports batch updates.
§

SqlSavepointsSupported

Retrieves a boolean value indicating whether this database supports savepoints.

Returns:

  • false: if this database does not support savepoints;
  • true: if this database supports savepoints.
§

SqlNamedParametersSupported

Retrieves a boolean value indicating whether named parameters are supported in callable statements.

Returns:

  • false: if named parameters in callable statements are unsupported;
  • true: if named parameters in callable statements are supported.
§

SqlLocatorsUpdateCopy

Retrieves a boolean value indicating whether updates made to a LOB are made on a copy or directly to the LOB.

Returns:

  • false: if updates made to a LOB are made directly to the LOB;
  • true: if updates made to a LOB are made on a copy.
§

SqlStoredFunctionsUsingCallSyntaxSupported

Retrieves a boolean value indicating whether invoking user-defined or vendor functions using the stored procedure escape syntax is supported.

Returns:

  • false: if invoking user-defined or vendor functions using the stored procedure escape syntax is unsupported;
  • true: if invoking user-defined or vendor functions using the stored procedure escape syntax is supported.

Implementations§

source§

impl SqlInfo

source

pub fn is_valid(value: i32) -> bool

Returns true if value is a variant of SqlInfo.

source

pub fn from_i32(value: i32) -> Option<SqlInfo>

Converts an i32 to a SqlInfo, or None if value is not a valid variant.

source§

impl SqlInfo

source

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.

source

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 SqlInfo

source§

fn clone(&self) -> SqlInfo

Returns a copy of the value. Read more
1.0.0 · source§

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

Performs copy-assignment from source. Read more
source§

impl Debug for SqlInfo

source§

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

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

impl Default for SqlInfo

source§

fn default() -> SqlInfo

Returns the “default value” for a type. Read more
source§

impl From<SqlInfo> for i32

source§

fn from(value: SqlInfo) -> i32

Converts to this type from the input type.
source§

impl Hash for SqlInfo

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Ord for SqlInfo

source§

fn cmp(&self, other: &SqlInfo) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>,

Restrict a value to a certain interval. Read more
source§

impl PartialEq<SqlInfo> for SqlInfo

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd<SqlInfo> for SqlInfo

source§

fn partial_cmp(&self, other: &SqlInfo) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

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

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

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

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

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

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Copy for SqlInfo

source§

impl Eq for SqlInfo

source§

impl StructuralEq for SqlInfo

source§

impl StructuralPartialEq for SqlInfo

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
§

impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> FromRef<T> for Twhere T: Clone,

§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere 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> IntoRequest<T> for T

source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
source§

impl<T> ToOwned for Twhere T: Clone,

§

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, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

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

§

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.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> Allocation for Twhere T: RefUnwindSafe + Send + Sync,