Module: Schron::Datastore::Interface

Included in:
Memory, Mongo, Sequel
Defined in:
lib/schron/datastore/interface.rb

Instance Method Summary collapse

Instance Method Details

#exec_query(kind, query) ⇒ Object

Raises:

  • (NotImplementedError)


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

Raises:

  • (NotImplementedError)


18
19
20
# File 'lib/schron/datastore/interface.rb', line 18

def insert(kind, hash)
  raise NotImplementedError
end

#multi_get(kind, ids) ⇒ Object

Raises:

  • (NotImplementedError)


14
15
16
# File 'lib/schron/datastore/interface.rb', line 14

def multi_get(kind, ids)
  raise NotImplementedError
end

#multi_insert(kind, hashes) ⇒ Object

Raises:

  • (NotImplementedError)


22
23
24
# File 'lib/schron/datastore/interface.rb', line 22

def multi_insert(kind, hashes)
  raise NotImplementedError
end

#multi_remove(kind, ids) ⇒ Object

Raises:

  • (NotImplementedError)


38
39
40
# File 'lib/schron/datastore/interface.rb', line 38

def multi_remove(kind, ids)
  raise NotImplementedError
end

#multi_update(kind, hashes) ⇒ Object

Raises:

  • (NotImplementedError)


30
31
32
# File 'lib/schron/datastore/interface.rb', line 30

def multi_update(kind, hashes)
  raise NotImplementedError
end

#remove(kind, id) ⇒ Object

Raises:

  • (NotImplementedError)


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

Raises:

  • (NotImplementedError)


26
27
28
# File 'lib/schron/datastore/interface.rb', line 26

def update(kind, hash)
  raise NotImplementedError
end