Sha256: b5b5e311a91edd1c24803ceb21e73173a64ab14cf9885d756a17a82b940eb469

Contents?: true

Size: 456 Bytes

Versions: 1

Compression:

Stored size: 456 Bytes

Contents

module ActiveRecordMysqlXverify
  module Utils
    class << self
      def mysql2_connection_info(conn)
        thread_id = begin
                      conn.thread_id
                    rescue StandardError
                      nil
                    end

        "host=#{conn.query_options[:host]}, database=#{conn.query_options[:database]}, " \
          "username=#{conn.query_options[:username]}, thread_id=#{thread_id}"
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
active_record_mysql_xverify-0.1.0 lib/active_record_mysql_xverify/utils.rb