Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: PASDOC-1370: Referred external link to sqlapi++ docu is not up-to-date

...

Multiexcerpt
MultiExcerptNamesql_alias


Tagged ValueDescriptionAllowed Values
General
dbConnectionStringThe format of the database connection string depends on the type of the database. For more details see Database Server-Specific Notes for SQL Adapters.
dbTypeType of the database.Oracle, SQLServer, InterBase, SQLBase, ODBC, DB2, Informix, Sybase, MySQL, PostgreSQL, SQLite, DBTypeVariable
dbTypeVariable

If the tagged value dbType is set to DBTypeValue, the dbTypeVariable tagged value is used to define the type of the database. The dbType then can be defined by a setting variable.
This is to handle the case, that you not want to hard code the dbType, but to configure it at runtime via the E2E Bridge.
See Using Global Setting Variables for more information on how to define a global setting variable in the E2E Bridge.

Info
iconfalse

Use one of the listed dbTypes in the settings variable. If you configure an unknown dbType via the E2E Bridge, the xUML Runtime will throw an error on service startup.


Any global setting variable from the E2E Bridge.
Example: {{my_setting_variable}}

userDB user. Optional the password can be given after a '/'. However, this is recommended for development purposes only.Example: {{DB_USER}}/{{DB_PASSWORD}}
optionsThis tagged value can hold a comma separated list of <name>=<value> pairs. These list elements are interpreted as native options. The possible name-value pairs depend on the database type. A comprehensive list can be found at httphttps://www.sqlapi.com/ServerSpecific/index.htmlApiDoc/servers/Example: SSPROP_INIT_ENCRYPT=VARIANT_TRUE
transactionIsolationLevel

Bridge 7 Specify here the required transaction isolation level of the SQL connection according to SQL-92 standard. Refer to Wikipedia for a detailed description of the available isolation levels.

Info
iconfalse

Please note that not all databases support all levels. In this case a database-specific mapping will occur.


Info
iconfalse

For persistent state databases no other than <UNSPECIFIED> and DBMS default are allowed.


DBMS defaultUse the default isolation level of the connected database system.
Read uncommittedLowest isolation level. Dirty reads allowed,  SQL adapter may fetch not-yet-committed changes of other transactions.
Read committedLock-based concurrency control.
Repeatable readLock-based concurrency control.
SerializableHighest isolation level. Lock-based concurrency control.
Localization
charsetAny database uses a charset to encode Strings. If the database uses UNICODE charsets (UTF-8, UTF-16, UTF-32), encoding is handled automatically. If the database is not UNICODE compliant, the Bridge assumes 7-bit ASCII by default. However, in many cases it necessary to define the charset explicitly. This is done by the tagged value charset as shown below. The charset needs to be the same as defined at the database settings. All possible charset definitions are listed in section Charset Definitions.

Example: UTF-8
See Charset Definitions for a list of possible values.

timezoneTimezone string as specified in Time Zones.Example: "Australia/Melbourne", "CET", "Etc/GMT+10"
See Time Zones for a list of possible values.
unicodeMode

Added in Builder 6.0.15.5 Runtime 2015.15 Specify the encoding for database access.

Note
iconfalse

We recommend to use the Platform default unless you suspect an encoding incompatibility (see Troubleshooting the SQL Adapter). This option represents the former behavior and is fully backwards-compatible - means, it can be used with older xUML Runtimes.
The two other (force mode) options will be ignored by older Runtimes without warning.


Platform default (default)

Use the platform default mode. This is

  • Unicode: for Windows systems
  • non-Unicode: for all others

This option is backwards compatible to older Runtimes.

UnicodeForce Unicode mode.
non-UnicodeForce non-Unicode mode.
Connection Pooling
connectionPooling


Multiexcerpt
MultiExcerptNameconnectionPooling
Added in Builder 5.1.8.58 Runtime 5.1.82.0 This tagged value controls the connection pooling. If true, each connection is put into a pool after use. If an SQL adapter requires a connection, it is taken from the pool. If no connection is available, a new connection is being created and put into the pool after use. The time the connection is kept in the pool depends on the other pooling parameters.


trueDatabase connections are pooled.
falseDatabase connections are not pooled.

maxConnectionAge


Multiexcerpt
MultiExcerptNamemaxConnectionAge

After a given connection age (in minutes) the connection will be closed and removed from the pool.


Connection age in minutes, default is 15 minutes, -1 means forever.

maxConnectionIdleTime


Multiexcerpt
MultiExcerptNamemaxConnectionIdleTime

Connections not used for the time specified (in minutes) will be closed and removed from the pool.
This is useful for connections going through firewalls because such connections might be cut off after some time.


Values in minutes, default is 60.

maxConnectionReuse


Multiexcerpt
MultiExcerptNamemaxConnectionReuse
This tagged value controls how often a connection can be re-used. After the connection has been re-used for maxConnectionReuse, it will be closed and not put back into the pool. This feature has been introduced because some databases had problems if the connection was re-used too often. Value -1 means the connection will be re-used forever. In this case you should define reasonable values for maxConnectionAge or maxConnectionIdleTime (see above).


0

pooling is implicitly switched off.

-1connections are pooled forever
a valuenumber of connections to be pooled, default is 1000.


Multiexcerpt
MultiExcerptNamemaxConnectionReuse_2


Info
iconfalse

Note that the pooling is implicitly switched off, if maxConnectionReuse is set to 0.





Qualifier
schema

String that prefixes tables and stored procedures. For example, if schema is set to S1, all tables accessing the current DB are prefixed by "S1.".

Info
iconfalse

This works only if the tables are marked using the TABLE:: keyword, e.g TABLE::TEMPLOYEE in SQL statements. If you do not prefix the table name by TABLE::, the tablename is used as it is.




tableQualifier

String that prefixes tables. For example, if tableQualifier is set to TQ1, all tables accessing the current DB are prefixed by "TQ1", e.g. TQ1TEMPLOYEE. If schema and table qualifier are given, all tables will become: <schema>.<tableQualifier><tableName>.

Multiexcerpt
MultiExcerptNametable_hint


Info
iconfalse

This works only if the tables are marked using the TABLE:: keyword, e.g TABLE::TEMPLOYEE in SQL statements. If you do not prefix the table name by TABLE::, the tablename is used as it is.






...