Class: db

db


new db(cfg)

Parameters:
Name Type Description
cfg Object Configuration
Properties
Name Type Description
adapters Object Adapters alias/name dictionary
connections Object Connections alias/configuration dictionary

Methods


dispose(cb)

Dispose/Close database connection.
Parameters:
Name Type Description
cb function Callback

open(model, cb)

Parameters:
Name Type Description
model Object Model definition.
cb function Callback