Class: HistoryBook::Sequel::Configuration
- Inherits:
-
Object
- Object
- HistoryBook::Sequel::Configuration
- Defined in:
- lib/history_book/sequel/configuration.rb
Instance Attribute Summary collapse
-
#connection_string ⇒ Object
Returns the value of attribute connection_string.
Instance Method Summary collapse
Instance Attribute Details
#connection_string ⇒ Object
Returns the value of attribute connection_string.
7 8 9 |
# File 'lib/history_book/sequel/configuration.rb', line 7 def connection_string @connection_string end |
Instance Method Details
#create_store ⇒ Object
9 10 11 12 |
# File 'lib/history_book/sequel/configuration.rb', line 9 def create_store db = ::Sequel.connect(connection_string) HistoryBook::Sequel::Store.new(db) end |