Sha256: 3a514fc97b0db4fa4a31c32c25d3d5139770a7edbd9bd0a7a12be5b67cce74bd

Contents?: true

Size: 332 Bytes

Versions: 16

Compression:

Stored size: 332 Bytes

Contents

require 'mysql2'
require 'barthes/client/rdb'

class Barthes::Client::Mysql < Barthes::Client::Rdb
	def initialize(env)
		@client = Mysql2::Client.new(
		  host: env['host'],
		  username: env['user'],
		  password: env['password'],
		  database: env['database']
		)
	end
	
	def execute_query(query)
		@client.query(query)
	end
end

Version data entries

16 entries across 16 versions & 1 rubygems

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