Namespace for HANA database access
Classes
- CallableStatement
- Connection
- ParameterMetaData
- PreparedStatement
- ResultSet
- ResultSetMetaData
- SQLException
Members
-
<static> isolation
-
Constants that represent the isolation levels for a transaction
Properties:
Name Type Default READ_COMMITTEDnumber 2 REPEATABLE_READnumber 4 SERIALIZABLEnumber 8 -
<static> types
-
Set of constants of the database column types
Properties:
Name Type Default TINYINTnumber 1 SMALLINTnumber 2 INTnumber 3 INTEGERnumber 3 BIGINTnumber 4 DECIMALnumber 5 REALnumber 6 DOUBLEnumber 7 CHARnumber 8 VARCHARnumber 9 NCHARnumber 10 NVARCHARnumber 11 BINARYnumber 12 VARBINARYnumber 13 DATEnumber 14 TIMEnumber 15 TIMESTAMPnumber 16 CLOBnumber 25 NCLOBnumber 26 BLOBnumber 27 TABLEnumber 45 SMALLDECIMALnumber 47 TEXTnumber 51 SHORTTEXTnumber 52 ALPHANUMnumber 55 SECONDDATEnumber 62
Methods
-
<static> async getConnection(sqlcc, isolationLevel) → {$.db.Connection}
-
Returns a connection to the database
Parameters:
Name Type Argument Default Description sqlccstring <optional>
Specifies XS SQL Connection Configuration file(*.xssqlcc) used to create the connection. isolationLevelnumber <optional>
$.db.isolation.READ_COMMITTED Specifies the transaction isolation level, for example, $.db.isolation.READ_COMMITTED, $.db.isolation.REPEATABLE_READ, or $.db.isolation.SERIALIZABLE. Default is $.db.isolation.READ_COMMITTED. - Deprecated:
-
- This version of getConnection is deprecated. Please use the one with the object parameter.
Returns:
Connection - The internal connection to the database with the user of the current session.- Type
- $.db.Connection
-
<static> async getConnection(configurationObject) → {$.db.Connection}
-
Returns a connection to the database
Parameters:
Name Type Argument Description configurationObject$.db~configurationObject <optional>
object Object may specify the following optional parameters: isolation level, sqlcc and locale to configure the connection. Returns:
Connection - The internal connection to the database with the user of the current session.- Type
- $.db.Connection
Type Definitions
-
configurationObject
-
Type:
- object
Properties:
Name Type Argument Default Description sqlccstring <optional>
Specifies XS SQL Connection Configuration file (*.xssqlcc) used to create the connection. isolationLevelnumber <optional>
$.db.isolation.READ_COMMITTED Specifies the transaction isolation level, for example, $.db.isolation.READ_COMMITTED, $.db.isolation.REPEATABLE_READ, or $.db.isolation.SERIALIZABLE. Default is $.db.isolation.READ_COMMITTED. localestring <optional>
Locale to configure the connection in IETF (BCP 47) format. Configuring the connection with a locale enables coherent behavior of request-based and background processing (e.g., when XS Jobs and HTTP Requests trigger the execution of the same script).