DB Namespace


Sub-namespaces


Classes


Connection

constructor

With the help of this method you can create a new instance of Connection.

Signature

constructor(String name, String backend, Object config) : String, String, Object

Parameters

  • name
    • Name of the connection
    • Type: String
  • backend
    • Name of the backend
    • Type: String
  • config
    • Backend configuration
    • Type: Object

Returns

  • String
    • Name of the connection
  • String
    • Name of the backend
  • Object
    • Backend configuration

configure

ConfĂ­gure the connection.

Signature

configure(Function callback) : void

Parameters

  • callback
    • Function to call on finish
    • Type: Function

close

Close the connection.

Signature

close(Function callback) : void

Parameters

  • callback
    • Function to call on finish
    • Type: Function

getORM

Get the ORM specific objects (ORM and models array).

Signature

getORM(Function callback) : void

Parameters

  • callback
    • Function to call on finish
    • Type: Function