Module: PGSpecHelper::Connection
- Included in:
- PGSpecHelper
- Defined in:
- lib/pg_spec_helper/connection.rb
Defined Under Namespace
Classes: ConnectionFailedError
Instance Method Summary collapse
Instance Method Details
#connection ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/pg_spec_helper/connection.rb', line 8 def connection @connection ||= PG.connect( host: @host, port: @port, user: @username, password: @password, dbname: @database, sslmode: "prefer" ) @connection end |