Sha256: 170fe0cb471338bec480d67b7feb5afce12f7eaacdfa63e3852f50cacfab6381

Contents?: true

Size: 333 Bytes

Versions: 16

Compression:

Stored size: 333 Bytes

Contents

require 'pg'
require 'barthes/client/rdb'

class Barthes::Client::Pgsql < Barthes::Client::Rdb
	def initialize(env)
		@client = PG::connect(
			host: env['host'],
			user: env['user'],
			password: env['password'],
			dbname: env['database'],
			sslmode: 'disable'
		)
	end
	
	def execute_query(query)
		@client.exec(query)
	end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
barthes-0.0.43 lib/barthes/client/pgsql.rb
barthes-0.0.42 lib/barthes/client/pgsql.rb
barthes-0.0.41 lib/barthes/client/pgsql.rb
barthes-0.0.40 lib/barthes/client/pgsql.rb
barthes-0.0.39 lib/barthes/client/pgsql.rb
barthes-0.0.38 lib/barthes/client/pgsql.rb
barthes-0.0.37 lib/barthes/client/pgsql.rb
barthes-0.0.36 lib/barthes/client/pgsql.rb
barthes-0.0.35 lib/barthes/client/pgsql.rb
barthes-0.0.34 lib/barthes/client/pgsql.rb
barthes-0.0.33 lib/barthes/client/pgsql.rb
barthes-0.0.32 lib/barthes/client/pgsql.rb
barthes-0.0.31 lib/barthes/client/pgsql.rb
barthes-0.0.30 lib/barthes/client/pgsql.rb
barthes-0.0.29 lib/barthes/client/pgsql.rb
barthes-0.0.28 lib/barthes/client/pgsql.rb