Skip to content

Commit

Permalink
test: add statement_timeout to test db connection
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Dec 15, 2020
1 parent 3a7bf5e commit d1e9ba7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/db.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def self.connect db_credentials
con = Sequel.connect(db_credentials.merge(:logger => logger, :pool_class => Sequel::ThreadedConnectionPool, :encoding => 'utf8'))
con.extension(:connection_validator)
con.extension(:pagination)
con.extension(:statement_timeout)
con.extend_datasets do
def any?
!empty?
Expand Down

0 comments on commit d1e9ba7

Please sign in to comment.