Package com.clickhouse.jdbc
Enum DriverProperties
- All Implemented Interfaces:
Serializable,Comparable<DriverProperties>,java.lang.constant.Constable
JDBC driver specific properties. Does not include anything from ClientConfigProperties.
Processing logic should be the follows
1. If property is among DriverProperties then Driver handles it specially and will not pass to a client
2. If property is not among DriverProperties then it is passed to a client
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionEnables row binary writer for simple insert statements when PreparedStatement is used.Query settings to be passed along with query operation.Indicates if driver should ignore unsupported values and methods.Enables closing result set beforeSchema term to be used in the connection URL.Indicates if driver should create a secure connection over SSL/TLSConfigures what SQL parser will be used.Enables using server property `max_result_rows` (ServerSettings.MAX_RESULT_ROWSto limit number of rows returned by query. -
Method Summary
Modifier and TypeMethodDescriptiongetKey()static DriverPropertiesReturns the enum constant of this type with the specified name.static DriverProperties[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
IGNORE_UNSUPPORTED_VALUES
Indicates if driver should ignore unsupported values and methods. JDBC allows throwing SQLException for unsupported values and methods. But driver can ignore them and continue execution. Driver will do no operation in such case. -
SCHEMA_TERM
Schema term to be used in the connection URL. Only `schema` is supported right now. -
SECURE_CONNECTION
Indicates if driver should create a secure connection over SSL/TLS -
DEFAULT_QUERY_SETTINGS
Query settings to be passed along with query operation. -
BETA_ROW_BINARY_WRITER
Enables row binary writer for simple insert statements when PreparedStatement is used. Has limitation and can be used with a simple form of insert like;INSERT INTO t VALUES (?, ?, ?...) -
RESULTSET_AUTO_CLOSE
Enables closing result set before -
USE_MAX_RESULT_ROWS
Enables using server property `max_result_rows` (ServerSettings.MAX_RESULT_ROWSto limit number of rows returned by query. Enabling this property will override user set overflow mode. It may cause error if server doesn't allow changing properties. When this property is not enabled then result set will stop reading data once limit is reached. As server may have more in a result set then it will require time to read all data to make HTTP connection usable again. In most cases this is fine. It is recommended to set limit in SQL query. -
SQL_PARSER
Configures what SQL parser will be used. Choices:- ANTLR4 - parser extracts required information but PreparedStatement parameters parsed separately.
- ANTLR4_PARAMS_PARSER - parser extracts required information AND parameter positions.
- JAVACC - parser extracts required information but PreparedStatement parameters parsed separately.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getKey
-
getDefaultValue
-
getChoices
-