Read-only columns
- Last Updated: June 7, 2023
- 1 minute read
- DataDirect Connectors
- JDBC
- Autonomous REST Connector 6.0
- Documentation
You can designate columns as read-only, which overrides any write operations enabled for
the table. To flag a column as read-only, add the #readOnly element after
the data type element, separated by a comma. Note that columns marked with
#key (primary key) element are read-only by default.
In the following example, the postion_title column has
been designated as read-only, and the employeeID column is read-only
because it has been designated the primary key.
{
"my_table":{
"#path":[
"https://example.com/employees",
"https://example.com/employees/{id}"]
"#update":"http://example.com/countries/{id}",
"employeeID":"VarChar(32),#key",
"position_title":"VarChar(46),#readOnly",
"start_year":"Integer"
}
}