class Granite::Connections
- Granite::Connections
- Reference
- Object
Defined in:
granite/connections.crClass Method Summary
- .<<(data : NamedTuple(name: String, reader: String, writer: String, adapter_type: Granite::Adapter::Base.class)) : Nil
-
.<<(adapter : Granite::Adapter::Base) : Nil
Registers the given adapter.
-
.[](name : String) : NamedTuple(writer: Granite::Adapter::Base, reader: Granite::Adapter::Base) | Nil
Returns a registered connection with the given name, otherwise
nil
. - .connection_switch_wait_period : Int32
- .connection_switch_wait_period=(connection_switch_wait_period : Int32)
- .first_connection
- .first_reader : Granite::Adapter::Base
- .first_writer : Granite::Adapter::Base
- .registered_connections
Class Method Detail
def self.<<(data : NamedTuple(name: String, reader: String, writer: String, adapter_type: Granite::Adapter::Base.class)) : Nil
#
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) : NamedTuple(writer: Granite::Adapter::Base, reader: Granite::Adapter::Base) | Nil
#
Returns a registered connection with the given name, otherwise nil
.