skip to main content
Using the Driver : Configuring the Relational Map : Modifying the Relational View : Designating the Primary Key
  

Try DataDirect Drivers Now
Designating the Primary Key
You can designate the primary key for a table by modifying the REST file. In the column object, add the #key after the data type element, separated by a comma. In the following example, the employeeID column has been designated the primary key for this table:
{
"my_table":{
"#path":[
"https://example.com/employees"
],
"employeeID":"VarChar(32),#key",
"position_title":"VarChar(46)",
"start_year":"Integer",
}
}
Your changes will be updated during your next connection. See "Modifying the Relational View" for details on regenerating the REST file to include your changes.