Module: Tarantool::Model
- Extended by:
- ActiveSupport::Concern
- Includes:
- ActiveModel::API, ActiveModel::Attributes, ActiveModel::Dirty, ActiveModel::Serializers::JSON, ActiveModel::Validations::Callbacks, Counters, Locking, Persistence, Querying, Settings, State, Transactional
- Defined in:
- tarantool-model/lib/tarantool/model.rb,
tarantool-model/lib/tarantool/model/key.rb,
tarantool-model/lib/tarantool/model/row.rb,
tarantool-model/lib/tarantool/model/state.rb,
tarantool-model/lib/tarantool/model/errors.rb,
tarantool-model/lib/tarantool/model/locking.rb,
tarantool-model/lib/tarantool/model/version.rb,
tarantool-model/lib/tarantool/model/counters.rb,
tarantool-model/lib/tarantool/model/querying.rb,
tarantool-model/lib/tarantool/model/relation.rb,
tarantool-model/lib/tarantool/model/settings.rb,
tarantool-model/lib/tarantool/model/types/uuid.rb,
tarantool-model/lib/tarantool/model/persistence.rb,
tarantool-model/lib/tarantool/model/storage/box.rb,
tarantool-model/lib/tarantool/model/storage/crud.rb,
tarantool-model/lib/tarantool/model/transactions.rb,
tarantool-model/lib/tarantool/model/types/binary.rb,
tarantool-model/lib/tarantool/model/transactional.rb,
tarantool-model/lib/tarantool/model/types/interval.rb,
tarantool-model/lib/tarantool/model/storage/box/layout.rb,
tarantool-model/lib/tarantool/model/testing/memory_storage.rb,
tarantool-model/lib/tarantool/model/testing/memory_storage/keys.rb,
tarantool-model/lib/tarantool/model/testing/memory_storage/scan.rb,
tarantool-model/lib/tarantool/model/testing/memory_storage/order.rb,
tarantool-model/lib/tarantool/model/testing/memory_storage/space.rb,
tarantool-model/lib/tarantool/model/testing/memory_storage/box_mode.rb,
tarantool-model/lib/tarantool/model/testing/memory_storage/sequence.rb,
tarantool-model/lib/tarantool/model/testing/memory_storage/crud_mode.rb,
tarantool-model/lib/tarantool/model/testing/memory_storage/violation.rb,
tarantool-model/lib/tarantool/model/testing/memory_storage/operations.rb,
tarantool-model/lib/tarantool/model/testing/memory_storage/declaration.rb,
tarantool-model/lib/tarantool/model/testing/memory_storage/index_declaration.rb
Overview
ActiveModel-based model over a Tarantool space. Attribute names are the space format field names.
Defined Under Namespace
Modules: Counters, Locking, Persistence, Querying, Settings, State, Storage, Testing, Transactional, Types Classes: Error, NotSupportedError, RecordInvalid, RecordNotFound, RecordNotSaved, RecordNotUnique, Relation, SchemaMismatchError, StaleObjectError, TransactionMismatchError
Constant Summary collapse
- VERSION =
'0.3.1'
Class Attribute Summary collapse
Attributes included from State
Method Summary
Methods included from Counters
Methods included from Persistence
#destroy, #reload, #save, #save!, #update, #update!
Methods included from State
#destroyed?, #freeze, #new_record?, #persisted?
Methods included from Settings
Class Attribute Details
.default_storage ⇒ Object
38 39 40 41 42 43 44 |
# File 'tarantool-model/lib/tarantool/model.rb', line 38 def default_storage DEFAULT_STORAGE_LOCK.synchronize do @default_storage = @default_storage.call if @default_storage.is_a?(Proc) @default_storage end end |