Class/Module Index [+]

Quicksearch

DataMapper::Adapters

Public Class Methods

in_memory_adapter_path() click to toggle source

The path used to require the in memory adapter

@see DataMapper.setup

@return [String]

the path used to require the desired in memory adapter

@api semipublic

# File lib/dm-core/adapters.rb, line 40
def self.in_memory_adapter_path
  @in_memory_adapter_path ||= 'dm-core/adapters/in_memory_adapter'
end
in_memory_adapter_path=(path) click to toggle source

The path used to require the in memory adapter

Set this if you want to register your own adapter to be used when you specify an 'in_memory' connection during

@see DataMapper.setup

@param [String] path

the path used to require the desired in memory adapter

@api semipublic

# File lib/dm-core/adapters.rb, line 28
def self.in_memory_adapter_path=(path)
  @in_memory_adapter_path = path
end
new(repository_name, options) click to toggle source

Set up an adapter for a storage engine

@see DataMapper.setup

@api private

# File lib/dm-core/adapters.rb, line 11
def self.new(repository_name, options)
  options = normalize_options(options)
  adapter_class(options.fetch(:adapter)).new(repository_name, options)
end

Public Instance Methods

const_added(const_name) click to toggle source

@api private

# File lib/dm-core/adapters.rb, line 218
def const_added(const_name)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.