Module: Rod

Defined in:
lib/rod/exception.rb,
lib/rod/model.rb,
lib/rod/cache.rb,
lib/rod/utils.rb,
lib/rod/database.rb,
lib/rod/constants.rb,
lib/rod/index/base.rb,
lib/rod/join_element.rb,
lib/rod/abstract_model.rb,
lib/rod/string_element.rb,
lib/rod/index/flat_index.rb,
lib/rod/collection_proxy.rb,
lib/rod/abstract_database.rb,
lib/rod/reference_updater.rb,
lib/rod/index/segmented_index.rb

Overview

Exceptions defined by the library.

Defined Under Namespace

Modules: Index, Utils Classes: AbstractDatabase, AbstractModel, Cache, CollectionProxy, Database, DatabaseError, IdException, IncompatibleVersion, InvalidArgument, JoinElement, MissingDatabase, Model, PolymorphicJoinElement, ReferenceUpdater, RodException, StringElement, ValidationException

Constant Summary

VERSION =
"0.6.3"
DATABASE_FILE =

The name of file containing the data base.

"database.yml"
INVALID_NAMES =

Invalid names of fields.

{"rod_id" => true}
TYPE_MAPPING =
{
  :string => 'char *',
  :integer => 'long',
  :float => 'double',
  :ulong => 'unsigned long',
  :object => 'char *'
}
RUBY_TO_C_MAPPING =
{
  :string => 'StringValuePtr',
  :integer => 'NUM2LONG',
  :float => 'NUM2DBL',
  :ulong => 'NUM2ULONG'
}
C_TO_RUBY_MAPPING =
{
  :string => 'rb_str_new2',
  :integer => 'INT2NUM',
  :float => 'rb_float_new',
  :ulong => 'ULONG2NUM'
}
INLINE_PATTERN_RE =
/\h+\.\w+$/
LEGACY_DATA_SUFFIX =
".old"
NEW_DATA_SUFFIX =
".new"
LEGACY_MODULE =
"Legacy"
LEGACY_RE =
/^#{LEGACY_MODULE}::/