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