Permalink
Fetching contributors…
Cannot retrieve contributors at this time
34 lines (17 sloc) 500 Bytes

Database Methods

createCollection(extend)

Quickly create Collection class that references to current Database instance.

getAdapter()

Returns adapter instance

query()

Returns a new query builder of the Adapter

schema()

Returns schema object for manipulating the Database

transaction(fn)

Returns a Promise

Read more in Transaction section.

getConnection()

Returns connection of the Adapter

close()

Closes the connection

Returns a promise