Ballerina API Documentation

Functions of ballerina.lang.datatables package

function close(datatable dt)

Releases the database connection.

Parameters:

Parameter NameData TypeDescription
dtdatatableThe datatable object

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 NameData TypeDescription
dtdatatableThe datatable object

Return Parameters:

Return VariableData TypeDescription
booleanTrue if there is a new row; false otherwise

function next(datatable dt) (any )

Retrives the current row and return a struct with the data in the columns

Parameters:

Parameter NameData TypeDescription
dtdatatableThe datatable object

Return Parameters:

Return VariableData TypeDescription
anyThe resulting row as a struct


Menu

  • Functions
    • close(datatable dt)
    • hasNext(datatable dt) (boolean )
    • next(datatable dt) (any )

Copyright 2017 Ballerina API Documentation