Cols.type()
note
This article is about the type() function of the Cols object.
Cols.type()
Gets a type indication for the first column in scope.
Returns a string, or undefined as follows:
| Value | Type of column |
|---|---|
'C' | Column declared in Definer with Type = Database, or a column of a variable data source. |
'E' | Column of an embedded data source |
'O' | Column of an output expression |
undefined | Column declared in Definer with Type = Virtual |
Syntax
$.udb( *ds* ).cols( [columns] ).type()
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 colType = $.udb('EMP').cols('EMPLOYEE_ID').type();