Module: Dddr
- Defined in:
- lib/dddr/sequel.rb,
lib/dddr.rb,
lib/dddr/sdbm.rb,
lib/dddr/version.rb
Overview
Assuming Dddr.configuration.db is already set up to return a Sequel database connection
Defined Under Namespace
Modules: Entity, Sdbm, Sequel Classes: Error, MessagePack, Serializer
Constant Summary collapse
- ENTITIES =
[]
- VERSION =
"2.6.0"
Class Method Summary collapse
Class Method Details
.configuration ⇒ Object
19 20 21 |
# File 'lib/dddr.rb', line 19 def self.configuration @configuration ||= OpenStruct.new end |
.configure {|configuration| ... } ⇒ Object
47 48 49 50 51 52 53 54 |
# File 'lib/dddr.rb', line 47 def self.configure configuration.env = ENV["DDDR_ENV"] || "development" configuration.data_dir = "/var/dddr" configuration.engine = :sdbm configuration.serializer = MessagePack configuration.container = nil yield(configuration) if block_given? end |