Skip to main content

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​

NameRequiredValue
rowstrue

Any value

tabletrue

Object reference to table

NameRequiredValue
hosttruestring
schemafalse

Object reference to schema

database_link.authenticated_by​

database_link.authenticated_by attributes​
NameRequiredValue
passwordfalsestring
usertruestring

database_link.connect​

database_link.connect attributes​
NameRequiredValue
credentialfalsestring
current_userfalsebool
passwordfalsestring
userfalsestring
database_link.connect constraints​
ConstraintValue
Requiredfalse
Require Namefalse
Mutually exclusive sets[current_user, user, credential]
One of required sets[current_user, user, credential]
ConstraintValue
Requiredfalse
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​

NameRequiredValue
astruestring
commentfalsestring
deterministicfalsebool
returntrue

Function return type can be one of:

  1. Schema type
  2. Raw expression defined with sql("expr")
  3. Object reference to object_type
  4. Object reference to varray
  5. Object reference to nested_table
schematrue

Object reference to schema

function blocks​

function.annotation​

function.annotation constraints​
ConstraintValue
Requiredfalse
Require Namefalse
Allow unknown blockstrue
Allow unknown attributestrue

function.arg​

function.arg attributes​
NameRequiredValue
defaultfalse

Function argument default value can be one of:

  1. bool
  2. string
  3. number
  4. Raw expression defined with sql("expr")
modefalse

enum (IN, OUT, INOUT)

nocopyfalsebool
typetrue

Function argument type can be one of:

  1. Schema type
  2. Raw expression defined with sql("expr")
  3. Object reference to object_type
  4. Object reference to varray
  5. Object reference to nested_table
function.arg constraints​
ConstraintValue
Requiredfalse
Require Name (e.g., function.arg "name" )true
Repeatabletrue

function constraints​

ConstraintValue
Requiredfalse
Require Name (e.g., function "name" )true
Allow Qualifier (e.g., function "schema" "name" )true

index_type​

index_type attributes​

NameRequiredValue
impl_typetrue

Object reference to object_type

local_partitionfalsebool
schematrue

Object reference to schema

system_managedfalsebool

index_type blocks​

index_type.operator​

index_type.operator attributes​
NameRequiredValue
operatortrue

Object reference to operator

param_typesfalse

List of schema types

index_type.operator constraints​
ConstraintValue
Requiredtrue
Require Namefalse
Repeatabletrue

index_type constraints​

ConstraintValue
Requiredfalse
Require Name (e.g., index_type "name" )true
Allow Qualifier (e.g., index_type "schema" "name" )true

nested_table​

nested_table attributes​

NameRequiredValue
schematrue

Object reference to schema

typetrue

Element type can be one of:

  1. Schema type
  2. Raw expression defined with sql("expr")
  3. Object reference to object_type
  4. Object reference to varray
  5. Object reference to nested_table

nested_table constraints​

ConstraintValue
Requiredfalse
Require Name (e.g., nested_table "name" )true
Allow Qualifier (e.g., nested_table "schema" "name" )true

object_type​

object_type attributes​

NameRequiredValue
finalfalsebool
schematrue

Object reference to schema

underfalse

Object reference to object_type

object_type blocks​

object_type.attribute​

object_type.attribute attributes​
NameRequiredValue
typetrue

Attribute type can be one of:

  1. Schema type
  2. Raw expression defined with sql("expr")
  3. Object reference to object_type
  4. Object reference to varray
  5. Object reference to nested_table
object_type.attribute constraints​
ConstraintValue
Requiredfalse
Require Name (e.g., object_type.attribute "name" )true

object_type.constructor​

object_type.constructor attributes​
NameRequiredValue
asfalsestring
object_type.constructor blocks​

object_type.constructor.arg​

object_type.constructor.arg attributes​
NameRequiredValue
defaultfalse

Constructor argument default value can be one of:

  1. bool
  2. string
  3. number
  4. Raw expression defined with sql("expr")
modefalse

enum (IN, OUT, INOUT)

nocopyfalsebool
typefalse

Argument type can be one of:

  1. Schema type
  2. Raw expression defined with sql("expr")
  3. Object reference to object_type
  4. Object reference to varray
  5. Object reference to nested_table
object_type.constructor.arg constraints​
ConstraintValue
Requiredfalse
Require Name (e.g., object_type.constructor.arg "name" )true

object_type.constructor.self​

