Cols.isPrimaryKey()
note
This article is about the isPrimaryKey() function of the Cols object.
Cols.isPrimaryKey()
Detects whether the first column in scope is a primary key column.
Returns a boolean.
Syntax
$.udb( *ds* ).cols( [columns] ).isPrimaryKey()
The required ds parameter is a data source selector.
The optional columns is a column selector. If omitted, all columns in scope are selected.
Example
let isKey = $.udb('EMP').cols('EMPLOYEE_ID').isPrimaryKey();