class Mysqlman::Connection
Attributes
conn[RW]
Public Class Methods
new()
click to toggle source
# File lib/mysqlman/connection.rb, line 12 def initialize config = YAML.load_file(MANAGER_CONFIG).map { |k, v| [k.to_sym, v] }.to_h config.merge(database: 'mysql') @conn = Mysql2::Client.new(config) end
Public Instance Methods
query(query_string)
click to toggle source
# File lib/mysqlman/connection.rb, line 18 def query(query_string) @conn.query(query_string) end