-
Notifications
You must be signed in to change notification settings - Fork 0
Query
Dharmesh edited this page Oct 5, 2017
·
1 revision
DB.setup(databaseJSON).then(dbInst => console.log(dbInst));
DB.getInst().
DB.getInst().databaseName.storeName.get()
.then(result => console.log(result))
.catch(error => console.error(error));
DB.getInst().databaseName.delete();
- databaseName.storeName.get()
- databaseName.storeName.get(
index
) - databaseName.storeName.get([
index
,index
]) - databaseName.storeName.getDist(
index
) - databaseName.storeName.getDist(
index
,limit
) - databaseName.storeName.getDist(
index
,limit
,start
)
- databaseName.storeName.indexName.equal('string').get()
- databaseName.storeName.indexName.startsWith('string').get()
- databaseName.storeName.indexName.endsWith('string').get()
- databaseName.storeName.indexName.greaterThan('number').get()
- databaseName.storeName.indexName.lesserThan('number').get()
- databaseName.storeName.indexName.greaterThanOrEqual('number').get()
- databaseName.storeName.indexName.lesserThanOrEqual('number').get()
- databaseName.storeName.indexName.between('start','end').get()
databaseName.storeName.getDist('index').then(result => result.count())
databaseName.storeName.getDist('index').then(result => result.avg('index'))
databaseName.storeName.get('index').then(result => result.min('index'))
databaseName.storeName.get('index').then(result => result.max('index'))
jDB - Dharmesh Hemaram