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 getNext(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
anyany: 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 NameData TypeDescription
dtdatatableThe datatable object

Return Parameters:

Return VariableData TypeDescription
booleanboolean: True if there is a new row; false otherwise


Menu

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

Copyright 2017 Ballerina API Documentation