Module: MassiveRecord
- Defined in:
- lib/massive_record/wrapper/adapter.rb,
lib/massive_record.rb,
lib/massive_record/version.rb,
lib/massive_record/orm/base.rb,
lib/massive_record/orm/table.rb,
lib/massive_record/orm/column.rb,
lib/massive_record/orm/config.rb,
lib/massive_record/orm/errors.rb,
lib/massive_record/orm/finders.rb,
lib/massive_record/orm/embedded.rb,
lib/massive_record/orm/observer.rb,
lib/massive_record/orm/raw_data.rb,
lib/massive_record/wrapper/base.rb,
lib/massive_record/wrapper/cell.rb,
lib/massive_record/orm/callbacks.rb,
lib/massive_record/rails/railtie.rb,
lib/massive_record/orm/default_id.rb,
lib/massive_record/orm/id_factory.rb,
lib/massive_record/orm/timestamps.rb,
lib/massive_record/wrapper/errors.rb,
lib/massive_record/orm/coders/json.rb,
lib/massive_record/orm/coders/yaml.rb,
lib/massive_record/orm/persistence.rb,
lib/massive_record/orm/validations.rb,
lib/massive_record/orm/identity_map.rb,
lib/massive_record/orm/schema/field.rb,
lib/massive_record/orm/finders/scope.rb,
lib/massive_record/orm/schema/fields.rb,
lib/massive_record/orm/coders/chained.rb,
lib/massive_record/orm/log_subscriber.rb,
lib/massive_record/adapters/initialize.rb,
lib/massive_record/adapters/thrift/row.rb,
lib/massive_record/orm/relations/proxy.rb,
lib/massive_record/adapters/thrift/table.rb,
lib/massive_record/orm/relations/metadata.rb,
lib/massive_record/adapters/thrift/adapter.rb,
lib/massive_record/adapters/thrift/scanner.rb,
lib/massive_record/orm/relations/interface.rb,
lib/massive_record/orm/id_factory/timestamp.rb,
lib/massive_record/orm/schema/column_family.rb,
lib/massive_record/rails/controller_runtime.rb,
lib/massive_record/orm/query_instrumentation.rb,
lib/massive_record/wrapper/tables_collection.rb,
lib/massive_record/adapters/thrift/connection.rb,
lib/massive_record/orm/attribute_methods/read.rb,
lib/massive_record/orm/persistence/operations.rb,
lib/massive_record/orm/schema/column_families.rb,
lib/massive_record/orm/schema/table_interface.rb,
lib/massive_record/orm/validations/associated.rb,
lib/massive_record/orm/attribute_methods/dirty.rb,
lib/massive_record/orm/attribute_methods/write.rb,
lib/massive_record/orm/schema/common_interface.rb,
lib/massive_record/orm/single_table_inheritance.rb,
lib/massive_record/adapters/thrift/column_family.rb,
lib/massive_record/orm/schema/embedded_interface.rb,
lib/massive_record/orm/relations/proxy_collection.rb,
lib/massive_record/orm/relations/proxy/embedded_in.rb,
lib/massive_record/orm/relations/proxy/embeds_many.rb,
lib/massive_record/orm/persistence/operations/insert.rb,
lib/massive_record/orm/persistence/operations/reload.rb,
lib/massive_record/orm/persistence/operations/update.rb,
lib/massive_record/orm/persistence/operations/destroy.rb,
lib/massive_record/orm/relations/proxy/references_one.rb,
lib/massive_record/wrapper/column_families_collection.rb,
lib/massive_record/orm/in_the_middle_of_saving_tracker.rb,
lib/massive_record/orm/persistence/operations/suppress.rb,
lib/massive_record/orm/relations/proxy/references_many.rb,
lib/massive_record/orm/id_factory/atomic_incrementation.rb,
lib/massive_record/spec/support/simple_database_cleaner.rb,
lib/massive_record/orm/finders/rescue_missing_table_on_find.rb,
lib/massive_record/orm/attribute_methods/time_zone_conversion.rb,
lib/massive_record/orm/persistence/operations/embedded/insert.rb,
lib/massive_record/orm/persistence/operations/embedded/reload.rb,
lib/massive_record/orm/persistence/operations/embedded/update.rb,
lib/massive_record/orm/attribute_methods/cast_numbers_on_write.rb,
lib/massive_record/orm/persistence/operations/atomic_operation.rb,
lib/massive_record/orm/persistence/operations/embedded/destroy.rb,
lib/massive_record/orm/relations/proxy/embedded_in_polymorphic.rb,
lib/massive_record/orm/relations/proxy/references_one_polymorphic.rb,
lib/massive_record/orm/persistence/operations/table_operation_helpers.rb,
lib/massive_record/orm/persistence/operations/embedded/operation_helpers.rb,
lib/massive_record/orm/attribute_methods.rb
Overview
This module does a couple of things:
1. Iterates over all tables and adds a prefix to
them so that the classes will be uniq for
the test run.
2. Cleans tables' contents after each run
3. Destroy tables after all
Defined Under Namespace
Modules: Adapters, ORM, Rails, Rspec, Wrapper
Constant Summary collapse
- VERSION =
"0.2.2"
Class Method Summary collapse
Class Method Details
.adapter ⇒ Object
6 7 8 |
# File 'lib/massive_record/adapters/initialize.rb', line 6 def self.adapter @adapter end |
.adapter=(name) ⇒ Object
2 3 4 |
# File 'lib/massive_record/adapters/initialize.rb', line 2 def self.adapter=(name) @adapter = name end |