Class: Sequel::SchemaSharding::ConnectionStrategy::Random
- Inherits:
-
Object
- Object
- Sequel::SchemaSharding::ConnectionStrategy::Random
- Defined in:
- lib/sequel/schema-sharding/connection_strategies/random.rb
Class Method Summary collapse
Class Method Details
.choose(db, config) ⇒ Object
10 11 12 |
# File 'lib/sequel/schema-sharding/connection_strategies/random.rb', line 10 def self.choose(db, config) config['replicas'].sample end |