db

bim.app.data. Namespace

db

Description:
  • DB

Source:
Properties:
Name Type Description
version Object

See bim.app.data.db.version for more details.

addTable function

See bim.app.data.db.addTable for more details.

delete function

See bim.app.data.db.delete for more details.

create function

See bim.app.data.db.create for more details.

addItem function

See bim.app.data.db.addItem for more details.

addFile function

See bim.app.data.db.addFile for more details.

read function

See bim.app.data.db.read for more details.

deleteFile function

See bim.app.data.db.deleteFile for more details.

deleteItem function

See bim.app.data.db.deleteItem for more details.

Members

(static) version :Object

Description:
  • Version

Source:
Properties:
Name Type Description
set function

Push the version of database which is Object in {db: {string}, version: {string}} to private variable __versions__ {Array}.

get function

See bim.app.data.db.version.get for more details

Version

Type:
  • Object

Methods

(static) addTable(params, callback)

Description:
  • Add Table

Source:
Parameters:
Name Type Description
params Object
Properties
Name Type Description
db Object
Properties
Name Type Description
name string
version string
table string
keyPath string
columns string
callback function

(static) delete(params, callback)

Description:
  • Delete

Source:
Parameters:
Name Type Description
params *
callback *

(static) create(params, callback)

Description:
  • Create

Source:
Parameters:
Name Type Description
params *
callback *

(static) addItem(params)

Description:
  • Add Item

Source:
Parameters:
Name Type Description
params *

(static) addFile(params, callback)

Description:
  • Add File

Source:
Parameters:
Name Type Description
params *
callback *

(static) read(params, callback)

Description:
  • Read

Source:
Parameters:
Name Type Description
params *
callback *

(static) deleteFile(params, callback)

Description:
  • Delete File

Source:
Parameters:
Name Type Description
params *
callback *

(static) deleteItem(params, callback)

Description:
  • Delete Item

Source:
Parameters:
Name Type Description
params *
callback *