Functions of ballerina.lang.datatables package
function close(datatable dt)
Releases the database connection.
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
dt | datatable | The datatable object |
function getNext(datatable dt) (any )
Retrives the current row and return a struct with the data in the columns
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
dt | datatable | The datatable object |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
any | any: The resulting row as a struct |
function hasNext(datatable dt) (boolean )
Checks for a new row in the given datatable. If a new row is found, moves the cursor to it.
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
dt | datatable | The datatable object |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
boolean | boolean: True if there is a new row; false otherwise |