class Granite::Connections
- Granite::Connections
- Reference
- Object
Defined in:
granite/connections.crClass Method Summary
-
.<<(adapter : Granite::Adapter::Base) : Nil
Registers the given adapter.
-
.[](name : String) : Granite::Adapter::Base | Nil
Returns a registered connection with the given name, otherwise
nil
. - .registered_connections
Class Method Detail
def self.<<(adapter : Granite::Adapter::Base) : Nil
#
Registers the given adapter. Raises if an adapter with the same name has already been registered.
def self.[](name : String) : Granite::Adapter::Base | Nil
#
Returns a registered connection with the given name, otherwise nil
.