Module DataMapper
In: lib/dm-core.rb
lib/dm-core/adapters/abstract_adapter.rb
lib/dm-core/adapters/data_objects_adapter.rb
lib/dm-core/adapters/in_memory_adapter.rb
lib/dm-core/adapters/mysql_adapter.rb
lib/dm-core/adapters/postgres_adapter.rb
lib/dm-core/adapters/sqlite3_adapter.rb
lib/dm-core/associations.rb
lib/dm-core/associations/many_to_many.rb
lib/dm-core/associations/many_to_one.rb
lib/dm-core/associations/one_to_many.rb
lib/dm-core/associations/one_to_one.rb
lib/dm-core/associations/relationship.rb
lib/dm-core/associations/relationship_chain.rb
lib/dm-core/auto_migrations.rb
lib/dm-core/collection.rb
lib/dm-core/dependency_queue.rb
lib/dm-core/hook.rb
lib/dm-core/identity_map.rb
lib/dm-core/is.rb
lib/dm-core/logger.rb
lib/dm-core/migrations/destructive_migrations.rb
lib/dm-core/migrator.rb
lib/dm-core/model.rb
lib/dm-core/naming_conventions.rb
lib/dm-core/property.rb
lib/dm-core/property_set.rb
lib/dm-core/query.rb
lib/dm-core/repository.rb
lib/dm-core/resource.rb
lib/dm-core/scope.rb
lib/dm-core/support/assertions.rb
lib/dm-core/support/errors.rb
lib/dm-core/transaction.rb
lib/dm-core/type.rb
lib/dm-core/type_map.rb
lib/dm-core/types.rb
lib/dm-core/types/boolean.rb
lib/dm-core/types/discriminator.rb
lib/dm-core/types/object.rb
lib/dm-core/types/paranoid_boolean.rb
lib/dm-core/types/paranoid_datetime.rb
lib/dm-core/types/serial.rb
lib/dm-core/types/text.rb
lib/dm-core/version.rb

FIXME: can we alias this to the class Text if it isn‘t already defined?

Methods

Classes and Modules

Module DataMapper::Adapters
Module DataMapper::Assertions
Module DataMapper::Associations
Module DataMapper::AutoMigrations
Module DataMapper::DestructiveMigrations
Module DataMapper::Hook
Module DataMapper::Is
Module DataMapper::Model
Module DataMapper::NamingConventions
Module DataMapper::Resource
Module DataMapper::Scope
Module DataMapper::Types
Class DataMapper::AutoMigrator
Class DataMapper::Collection
Class DataMapper::DependencyQueue
Class DataMapper::DestructiveMigrator
Class DataMapper::IdentityMap
Class DataMapper::IncompleteResourceError
Class DataMapper::Logger
Class DataMapper::MaterializationError
Class DataMapper::Migrator
Class DataMapper::ObjectNotFoundError
Class DataMapper::PersistenceError
Class DataMapper::PluginNotFoundError
Class DataMapper::Property
Class DataMapper::PropertySet
Class DataMapper::Query
Class DataMapper::Repository
Class DataMapper::RepositoryNotSetupError
Class DataMapper::Transaction
Class DataMapper::Type
Class DataMapper::TypeMap
Class DataMapper::ValidationError

Constants

VERSION = '0.9.10' unless defined?(DataMapper::VERSION)

Attributes

logger  [RW] 

Public Class methods

drops and recreates the repository upwards to match model definitions

@param [Symbol] name repository to act on, :default is the default

destructively migrates the repository upwards to match model definitions

@param [Symbol] name repository to act on, :default is the default

Block Syntax

  Pushes the named repository onto the context-stack,
  yields a new session, and pops the context-stack.

Non-Block Syntax

  Returns the current session, or if there is none,
  a new Session.

@param [Symbol] args the name of a repository to act within or return, :default is default @yield [Proc] (optional) block to execute within the context of the named repository @demo spec/integration/repository_spec.rb

Setups up a connection to a data-store

@param Symbol name a name for the context, defaults to :default @param [Hash{Symbol => String}, Addressable::URI, String] uri_or_options

  connection information

@return Repository the resulting setup repository

@raise ArgumentError "name must be a Symbol, but was…" indicates that

  an invalid argument was passed for name[Symbol]

@raise [ArgumentError] "uri_or_options must be a Hash, URI or String,

  but was..." indicates that connection information could not be gleaned
  from the given uri_or_options<Hash, Addressable::URI, String>

- @api public

[Validate]