object_type.constructor.self attributes​
NameRequiredValue
modefalse

enum (IN, OUT, INOUT)

nocopyfalsebool

object_type.function​

object_type.function attributes​
NameRequiredValue
asfalsestring
finalfalsebool
overridingfalsebool
returnfalse

Return type can be one of:

  1. Schema type
  2. Raw expression defined with sql("expr")
  3. Object reference
staticfalsebool
object_type.function blocks​

object_type.function.annotation​

object_type.function.annotation constraints​
ConstraintValue
Requiredfalse
Require Namefalse
Allow unknown blockstrue
Allow unknown attributestrue

object_type.function.arg​

object_type.function.arg attributes​
NameRequiredValue
defaultfalse

Function argument default value can be one of:

  1. bool
  2. string
  3. number
  4. Raw expression defined with sql("expr")
modefalse

enum (IN, OUT, INOUT)

nocopyfalsebool
typefalse

Argument type can be one of:

  1. Schema type
  2. Raw expression defined with sql("expr")
  3. Object reference to object_type
  4. Object reference to varray
  5. Object reference to nested_table
object_type.function.arg constraints​
ConstraintValue
Requiredfalse
Require Name (e.g., object_type.function.arg "name" )true

object_type.function.self​

object_type.function.self attributes​
NameRequiredValue
modefalse

enum (IN, OUT, INOUT)

nocopyfalsebool
object_type.function constraints​
ConstraintValue
Requiredfalse
Require Name (e.g., object_type.function "name" )true
Repeatabletrue

object_type.map​

object_type.map attributes​
NameRequiredValue
asfalsestring
finalfalsebool
overridingfalsebool
returnfalse

Return type can be one of:

  1. Schema type
  2. Raw expression defined with sql("expr")
  3. Object reference
staticfalsebool
object_type.map blocks​

object_type.map.arg​

object_type.map.arg attributes​
NameRequiredValue
defaultfalse

Map argument default value can be one of:

  1. bool
  2. string
  3. number
  4. Raw expression defined with sql("expr")
modefalse

enum (IN, OUT, INOUT)

nocopyfalsebool
typefalse

Argument type can be one of:

  1. Schema type
  2. Raw expression defined with sql("expr")
  3. Object reference to object_type
  4. Object reference to varray
  5. Object reference to nested_table
object_type.map.arg constraints​
ConstraintValue
Requiredfalse
Require Name (e.g., object_type.map.arg "name" )true

object_type.map.self​

object_type.map.self attributes​
NameRequiredValue
modefalse

enum (IN, OUT, INOUT)

nocopyfalsebool
object_type.map constraints​
ConstraintValue
Requiredfalse
Require Name (e.g., object_type.map "name" )true

object_type.order​

object_type.order attributes​
NameRequiredValue
asfalsestring
finalfalsebool
overridingfalsebool
returnfalse

Return type can be one of:

  1. Schema type
  2. Raw expression defined with sql("expr")
  3. Object reference
staticfalsebool
object_type.order blocks​

object_type.order.arg​

object_type.order.arg attributes​
NameRequiredValue
defaultfalse

Order argument default value can be one of:

  1. bool
  2. string
  3. number
  4. Raw expression defined with sql("expr")
modefalse

enum (IN, OUT, INOUT)

nocopyfalsebool
typefalse

Argument type can be one of:

  1. Schema type
  2. Raw expression defined with sql("expr")
  3. Object reference to object_type
  4. Object reference to varray
  5. Object reference to nested_table
object_type.order.arg constraints​
ConstraintValue
Requiredfalse
Require Name (e.g., object_type.order.arg "name" )true

object_type.order.self​

object_type.order.self attributes​
NameRequiredValue
modefalse

enum (IN, OUT, INOUT)

nocopyfalsebool
object_type.order constraints​
ConstraintValue
Requiredfalse
Require Name (e.g., object_type.order "name" )true

object_type.procedure​

object_type.procedure attributes​
NameRequiredValue
asfalsestring
finalfalsebool
overridingfalsebool
staticfalsebool
object_type.procedure blocks​

object_type.procedure.annotation​

object_type.procedure.annotation constraints​
ConstraintValue
Requiredfalse
Require Namefalse
Allow unknown blockstrue
Allow unknown attributestrue

object_type.procedure.arg​

object_type.procedure.arg attributes​
NameRequiredValue
defaultfalse

