#include <SQLDBC.h>
Together with the command for opening a database session you can set several options. The following options are possible
Option | Data Type | Description |
COMPNAME | VARCHAR(64) | The component name used to initialise the runtime environment. If it is a runtime library, the name must start with an "R". Otherwise the system considers it an application. |
APPLICATION | CHAR(3) | The application to be connected to the database. Possible values are: CAL | CPC | CON | DOM | LOA | ODB | QUE | SQL | TPL| UTI| XCI |
APPVERSION | NUMBER(5) | Version of the application. This is computed: major * 10000 + minor * 100 + correction_level. E.g. version 7.4.04 has the version identifier "70404". |
SQLMODE | VARCHAR | The SQL Mode. Possible values are: INTERNAL | ORACLE | ANSI | DB2. |
UNICODE | BOOLEAN | TRUE | 1, the connection is an unicode (UCS2) client or FALSE | 0 it is an ASCII client. |
TIMEOUT | NUMBER | The maximum allowed time of inactivity after which the connection to the database is closed by the system. |
ISOLATIONLEVEL | NUMBER | The ISOLATION LEVEL specifies whether and how shared locks and exclusive locks are implicitly requested or released. For possible values see: setTransactionIsolation() |
PACKETCOUNT | NUMBER | STRING | The number of different request packets used for the connection. Enter a positive number or UNLIMITED for an unlimited number of request packets |
STATEMENTCACHESIZE | NUMBER | STRING | The number of prepared statements to be cached for the connection for re-use. Possible values are: <n>: desired number of statements 0: no statements are cached UNLIMITED: unlimited number of statements is cached. |
Definition at line 1917 of file SQLDBC.h.
|
Creates an empty set of options. A default allocator is used.
|
|
The copy constructor.
|
|
The destructor.
|
|
Retrieves an option.
|
|
Sets an option.
|
|
|