lib/dynamoid/adapter.rb
# Establishes a connection to the underyling adapter and caches all its tables for speedier future lookups. Issued when the adapter is first called.
#
# @since 0.2.0
Establishes a connection to the underyling adapter and caches all its tables for speedier future lookups. Issued when the adapter is first called.
Establishes a connection to the underyling adapter and caches all its tables for speedier future lookups . Issued when the adapter is first called .
def reconnect!
      require "dynamoid/adapter/#{Dynamoid::Config.adapter}" unless Dynamoid::Adapter.const_defined?(Dynamoid::Config.adapter.camelcase)
      @adapter = Dynamoid::Adapter.const_get(Dynamoid::Config.adapter.camelcase)
      @adapter.connect! if @adapter.respond_to?(:connect!)
      self.tables = benchmark('Cache Tables') {list_tables}
    end
def reconnect! require "dynamoid/adapter/#{Dynamoid::Config.adapter}" unless Dynamoid :: Adapter . const_defined? ( Dynamoid :: Config . adapter . camelcase ) @adapter = Dynamoid :: Adapter . const_get ( Dynamoid :: Config . adapter . camelcase ) @adapter . connect! if @adapter . respond_to? ( :connect! ) self . tables = benchmark ( 'Cache Tables' ) { list_tables } end
Establishes a connection to the underyling adapter and caches all its tables for speedier future lookups.
Establishes a connection to the underyling adapter and caches all its tables for speedier future lookups .
since
None