module Preserves

Constants

VERSION

Public Class Methods

PostgreSQL(db_name) click to toggle source
# File lib/preserves.rb, line 21
def self.PostgreSQL(db_name)
  SQL.connection(dbname: db_name)
end
data_store() click to toggle source
# File lib/preserves.rb, line 17
def self.data_store
  @data_store or raise "You must define a default data store"
end
data_store=(connection) click to toggle source
# File lib/preserves.rb, line 13
def self.data_store=(connection)
  @data_store = connection
end
repository(options={}, &block) click to toggle source
# File lib/preserves.rb, line 7
def self.repository(options={}, &block)
  repository = Repository.new(options)
  repository.instance_eval(&block)
  repository
end