Module: Overture::Database
- Defined in:
- lib/overture/database.rb
Overview
This is a simple class that represents a Database connection using Sequel.
Constant Summary collapse
- DEFAULT_OPTIONS =
{ extensions: %i[ pg_array pg_json pg_timestamptz named_timezones ] }.freeze
Class Method Summary collapse
-
.connect(url, options = {}) ⇒ Object
Connects Sequel to database with the passed URL and options.
Class Method Details
.connect(url, options = {}) ⇒ Object
Connects Sequel to database with the passed URL and options.
25 26 27 |
# File 'lib/overture/database.rb', line 25 def connect(url, = {}) Sequel.connect(url, DEFAULT_OPTIONS.merge()) end |