Functions
convertCell
-
convertCell(type: string, value: RecordValue): RecordValue
-
Parameters
-
type: string
-
value: RecordValue
Returns RecordValue
convertChangeData
-
convertChangeData(columns: Columns, record: Record, options?: { skipTypes?: string[] }): Record
-
Parameters
-
columns: Columns
-
record: Record
-
Optional options:
{ skipTypes?: string[] }
-
Optional
skipTypes?: string[]
Returns Record
convertColumn
-
convertColumn(columnName: string, columns: Columns, record: Record, skipTypes: string[]): RecordValue
-
Parameters
-
columnName: string
-
columns: Columns
-
record: Record
-
skipTypes: string[]
Returns RecordValue
toArray
-
toArray(value: RecordValue, type: string): RecordValue
-
Parameters
-
value: RecordValue
-
type: string
Returns RecordValue
toBoolean
-
toBoolean(value: RecordValue): RecordValue
-
Parameters
Returns RecordValue
toJson
-
toJson(value: RecordValue): RecordValue
-
Parameters
Returns RecordValue
toNumber
-
toNumber(value: RecordValue): RecordValue
-
Parameters
Returns RecordValue
toTimestampString
-
toTimestampString(value: RecordValue): RecordValue
-
Parameters
Returns RecordValue
If the value of the cell is
null, returns null. Otherwise converts the string value to the correct type.convertCell('bool', 't') //=> true
convertCell('int8', '10') //=> 10
convertCell('_int4', '{1,2,3,4}') //=> [1,2,3,4]