Procedure argument default value can be one of:

  1. bool
  2. string
  3. number
  4. Raw expression defined with sql("expr")
modefalse

enum (IN, OUT, INOUT)

nocopyfalsebool
typefalse

Argument type can be one of:

  1. Schema type
  2. Raw expression defined with sql("expr")
  3. Object reference to object_type
  4. Object reference to varray
  5. Object reference to nested_table
object_type.procedure.arg constraints​
ConstraintValue
Requiredfalse
Require Name (e.g., object_type.procedure.arg "name" )true

object_type.procedure.self​

object_type.procedure.self attributes​
NameRequiredValue
modefalse

enum (IN, OUT, INOUT)

nocopyfalsebool
object_type.procedure constraints​
ConstraintValue
Requiredfalse
Require Name (e.g., object_type.procedure "name" )true
Repeatabletrue

object_type constraints​

ConstraintValue
Requiredfalse
Require Name (e.g., object_type "name" )true
Allow Qualifier (e.g., object_type "schema" "name" )true
Mutually exclusive sets[map, order]

operator​

operator attributes​

NameRequiredValue
schematrue

Object reference to schema

operator blocks​

operator.binding​

operator.binding attributes​
NameRequiredValue
argsfalse

List of schema types

compute_ancillaryfalsebool
functiontrue

Binding function can be one of:

  1. Object reference to function
  2. Object reference to object_type.function
  3. Object reference to object_type.procedure
impl_typefalse

Object reference to object_type

returntrue

Return type can be one of:

  1. Schema type
  2. Raw expression defined with sql("expr")
  3. Object reference
with_index_contextfalsebool
operator.binding constraints​
ConstraintValue
Requiredtrue
Require Namefalse
Repeatabletrue

operator constraints​

ConstraintValue
Requiredfalse
Require Name (e.g., operator "name" )true
Allow Qualifier (e.g., operator "schema" "name" )true

permission​

permission attributes​

NameRequiredValue
fortrue

Permission target resource can be one of:

  1. Object reference to schema
  2. Object reference to table
  3. Object reference to view
  4. Object reference to function
  5. Object reference to procedure
  6. Object reference to table.column
  7. Object reference to view.column
grantablefalsebool
privilegestrue

List of strings or/and enums (ALTER, DEBUG, DELETE, EXECUTE, INDEX, INSERT, READ, REFERENCES, SELECT, UPDATE, WRITE)

totrue

Permission grantee (name or role reference) can be one of:

  1. string
  2. Object reference to role

permission constraints​

ConstraintValue
Requiredfalse
Require Namefalse
Repeatabletrue

procedure​

The procedure block describes a procedure in a database schema.

procedure "proc" {
schema = schema.public
lang = SQL
arg "a" {
type = integer
}
...
}

procedure attributes​

NameRequiredValue
astruestring
commentfalsestring
schematrue

Object reference to schema

procedure blocks​

procedure.annotation​

procedure.annotation constraints​
ConstraintValue
Requiredfalse
Require Namefalse
Allow unknown blockstrue
Allow unknown attributestrue

procedure.arg​

procedure.arg attributes​
NameRequiredValue
defaultfalse

Procedure argument default value can be one of:

  1. bool
  2. string
  3. number
  4. Raw expression defined with sql("expr")
modefalse

enum (IN, OUT, INOUT)

nocopyfalsebool
typetrue

Procedure argument type can be one of:

  1. Schema type
  2. Raw expression defined with sql("expr")
  3. Object reference to object_type
  4. Object reference to varray
  5. Object reference to nested_table
procedure.arg constraints​
ConstraintValue
Requiredfalse
Require Name (e.g., procedure.arg "name" )true
Repeatabletrue

procedure constraints​

ConstraintValue
Requiredfalse
Require Name (e.g., procedure "name" )true
Allow Qualifier (e.g., procedure "schema" "name" )true

role​

role attributes​

NameRequiredValue
authfalsestring
auth_packagefalsestring
member_offalse

List of object reference to role

passwordfalsestring

role blocks​

role.membership​

The membership block describes a membership in a role, along with its options.

user "vault" {
membership {
role = role.reader
admin = true
}
}
role.membership attributes​
NameRequiredValue
adminfalsebool
roletrue

Object reference to role

role.membership constraints​
ConstraintValue
Requiredfalse
Require Namefalse
Repeatabletrue

role constraints​

