def use_database_pool(options)
remapped_options = seamless_database_pool_options
options.each_pair do |actions, connection_method|
unless SeamlessDatabasePool::READ_CONNECTION_METHODS.include?(connection_method)
raise "Invalid read pool method: #{connection_method}; should be one of #{SeamlessDatabasePool::READ_CONNECTION_METHODS.inspect}"
end
actions = [actions] unless actions.kind_of?(Array)
actions.each do |action|
remapped_options[action.to_sym] = connection_method
end
end
@seamless_database_pool_options = remapped_options
end