Sha256: 628a1a234fbaceb3fefcd8c416d9cac96b2c1355de587b1314b6a0991f5e6cc6

Contents?: true

Size: 239 Bytes

Versions: 11

Compression:

Stored size: 239 Bytes

Contents

class MysqlIsolatedServer
  module DBConnection
    def connection
      require 'mysql2'
      @cx ||= Mysql2::Client.new(:host => "127.0.0.1", :port => @port, :username => "root", :password => "", :database => "mysql")
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
mysql_isolated_server-0.5.4 lib/mysql_isolated_server/mysql2_connection.rb
mysql_isolated_server-0.5.3 lib/mysql_isolated_server/mysql2_connection.rb
mysql_isolated_server-0.5.2 lib/mysql_isolated_server/mysql2_connection.rb
mysql_isolated_server-0.5.1 lib/mysql_isolated_server/mysql2_connection.rb
mysql_isolated_server-0.5.0 lib/mysql_isolated_server/mysql2_connection.rb
mysql_isolated_server-0.4.1 lib/mysql_isolated_server/mysql2_connection.rb
mysql_isolated_server-0.4.0 lib/mysql_isolated_server/mysql2_connection.rb
mysql_isolated_server-0.3.3 lib/mysql_isolated_server/mysql2_connection.rb
mysql_isolated_server-0.3.2 lib/mysql_isolated_server/mysql2_connection.rb
mysql_isolated_server-0.3.1 lib/mysql_isolated_server/mysql2_connection.rb
mysql_isolated_server-0.3.0 lib/mysql_isolated_server/mysql2_connection.rb