restEnabledSqlDatabase
| Property | Type | Required | Default Value | Details |
|---|---|---|---|---|
name | string | Yes | data type=string; maxLen=255Enter a descriptive name for this REST Enabled SQL Service. |
endpointUrl
| Property | Type | Required | Default Value | Details |
|---|---|---|---|---|
url | string | Yes | data type=string; maxLen=4000Enter the endpoint URL for this REST Enabled SQL Service. Include the ORDS context root and schema URL prefix, e.g. https://{host}:{port}/ords/{schema}. Do not append /_/sql; Application Express will take care of that. |
endpointUrl {
url: value
}authentication
| Property | Type | Required | Default Value | Details |
|---|---|---|---|---|
credentials | reference | Yes | data type=reference; lov=COMPONENT; references=webCredential |
authentication {
credentials: @component
}database
| Property | Type | Required | Default Value | Details |
|---|---|---|---|---|
databaseType | enum | No | data type=string; lov=STATICValid values: oracle mysql | |
databaseInfo | multiline string | No | data type=multiline string; maxLen=4000Applies when databaseType is set |
database {
databaseType: oracle
databaseInfo: ```
value
```
}databaseSession
| Property | Type | Required | Default Value | Details |
|---|---|---|---|---|
initPlsqlCode | multiline string | No | data type=multiline string; maxLen=4000Enter code to be executed immediately after connecting to the REST Enabled SQL Service and before the component SQL is being executed. | |
cleanupPlsqlCode | multiline string | No | data type=multiline string; maxLen=4000Enter code to be executed immediately after the component SQL is being executed. |
databaseSession {
initPlsqlCode: ```plsql
value
```
cleanupPlsqlCode: ```plsql
value
```
}session
| Property | Type | Required | Default Value | Details |
|---|---|---|---|---|
defaultSchema | string | No | data type=string; maxLen=255Applies when databaseType = mysql | |
mysqlSqlModes | string | No | data type=string; maxLen=4000Applies when databaseType = mysql |
session {
defaultSchema: value
mysqlSqlModes: value
}dynamicConfig
| Property | Type | Required | Default Value | Details |
|---|---|---|---|---|
plsqlCode | multiline string | No | data type=multiline string; maxLen=32000A procedure which configures the Endpoint URL at runtime can be defined here. | |
procedureName | string | No | data type=string; maxLen=255Enter the name of a procedure which configures the Endpoint URL at runtime. This can be a stored procedure or a procedure defined in item PL/SQL Code. The code below is for an application that implements multi-tenancy and supports different variations of Endpoint URL for the tenants. It changes the domain name in the URL, depending on the customer (Example URLs: https://cust-01.example.com, https://cust-02.example.com): |
dynamicConfig {
plsqlCode: ```plsql
value
```
procedureName: value
}advanced
| Property | Type | Required | Default Value | Details |
|---|---|---|---|---|
staticId | string | Yes | data type=string; maxLen=255Use the Static ID to reference the REST Enabled SQL Service in API Calls. Static IDs are also used to identify an existing REST Enabled SQL Service when the application is being exported and imported to another workspace. | |
promptOnInstall | boolean | Yes | false | data type=booleanChoose whether prompts for this REST Enabled SQL Service should be displayed when the application is being imported on another Application Express instance. |
httpsHostName | string | No | data type=string; maxLen=500The host name to be matched against the common name (CN) of the remote server's certificate for an HTTPS request. It can also be a domain name like *.example.com. If NULL, the host name in the given URL will be used. | |
ordsVersion | string | No | data type=string; maxLen=255 | |
serverTimeZone | string | No | data type=string; maxLen=255 |
advanced {
staticId: value
promptOnInstall: false
httpsHostName: value
ordsVersion: value
serverTimeZone: value
}comments
| Property | Type | Required | Default Value | Details |
|---|---|---|---|---|
comments | multiline string | No | data type=multiline string; maxLen=4000 |
comments {
comments: ```
value
```
}APEXlang Example
restEnabledSqlDatabase sample (
name: value
endpointUrl {
url: value
}
authentication {
credentials: @component
}
database {
databaseType: oracle
databaseInfo: ```
value
```
}
databaseSession {
initPlsqlCode: ```plsql
value
```
cleanupPlsqlCode: ```plsql
value
```
}
session {
defaultSchema: value
mysqlSqlModes: value
}
dynamicConfig {
plsqlCode: ```plsql
value
```
procedureName: value
}
advanced {
staticId: value
promptOnInstall: false
httpsHostName: value
ordsVersion: value
serverTimeZone: value
}
comments {
comments: ```
value
```
}
)