class

Granite::Connections

Inherits Reference < Object

Class methods

<<(data : NamedTuple(name: String, reader: String, writer: String, adapter_type: Granite::Adapter::Base.class)) : Nil
Source
<<(adapter : Granite::Adapter::Base) : Nil

Registers the given adapter. Raises if an adapter with the same name has already been registered.

Source
[](name : String) : NamedTuple(writer: Granite::Adapter::Base, reader: Granite::Adapter::Base) | Nil

Returns a registered connection with the given name, otherwise nil.

Source
connection_switch_wait_period
Source
connection_switch_wait_period=(connection_switch_wait_period : Int32)
Source
first_connection
Source
first_reader
Source
first_writer
Source
registered_connections
Source