Skip to content
Seth Tippetts edited this page Feb 16, 2016 · 4 revisions

Methods

constructor(name, configuration, connections)

Arguments

name String

Key used to retrieve this tenant

configuration Object

Configuration object that gets passed to connection factories.

connections Object (Optional)

Key-Value pairs of connections names and factory methods

connection(name)

Returns a tenanted connection by name.

Arguments

name String

connection(name, value)

Sets a connection factory

Arguments

name String Name of the connection

value Function Connection factory method. Can return anything. The last argument is always the tenanted configuration.

Properties

name

Tenant name

config

Tenant configuration