Since

1.0

An interface for collection of result of the Query. You can not create instance from QueryResult, you should use Data.Database#query Database.query.

Example

// Assuming Database and person table already created
var rateGrater3Names = [];
// Getting people who has rate grater than 3.
var rateGrater3Result = database.query("SELECT * FROM person WHERE(rate > 3)");
for(var i = 0; i < rateGrater3Result.count() ; i++){
// Getting person name
rateGrater3Names.push( rateGrater3Result.get(i).getString('name') );
}

Hierarchy

  • QueryResult

Constructors

Methods

Properties

Constructors

Methods

  • Returns the count of the query result.

    Method

    count

    Returns

    Android

    Ios

    Since

    1.0

    Returns number

  • Returns first match from Query. If no result match with Query, will return null.

    Method

    getFirst

    Returns

    Android

    Ios

    Since

    1.0

    Returns null | DatabaseObject

  • Returns last match from Query. If no result match with Query, will return null.

    Method

    getLast

    Returns

    Android

    Ios

    Since

    1.0

    Returns null | DatabaseObject

  • Returns the element at the specified index in this query result. If index greater than count, it will throw exception

    Method

    get

    Returns

    Android

    Ios

    Throws

    Since

    1.0

    Parameters

    • index: number

    Returns null | DatabaseObject

Properties

android: Partial<{ close: any }>

Generated using TypeDoc