ConstraintValue
Requiredfalse
Require Name (e.g., role "name" )true
Repeatabletrue
Mutually exclusive sets[password, auth_package, auth]

schema​

The schema block describes a database schema.

schema "public" {
...
}

schema attributes​

NameRequiredValue
namefalsestring

schema blocks​

schema.annotation​

schema.annotation constraints​
ConstraintValue
Requiredfalse
Require Namefalse
Allow unknown blockstrue
Allow unknown attributestrue

schema constraints​

ConstraintValue
Requiredfalse
Require Name (e.g., schema "name" )true

sequence​

The sequence block describes a sequence in a database schema.

sequence "name" {
schema = schema.public
type = int
increment = 3
min_value = 9
}

sequence attributes​

NameRequiredValue
cachefalseint
cyclefalsebool
incrementfalsenumber
max_valuefalsenumber
min_valuefalsenumber
orderfalsebool
schematrue

Object reference to schema

startfalsenumber

sequence blocks​

sequence.annotation​

sequence.annotation constraints​
ConstraintValue
Requiredfalse
Require Namefalse
Allow unknown blockstrue
Allow unknown attributestrue

sequence constraints​

ConstraintValue
Requiredfalse
Require Name (e.g., sequence "name" )true
Allow Qualifier (e.g., sequence "schema" "name" )true

synonym​

synonym attributes​

NameRequiredValue
false

Referenced database link can be one of:

  1. Object reference to database_link
  2. string
objecttrue

Referenced object can be one of:

  1. Object reference to table
  2. Object reference to view
  3. Object reference to sequence
  4. Object reference to function
  5. Object reference to procedure
  6. string
schemafalse

Object reference to schema

synonym constraints​

ConstraintValue
Requiredfalse
Require Name (e.g., synonym "name" )true
Allow Qualifier (e.g., synonym "schema" "name" )true

table​

The table block describes a table in a database schema.

table "users" {
schema = schema.public
column "id" {
type = int
}
...
}

table attributes​

NameRequiredValue
commentfalsestring
depends_onfalse

List of object references

schematrue

Object reference to schema

table blocks​

table.annotation​

table.annotation constraints​
ConstraintValue
Requiredfalse
Require Namefalse
Allow unknown blockstrue
Allow unknown attributestrue

table.check​

table.check attributes​
NameRequiredValue
exprtruestring
table.check constraints​
ConstraintValue
Requiredfalse
Require Namefalse
Repeatabletrue

table.column​

table.column attributes​
NameRequiredValue
asfalsestring
collatefalsestring
commentfalsestring
defaultfalse

Column default value can be one of:

  1. bool
  2. string
  3. number
  4. Raw expression defined with sql("expr")
nullfalsebool
typetrue

Column type can be one of:

  1. Schema type
  2. Raw expression defined with sql("expr")
  3. Object reference to object_type
  4. Object reference to varray
  5. Object reference to nested_table
table.column blocks​

table.column.annotation​

table.column.annotation constraints​
ConstraintValue
Requiredfalse
Require Namefalse
Allow unknown blockstrue
Allow unknown attributestrue

table.column.as​

table.column.as attributes​
NameRequiredValue
exprtruestring
typefalse

enum (VIRTUAL)

table.column.default​

table.column.default attributes​
NameRequiredValue
astrue

Column default value can be one of:

  1. bool
  2. string
  3. number
  4. Raw expression defined with sql("expr")
on_nulltrue

enum (INSERT_ONLY, INSERT_AND_UPDATE)

table.column.identity​

table.column.identity attributes​
NameRequiredValue
cachefalseint
cyclefalsebool
generatedfalse

enum (ALWAYS, BY_DEFAULT)

incrementfalsenumber
max_valuefalsenumber
min_valuefalsenumber
on_nullfalse

enum (INSERT_ONLY, INSERT_AND_UPDATE)

orderfalsebool
startfalsenumber
table.column constraints​
ConstraintValue
Requiredfalse
Require Name (e.g., table.column "name" )true
Mutually exclusive sets[as (attribute), as (block)]

table.foreign_key​

table.foreign_key attributes​
NameRequiredValue
columnstrue

Foreign key columns can be one of:

  1. List of object reference to column
  2. List of object reference to table.column
on_deletefalse

enum (NO_ACTION, CASCADE, SET_NULL)

ref_columnstrue

Foreign key reference columns can be one of:

  1. List of object reference to column
  2. List of object reference to table.column
