Sha256: f44ee599aa40669456056429c27b8e7b2f293ca8eb3f409c565ddab47ab258a7
Contents?: true
Size: 320 Bytes
Versions: 1
Compression:
Stored size: 320 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, 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.1.0 | lib/mysql2_query_filter/plugin/log.rb |