FIXME: can we alias this to the class Text if it isn‘t already defined?
VERSION | = | '0.9.10' unless defined?(DataMapper::VERSION) |
logger | [RW] |
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