Connection Properties
When connecting to NuoDB, there are many properties available to configure specific driver behavior. They may be defined in a number of ways including:
-
In JDBC, as part of the connection URL.
-
In the C++ API, via a call to
Connection::openDatabase()
. -
In the C API via
NuoDB_Connection->openDatabase()
-
On the
nuosql
command line with the--connection-property
argument (one argument for each property), for example:-
nuosql test --user dba --password goalie --connection-property isolation=read_committed --connection-property clientInfo=user123
-
-
Other drivers have their own methods.
Name | Description | ||
---|---|---|---|
|
Allows the driver to fall back to SRP if the TLS connection fails (when used in combination with
|
||
|
When set to true, all queries will be fully recompiled on every execution, the sql statement cache will be not be used.
|
||
|
Enables the client to provide one or more appropriate ciphers for encrypting the network connection to the database.
|
||
|
Arbitrary information about the connecting client.
|
||
|
The process ID (
|
||
|
Connect directly to TE(s) rather than via the AP(s).
|
||
The maximum time (in seconds) which indicates how long idle connections are left open.
|
|||
|
The default transaction isolation level for the connection to use.
|
||
|
Allows enabling of TCP KeepAlive on the connection from client to Transaction Engine.
|
||
|
From the client application, this property allows selective load balancing across Transaction Engines.
|
||
|
From the client application, this property allows selective load balancing across Transaction Engines.
|
||
|
(JDBC only) Enables BLOB and CLOB streaming to the JDBC client.
|
||
|
(JDBC only) Overrides the default chunk size for BLOB and CLOB streaming.
|
||
|
Configures lock wait time (in seconds) when establishing a new connection. For more information, see About the NuoDB SQL Configuration File.
|
||
|
Sets the maximum size of a result set that can be sent to the client in a single network packet.
|
||
|
The memory limit (per connection) in bytes for all blocking SQL engine operations:
|
||
|
The password for the user account used to connect to the database. |
||
Use internal address and port for TE, as specified by the
|
|||
|
Configures the version of the optimizer to be used for the duration of the current connection.
|
||
|
Not implemented. |
||
|
Controls the behavior of transactions executed inside a stored procedure.
|
||
|
The default schema that the connection should use when objects (such as tables and views) are not fully qualified. |
||
|
The default time zone for the connection to use (this is also known as the session time zone).
|
||
|
The trusted certificates as a PEM-encoded string. Only supported by the C/C++ driver. |
||
|
Path to file which stores certificates from trusted entities.
|
||
|
Verifies the integrity of the trustsStore. |
||
|
The user name for connecting to the database. |
||
|
Not implemented. |
||
|
Verifies the DN name of the SSL server against the name presented on the certificate.
|
||
|
For internal use only. |
Example
SET LOCK_WAIT_TIMEOUT 10;
SELECT * FROM SYSTEM.CONNECTIONPROPERTIES ORDER BY PROPERTY;
PROPERTY VALUE
------------------------- ---------------
TimeZone Etc/UTC
always-recompile-queries false
idle-timeout -1
isolation 8
lobChunkSize 65536
lobChunkingEnabled false
lock-wait-timeout 10
max-result-set-size-bytes 100000
memory-limit-bytes 0
query-optimizer v3
readOnly false
rollbackMode procedure
schema USER
user DBA
verbose-errors Not implemented
wait-for-pending-commits true