Module: Schron::Datastore::Interface
Instance Method Summary collapse
- #exec_query(kind, query) ⇒ Object
- #get(kind, id) ⇒ Object
- #insert(kind, hash) ⇒ Object
- #multi_get(kind, ids) ⇒ Object
- #multi_insert(kind, hashes) ⇒ Object
- #multi_remove(kind, ids) ⇒ Object
- #multi_update(kind, hashes) ⇒ Object
- #remove(kind, id) ⇒ Object
- #reset! ⇒ Object
- #update(kind, hash) ⇒ Object
Instance Method Details
#exec_query(kind, query) ⇒ Object
6 7 8 |
# File 'lib/schron/datastore/interface.rb', line 6 def exec_query(kind, query) raise NotImplementedError end |
#get(kind, id) ⇒ Object
10 11 12 |
# File 'lib/schron/datastore/interface.rb', line 10 def get(kind, id) multi_get(kind, [id]).first end |
#insert(kind, hash) ⇒ Object
18 19 20 |
# File 'lib/schron/datastore/interface.rb', line 18 def insert(kind, hash) raise NotImplementedError end |
#multi_get(kind, ids) ⇒ Object
14 15 16 |
# File 'lib/schron/datastore/interface.rb', line 14 def multi_get(kind, ids) raise NotImplementedError end |
#multi_insert(kind, hashes) ⇒ Object
22 23 24 |
# File 'lib/schron/datastore/interface.rb', line 22 def multi_insert(kind, hashes) raise NotImplementedError end |
#multi_remove(kind, ids) ⇒ Object
38 39 40 |
# File 'lib/schron/datastore/interface.rb', line 38 def multi_remove(kind, ids) raise NotImplementedError end |
#multi_update(kind, hashes) ⇒ Object
30 31 32 |
# File 'lib/schron/datastore/interface.rb', line 30 def multi_update(kind, hashes) raise NotImplementedError end |
#remove(kind, id) ⇒ Object
34 35 36 |
# File 'lib/schron/datastore/interface.rb', line 34 def remove(kind, id) raise NotImplementedError end |
#reset! ⇒ Object
42 43 44 45 46 |
# File 'lib/schron/datastore/interface.rb', line 42 def reset! protect_reset do raise NotImplementedError end end |
#update(kind, hash) ⇒ Object
26 27 28 |
# File 'lib/schron/datastore/interface.rb', line 26 def update(kind, hash) raise NotImplementedError end |