Oracle Schema
data
The data block defines seed/lookup data for a table.
data {
table = table.countries
rows = [
{ code = "US", name = "United States" },
{ code = "CA", name = "Canada" },
]
}
data attributes
| Name | Required | Value |
|---|---|---|
rows | true | Any value |
table | true | Object reference to |
database_link
database_link attributes
| Name | Required | Value |
|---|---|---|
host | true | string |
schema | false | Object reference to |
database_link blocks
database_link.authenticated_by
database_link.authenticated_by attributes
| Name | Required | Value |
|---|---|---|
password | false | string |
user | true | string |
database_link.connect
database_link.connect attributes
| Name | Required | Value |
|---|---|---|
credential | false | string |
current_user | false | bool |
password | false | string |
user | false | string |
database_link.connect constraints
| Constraint | Value |
|---|---|
| Required | false |
| Require Name | false |
| Mutually exclusive sets | [current_user, user, credential] |
| One of required sets | [current_user, user, credential] |
database_link constraints
| Constraint | Value |
|---|---|
| Required | false |
Require Name (e.g., database_link "name" ) | true |
Allow Qualifier (e.g., database_link "schema" "name" ) | true |
function
The function block describes a function in a database schema.
function "positive" {
schema = schema.public
lang = SQL
arg "v" {
type = integer
}
...
}
function attributes
| Name | Required | Value |
|---|---|---|
as | true | string |
comment | false | string |
deterministic | false | bool |
return | true | Function return type can be one of:
|
schema | true | Object reference to |
function blocks
function.annotation
function.annotation constraints
| Constraint | Value |
|---|---|
| Required | false |
| Require Name | false |
| Allow unknown blocks | true |
| Allow unknown attributes | true |
function.arg
function.arg attributes
| Name | Required | Value |
|---|---|---|
default | false | Function argument default value can be one of:
|
mode | false |
|
nocopy | false | bool |
type | true | Function argument type can be one of:
|
function.arg constraints
| Constraint | Value |
|---|---|
| Required | false |
Require Name (e.g., function.arg "name" ) | true |
| Repeatable | true |
function constraints
| Constraint | Value |
|---|---|
| Required | false |
Require Name (e.g., function "name" ) | true |
Allow Qualifier (e.g., function "schema" "name" ) | true |
index_type
index_type attributes
| Name | Required | Value |
|---|---|---|
impl_type | true | Object reference to |
local_partition | false | bool |
schema | true | Object reference to |
system_managed | false | bool |
index_type blocks
index_type.operator
index_type.operator attributes
| Name | Required | Value |
|---|---|---|
operator | true | Object reference to |
param_types | false | List of schema types |
index_type.operator constraints
| Constraint | Value |
|---|---|
| Required | true |
| Require Name | false |
| Repeatable | true |
index_type constraints
| Constraint | Value |
|---|---|
| Required | false |
Require Name (e.g., index_type "name" ) | true |
Allow Qualifier (e.g., index_type "schema" "name" ) | true |
nested_table
nested_table attributes
| Name | Required | Value |
|---|---|---|
schema | true | Object reference to |
type | true | Element type can be one of:
|
nested_table constraints
| Constraint | Value |
|---|---|
| Required | false |
Require Name (e.g., nested_table "name" ) | true |
Allow Qualifier (e.g., nested_table "schema" "name" ) | true |
object_type
object_type attributes
| Name | Required | Value |
|---|---|---|
final | false | bool |
schema | true | Object reference to |
under | false | Object reference to |