Class: Spinoza::Operation
- Inherits:
-
Object
- Object
- Spinoza::Operation
- Defined in:
- lib/spinoza/system/operation.rb
Overview
Operations are stateless and do not reference any particular store. Hence they can be serialized and passed around the system.
Direct Known Subclasses
DeleteOperation, InsertOperation, ReadOperation, UpdateOperation
Instance Attribute Summary collapse
-
#table ⇒ Object
readonly
Name of table.
Instance Method Summary collapse
-
#check(lm) ⇒ Object
check that this operation is allowed to execute lm is LockManager.
-
#execute(ds) ⇒ Object
ds is Sequel dataset representing the table.
Instance Attribute Details
#table ⇒ Object (readonly)
Name of table.
8 9 10 |
# File 'lib/spinoza/system/operation.rb', line 8 def table @table end |
Instance Method Details
#check(lm) ⇒ Object
check that this operation is allowed to execute lm is LockManager
19 20 21 |
# File 'lib/spinoza/system/operation.rb', line 19 def check lm raise end |
#execute(ds) ⇒ Object
ds is Sequel dataset representing the table
13 14 15 |
# File 'lib/spinoza/system/operation.rb', line 13 def execute ds raise end |