The ClientBase
is assumed as the object that all database clients
inherit from, and is used in an instanceof
check when initializing the
library. If you wish to write or customize an adapter, just inherit from
this base, with ClientBase.extend
, and you're good to go.
The methods assumed when building a client.
Gets the raw connection for the current client.
Execute a query on the specified Builder
or SchemaBuilder
interface. If a connection
is specified, use it, otherwise
acquire a connection, and then dispose of it when we're done.
Retrieves a connection from the connection pool, returning a promise.
Releases a connection from the connection pool, returning a promise.
Begins a transaction statement on the instance, resolving with the connection of the current transaction.
Finishes a transaction, taking the type
The pool defaults.
Grab the standard Object.extend
as popularized by Backbone.js.
ClientBase