Method: CloudKit::SQLAdapter#initialize
- Defined in:
- lib/cloudkit/store/sql_adapter.rb
#initialize(uri = nil, options = {}) ⇒ SQLAdapter
Initialize a new SQL backend. Defaults to in-memory SQLite.
7 8 9 10 11 |
# File 'lib/cloudkit/store/sql_adapter.rb', line 7 def initialize(uri=nil, ={}) @db = uri ? Sequel.connect(uri, ) : Sequel.sqlite # TODO accept views as part of a store, then initialize them here initialize_storage end |