class Airbrake::Filters::SqlFilter
def initialize(dialect)
def initialize(dialect) @dialect = case dialect when /mysql/i then :mysql when /postgres/i then :postgres when /sqlite/i then :sqlite when /oracle/i then :oracle when /cassandra/i then :cassandra else :default end features = DIALECT_FEATURES[@dialect].map { |f| ALL_FEATURES[f] } @regexp = Regexp.union(features) end