Module: Vorpal

Extended by:
Dsl::Configuration
Defined in:
lib/vorpal.rb,
lib/vorpal/engine.rb,
lib/vorpal/version.rb,
lib/vorpal/db_loader.rb,
lib/vorpal/exceptions.rb,
lib/vorpal/identity_map.rb,
lib/vorpal/config/configs.rb,
lib/vorpal/loaded_objects.rb,
lib/vorpal/aggregate_utils.rb,
lib/vorpal/util/array_hash.rb,
lib/vorpal/aggregate_mapper.rb,
lib/vorpal/driver/postgresql.rb,
lib/vorpal/dsl/configuration.rb,
lib/vorpal/util/string_utils.rb,
lib/vorpal/config/main_config.rb,
lib/vorpal/dsl/config_builder.rb,
lib/vorpal/aggregate_traversal.rb,
lib/vorpal/config/class_config.rb,
lib/vorpal/config/has_one_config.rb,
lib/vorpal/config/has_many_config.rb,
lib/vorpal/dsl/defaults_generator.rb,
lib/vorpal/config/foreign_key_info.rb,
lib/vorpal/config/belongs_to_config.rb,
lib/vorpal/util/hash_initialization.rb,
lib/vorpal/config/association_config.rb

Overview

Allows easy creation of Engine instances.

“‘ruby engine = Vorpal.define do

map Tree do
  attributes :name
  belongs_to :trunk
  has_many :branches
end

map Trunk do
  attributes :length
  has_one :tree
end

map Branch do
  attributes :length
  belongs_to :tree
end

end

mapper = engine.mapper_for(Tree) “‘

Defined Under Namespace

Modules: AggregateUtils, AggregateVisitorTemplate, Config, Driver, Dsl, Util Classes: AggregateMapper, AggregateTraversal, ConfigurationError, ConfigurationNotFound, DbLoader, Engine, IdentityMap, InvalidAggregateRoot, InvalidPrimaryKeyValue, InvariantViolated, LoadedObjects, LookupByFk, LookupById, LookupInstructions, OwnedObjectVisitor

Constant Summary collapse

VERSION =
"1.3.0"

Method Summary

Methods included from Dsl::Configuration

attributes, belongs_to, build_class_config, define, has_many, has_one, map