table.foreign_key constraints​
ConstraintValue
Requiredfalse
Require Name (e.g., table.foreign_key "name" )true

table.index​

table.index attributes​
NameRequiredValue
bitmapfalsebool
columnsfalse

Index columns can be one of:

  1. List of object reference to column
  2. List of object reference to table.column
domainfalse

Domain index type can be one of:

  1. string
  2. Object reference to index_type
parametersfalsestring
reversedfalsebool
uniquefalsebool
table.index blocks​

table.index.on​

table.index.on attributes​
NameRequiredValue
columnfalse

Index columns can be one of:

  1. Object reference to column
  2. Object reference to table.column
descfalsebool
exprfalsestring
table.index.on constraints​
ConstraintValue
Requiredfalse
Require Namefalse
Repeatabletrue
Mutually exclusive sets[column, expr]

table.index.physical​

table.index.physical attributes​
NameRequiredValue
initransfalseint
pctfreefalseint
pctusedfalseint
tablespacefalsestring
table.index.physical blocks​

table.index.physical.storage​

table.index.physical.storage attributes​
NameRequiredValue
buffer_poolfalse

enum (KEEP, RECYCLE, DEFAULT)

cell_flash_cachefalse

enum (KEEP, NONE, DEFAULT)

flash_cachefalse

enum (KEEP, NONE, DEFAULT)

freelist_groupsfalseint
freelistsfalseint
initialfalseint
max_extentsfalseint
min_extentsfalseint
nextfalseint
pct_increasefalseint
table.index constraints​
ConstraintValue
Requiredfalse
Require Name (e.g., table.index "name" )true
Mutually exclusive sets[columns, on]
One of required sets[columns, on]

table.physical​

table.physical attributes​
NameRequiredValue
initransfalseint
pctfreefalseint
pctusedfalseint
tablespacefalsestring
table.physical blocks​

table.physical.storage​

table.physical.storage attributes​
NameRequiredValue
buffer_poolfalse

enum (KEEP, RECYCLE, DEFAULT)

cell_flash_cachefalse

enum (KEEP, NONE, DEFAULT)

flash_cachefalse

enum (KEEP, NONE, DEFAULT)

freelist_groupsfalseint
freelistsfalseint
initialfalseint
max_extentsfalseint
min_extentsfalseint
nextfalseint
pct_increasefalseint

table.primary_key​

table.primary_key attributes​
NameRequiredValue
columnsfalse

Primary key columns can be one of:

  1. List of object reference to column
  2. List of object reference to table.column
commentfalsestring
deferrablefalse

enum (INITIALLY_IMMEDIATE, INITIALLY_DEFERRED)

enabledfalsebool
indexfalse

Object reference to index

relyfalsebool
validatedfalsebool
table.primary_key blocks​

table.primary_key.on​

table.primary_key.on attributes​
NameRequiredValue
columntrue

Primary key columns can be one of:

  1. Object reference to column
  2. Object reference to table.column
descfalsebool
table.primary_key.on constraints​
ConstraintValue
Requiredfalse
Require Namefalse
Repeatabletrue
table.primary_key constraints​
ConstraintValue
Requiredfalse
Require Name (e.g., table.primary_key "name" )true
Mutually exclusive sets[columns, on]
One of required sets[columns, on]

table.temporary​

table.temporary attributes​
NameRequiredValue
on_commitfalse

enum (DELETE_ROWS, PRESERVE_ROWS)

table.unique​

table.unique attributes​
NameRequiredValue
columnsfalse

Unique constraint columns can be one of:

  1. List of object reference to column
  2. List of object reference to table.column
deferrablefalse

enum (INITIALLY_IMMEDIATE, INITIALLY_DEFERRED)

enabledfalsebool
indexfalse

Object reference to index

relyfalsebool
validatedfalsebool
table.unique blocks​

table.unique.on​

table.unique.on attributes​
NameRequiredValue
columnfalse

Unique constraint columns can be one of:

  1. Object reference to column
  2. Object reference to table.column
descfalsebool
exprfalsestring
table.unique.on constraints​
ConstraintValue
Requiredfalse
Require Namefalse
Repeatabletrue
Mutually exclusive sets[column, expr]
table.unique constraints​
ConstraintValue
Requiredfalse
Require Name (e.g., table.unique "name" )true
Mutually exclusive sets[columns, on]
One of required sets[columns, on]

table constraints​

