-
Notifications
You must be signed in to change notification settings - Fork 5
Working with rows — ds_row
Each returned row is wrapped within ds_row
, a map like data type designed to allow you to work with row data in a fast convenient fashion. Each ds_row
represents a row in the data source.
(column::tag), find(column::tag), find(column::string) Return the value of the specified column:
#row(::mycolumn)
#row->find('mycolumn')
Returns the value of specified columns fails if not a current column.
Returns the column value at the specified index
Returns row data as an map.
Returns row data as an array
Database name the row belongs to.
Table name the row belongs to.
Columns used by the current row.
Return the rows key column
Return the rows key value
Return the rows key columns and values (useful if multiple key columns)
The below methods can be used to modify the ds_row
internal data. None of these methods affect the data source, although it is useful to be able work with a row as if it was a map or similar.
Updates internal data — does not write to the data source.
Set the specified column
Insert / update the specified column and value
Returns a map of any modified values.
Returns list of modified keys.
The ds_row type provides a number of methods that directly modify the row at the data source although generally it's more flexible and efficient to update rows with active_statements.
Updates internal data and writes modified values to the data source.
Write any modified values to the data source.
Updates internal data and writes specified value to the data source.
Delete the row from the data source.