Sha256: ed4e0dcab747db7b17e673784d1a3143a70992694473f86cbc47bf54539fa5b4
Contents?: true
Size: 313 Bytes
Versions: 1
Compression:
Stored size: 313 Bytes
Contents
require 'mysql2_query_filter' module Mysql2QueryFilter::Plugin class Log < Mysql2QueryFilter::Base Mysql2QueryFilter::Plugin.register(:log, self) def initialize(options) super @out = @options[:out] || $stderr end def filter(sql, client) @out << "#{sql}\n" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mysql2_query_filter-plugin-log-0.1.1 | lib/mysql2_query_filter/plugin/log.rb |