Skip to content
English
  • There are no suggestions because the search field is empty.

Database Base Class

All database information classes have a common set of functions and properties to help you access the data in a standard way.

asArray

property (r)

Provides all the records in this object as a normal sequential array

asMap

property (r)

Provides all the records as an array, where the index is the unique ID field.

indexOf(id)

function

Searches through the records and returns a record that matches the id supplied, or -1 if not found.

includes(id)

function

Returns true if a record with a specific id exists in the data

fromId

property (r)

Returns a specific record by ID, or null if it could not be found.

at(index)

function

Returns a record by index.

length

property (r)

Returns the number of records stored