module MultiDb::QueryCacheCompat

Implements the methods expected by the QueryCache module

Public Instance Methods

columns(*a, &b) click to toggle source
# File lib/multi_db/query_cache_compat.rb, line 8
def columns(*a, &b)
  send_to_current(:columns, *a, &b)
end
delete(*a, &b) click to toggle source
# File lib/multi_db/query_cache_compat.rb, line 17
def delete(*a, &b)
  send_to_master(:delete, *a, &b)
end
insert(*a, &b) click to toggle source
# File lib/multi_db/query_cache_compat.rb, line 11
def insert(*a, &b)
  send_to_master(:insert, *a, &b)
end
select_all(*a, &b) click to toggle source
# File lib/multi_db/query_cache_compat.rb, line 4
def select_all(*a, &b)
  next_reader! unless ConnectionProxy.sticky_slave
  send_to_current(:select_all, *a, &b)
end
update(*a, &b) click to toggle source
# File lib/multi_db/query_cache_compat.rb, line 14
def update(*a, &b)
  send_to_master(:update, *a, &b)
end