lib/table_saw/configuration.rb in table_saw-1.1.0 vs lib/table_saw/configuration.rb in table_saw-1.2.0

- old
+ new

@@ -1,12 +1,16 @@ # frozen_string_literal: true module TableSaw class Configuration - attr_accessor :dbname, :host, :port, :user, :password, :manifest, :output + attr_accessor :dbname, :host, :port, :user, :password, :manifest, :output, :pool def connection { dbname: dbname, host: host, port: port, user: user, password: password } + end + + def pool_size + (pool || 2).to_i end def url=(value) URI.parse(value).tap do |uri| self.dbname = uri.path[1..-1]