returnType

About

Some functions have the returnType parameter. The values accepted are 1 and 2.

1

1 returns the data as JSON.

2

2 returns the data as an Array.

Example

db.getAll(1) // will return all the records as an {JSON: 'object'}
db.getAll(2) // will return all the records as an [Array]

Last updated