Sha256: 78fe5284a671f0bd411c614a4b5761b58cccb59721998336aaaf15fa15251b53
Contents?: true
Size: 439 Bytes
Versions: 2
Compression:
Stored size: 439 Bytes
Contents
# frozen_string_literal: true 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
active_record_mysql_xverify-0.4.0 | lib/active_record_mysql_xverify/utils.rb |
active_record_mysql_xverify-0.3.0 | lib/active_record_mysql_xverify/utils.rb |