Method: Barthes::Client::Pgsql#initialize

Defined in:
lib/barthes/client/pgsql.rb

#initialize(env) ⇒ Pgsql

Returns a new instance of Pgsql.



5
6
7
8
9
10
11
12
13
# File 'lib/barthes/client/pgsql.rb', line 5

def initialize(env)
  @client = PG::connect(
    host: env['host'],
    user: env['user'],
    password: env['password'],
    dbname: env['database'],
    sslmode: 'disable'
  )
end