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.Deprecated.Deprecated.Query settings to be passed along with query operation.Deprecated.Indicates if driver should ignore unsupported values and methods.Controls logic of saving roles that were set usingSET <role>statement.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.Deprecated. -
Method Summary
Modifier and TypeMethodDescriptiongetKey()static StringhttpHeader(String key) static StringserverSetting(String key) 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.
-
QUERY_ID_GENERATOR
Sets query ID generator asSupplier<String>to be used for Query ID generation before sending request with client. When no set - queryID is generated by usingUUID.randomUUID(). -
REMEMBER_LAST_SET_ROLES
Controls logic of saving roles that were set usingSET <role>statement. Default: true - save roles -
CUSTOM_HTTP_PARAMS
Deprecated.Deprecated and will be removed. This property is here to keep backward compatibility withcom.clickhouse.client.http.config.ClickHouseHttpOption#CUSTOM_PARAMS. Original property is deprecated forcom.clickhouse.client.config.ClickHouseClientOption#CUSTOM_SETTINGSThis property is expected to be a comma separated list of key-value pair that should be sent to server. Pairs will be converted to new properties for client config. UseClientConfigProperties.serverSetting(String)instead -
CUSTOM_SETTINGS
Deprecated.Deprecated and will be removed. This property is here to keep backward compatibility withcom.clickhouse.client.config.ClickHouseClientOption#CUSTOM_SETTINGS. This property is expected to be a comma separated list of key-value pair that should be sent to server. Pairs will be converted to new properties for client config. UseClientConfigProperties.serverSetting(String)instead -
USE_TZ_FOR_DATES
Deprecated.Deprecated as driver do not convert Date values to any timezone. Dates are sent as is. Problem having this setting on connection level is that affects all child statements and there is no way to control on column basis. Driver ignores this setting but will throw exception when it is completely removed. -
HTTP_CONNECTION_PROVIDER
Deprecated.Current driver implementation uses only one http provider. So setting it has no effect. Deprecated will be removed soon
-
-
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
-
serverSetting
-
httpHeader
-