NAME
Aniki::Handler::RoundRobin - Round robin database handler manager
METHODS
CLASS METHODS
new(%args) : Aniki::Handler::RoundRobin
Create instance of Aniki::Handler.
Arguments
connect_info : ArrayRef[HashRef]
-
Auguments for Data::WeightedRoundRobin's
new
method.Example:
[ { value => [...], # Auguments for DBI's connect method. weight => 10, }, ]
- on_connect_do : CodeRef|ArrayRef[Str]|Str =item on_disconnect_do : CodeRef|ArrayRef[Str]|Str
-
Execute SQL or CodeRef when connected/disconnected.