Sha256: 939617acf517b3fc3a5ec5168ec0ed59375b90f32fc2e1ebeb3574cc55c76d87
Contents?: true
Size: 387 Bytes
Versions: 58
Compression:
Stored size: 387 Bytes
Contents
# frozen_string_literal: true module Sequel # Extension for choosing a slave server module Slave # Turn to slave # # @example # DB[:users].slave.where(email: "test@test.com") # executes on a slave server # @return [Sequel::Dataset] dataset def slave server(:slave) end end Model.extend(Slave) Dataset.register_extension(:slave, Slave) end
Version data entries
58 entries across 58 versions & 1 rubygems