Class: MdbAdapter

Mobizen.Apps.DB.MdbAdapter

new Mobizen.Apps.DB.MdbAdapter(db, channel)

Name Type Description
db object

intance of loki

channel string

name of db channel

Author:

Requires

  • module:es6-promise.js
  • module:loki.js

Members

channel string

dbType string

Type Definitions

db loki

Methods

add(app, doc){Promise}

Name Type Description
app string
doc object
Returns:
Type Description
Promise

all(app){Promise}

Name Type Description
app string
Returns:
Type Description
Promise

bulk(app, docs){Promise}

Name Type Description
app string
docs array
Returns:
Type Description
Promise

clear(app){Promise}

Name Type Description
app string
Returns:
Type Description
Promise

get(app, id, index){Promise}

Name Type Description
app string
id string
index number
Returns:
Type Description
Promise

group(app, id, index){Promise}

Name Type Description
app string
id string
index number
Returns:
Type Description
Promise

remove(app, dis){Promise}

Name Type Description
app string
dis array
Returns:
Type Description
Promise

update(app, doc){Promise}

Name Type Description
app string
doc object
Returns:
Type Description
Promise
comments powered by Disqus