module Sequent::Core::Persistors::Persistor

Defines the methods that can be implemented by the specific Persistors

See

Public Instance Methods

commit() click to toggle source

Hook to implement for instance the persistor batches statements

# File lib/sequent/core/persistors/persistor.rb, line 85
def commit
  fail 'Method not supported in this persistor'
end
create_or_update_record() click to toggle source

Creates or updates a record in the view state.

# File lib/sequent/core/persistors/persistor.rb, line 28
def create_or_update_record
  fail 'Method not supported in this persistor'
end
create_record() click to toggle source

Create a single record in the view state

# File lib/sequent/core/persistors/persistor.rb, line 18
def create_record
  fail 'Method not supported in this persistor'
end
create_records() click to toggle source

Creates multiple records at once in the view state

# File lib/sequent/core/persistors/persistor.rb, line 23
def create_records
  fail 'Method not supported in this persistor'
end
delete_all_records() click to toggle source

Deletes all records given a where

# File lib/sequent/core/persistors/persistor.rb, line 42
def delete_all_records
  fail 'Method not supported in this persistor'
end
delete_record() click to toggle source

Delete a single record @deprecated

# File lib/sequent/core/persistors/persistor.rb, line 65
def delete_record
  fail 'Method not supported in this persistor'
end
do_with_record() click to toggle source

Decide for yourself what to do with a single record @deprecated

# File lib/sequent/core/persistors/persistor.rb, line 59
def do_with_record
  fail 'Method not supported in this persistor'
end
do_with_records() click to toggle source

Decide for yourself what to do with the records @deprecated

# File lib/sequent/core/persistors/persistor.rb, line 53
def do_with_records
  fail 'Method not supported in this persistor'
end
find_records() click to toggle source

Find records given a where

# File lib/sequent/core/persistors/persistor.rb, line 70
def find_records
  fail 'Method not supported in this persistor'
end
get_record() click to toggle source

Gets a record from the view state, returns nil if it not exists

# File lib/sequent/core/persistors/persistor.rb, line 37
def get_record
  fail 'Method not supported in this persistor'
end
get_record!() click to toggle source

Gets a record from the view state, fails if it not exists

# File lib/sequent/core/persistors/persistor.rb, line 32
def get_record!
  fail 'Method not supported in this persistor'
end
last_record() click to toggle source

Returns the last record given a where

# File lib/sequent/core/persistors/persistor.rb, line 75
def last_record
  fail 'Method not supported in this persistor'
end
prepare() click to toggle source

Hook to implement for instance the persistor batches statements

# File lib/sequent/core/persistors/persistor.rb, line 80
def prepare
  fail 'Method not supported in this persistor'
end
update_all_records() click to toggle source

Updates all record given a where and an update clause

# File lib/sequent/core/persistors/persistor.rb, line 47
def update_all_records
  fail 'Method not supported in this persistor'
end
update_record() click to toggle source

Updates the view state

# File lib/sequent/core/persistors/persistor.rb, line 13
def update_record
  fail 'Method not supported in this persistor'
end