Implements the methods expected by the QueryCache module
# File lib/multi_db/query_cache_compat.rb, line 8 def columns(*a, &b) send_to_current(:columns, *a, &b) end
# File lib/multi_db/query_cache_compat.rb, line 17 def delete(*a, &b) send_to_master(:delete, *a, &b) end
# File lib/multi_db/query_cache_compat.rb, line 11 def insert(*a, &b) send_to_master(:insert, *a, &b) end
# 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
# File lib/multi_db/query_cache_compat.rb, line 14 def update(*a, &b) send_to_master(:update, *a, &b) end