ConstraintValue
Requiredfalse
Require Name (e.g., table "name" )true
Allow Qualifier (e.g., table "schema" "name" )true

trigger​

The trigger block describes a trigger on a table in a database schema.

trigger "trigger_orders_audit" {
on = table.orders
...
}

trigger attributes​

NameRequiredValue
asfalsestring
callfalsestring
followsfalse

Object reference to trigger

forfalse

enum (ROW, STATEMENT)

foreachfalse

enum (ROW, STATEMENT)

ontrue

Trigger on can be one of:

  1. Object reference to table
  2. Object reference to view
precedesfalse

Object reference to trigger

whenfalsestring

trigger blocks​

trigger.after​

trigger.after attributes​
NameRequiredValue
deletefalsebool
insertfalsebool
truncatefalsebool
updatefalsebool
update_offalse

Trigger update_of columns can be one of:

  1. List of object reference to view.column
  2. List of object reference to table.column
trigger.after constraints​
ConstraintValue
Requiredfalse
Require Namefalse
Mutually exclusive sets[update, update_of]
One of required sets[insert, delete, truncate, update, update_of]

trigger.annotation​

trigger.annotation constraints​
ConstraintValue
Requiredfalse
Require Namefalse
Allow unknown blockstrue
Allow unknown attributestrue

trigger.before​

trigger.before attributes​
NameRequiredValue
deletefalsebool
insertfalsebool
truncatefalsebool
updatefalsebool
update_offalse

Trigger update_of columns can be one of:

  1. List of object reference to view.column
  2. List of object reference to table.column
trigger.before constraints​
ConstraintValue
Requiredfalse
Require Namefalse
Mutually exclusive sets[update, update_of]
One of required sets[insert, delete, truncate, update, update_of]

trigger.instead_of​

trigger.instead_of attributes​
NameRequiredValue
deletefalsebool
insertfalsebool
truncatefalsebool
updatefalsebool
update_offalse

Trigger update_of columns can be one of:

  1. List of object reference to view.column
  2. List of object reference to table.column
trigger.instead_of constraints​
ConstraintValue
Requiredfalse
Require Namefalse
Mutually exclusive sets[update, update_of]
One of required sets[insert, delete, truncate, update, update_of]

trigger.referencing​

trigger.referencing attributes​
NameRequiredValue
newfalsestring
oldfalsestring
parentfalsestring
trigger.referencing constraints​
ConstraintValue
Requiredfalse
Require Namefalse
Repeatabletrue

trigger constraints​

ConstraintValue
Requiredfalse
Require Name (e.g., trigger "name" )true
Repeatabletrue
Mutually exclusive sets[foreach, for], [follows, precedes], [before, after, instead_of], [as, call]
One of required sets[before, after, instead_of], [as, call]

varray​

varray attributes​

NameRequiredValue
limittrueint
schematrue

Object reference to schema

typetrue

Element type can be one of:

  1. Schema type
  2. Raw expression defined with sql("expr")
  3. Object reference to object_type
  4. Object reference to varray
  5. Object reference to nested_table

varray constraints​

ConstraintValue
Requiredfalse
Require Name (e.g., varray "name" )true
Allow Qualifier (e.g., varray "schema" "name" )true

view​

The view block describes a view in a database schema.

view "clean_users" {
schema = schema.public
column "id" {
type = int
}
...
}

view attributes​

NameRequiredValue
astruestring
commentfalsestring
depends_onfalse

List of object references

schematrue

Object reference to schema

view blocks​

view.annotation​

view.annotation constraints​
ConstraintValue
Requiredfalse
Require Namefalse
Allow unknown blockstrue
Allow unknown attributestrue

view.column​

view.column attributes​
NameRequiredValue
commentfalsestring
nullfalsebool
typetrue

Column type can be one of:

  1. Schema type
  2. Raw expression defined with sql("expr")
  3. Object reference to object_type
  4. Object reference to varray
  5. Object reference to nested_table
view.column blocks​

view.column.annotation​

view.column.annotation constraints​
ConstraintValue
Requiredfalse
Require Namefalse
Allow unknown blockstrue
Allow unknown attributestrue
view.column constraints​
ConstraintValue
Requiredfalse
Require Name (e.g., view.column "name" )true

view constraints​

ConstraintValue
Requiredfalse
Require Name (e.g., view "name" )true
Allow Qualifier (e.g., view "schema" "name" )true