Class: Dexter::SqlLogParser

Inherits:
LogParser show all
Defined in:
lib/dexter/sql_log_parser.rb

Constant Summary

Constants inherited from LogParser

LogParser::REGEX

Constants included from Logging

Logging::COLOR_CODES

Instance Method Summary collapse

Methods inherited from LogParser

#initialize

Methods included from Logging

#colorize, #log, #output

Constructor Details

This class inherits a constructor from Dexter::LogParser

Instance Method Details

#performObject



3
4
5
6
7
8
# File 'lib/dexter/sql_log_parser.rb', line 3

def perform
  # TODO support streaming
  @logfile.read.split(";").each do |statement|
    process_entry(statement, 0)
  end
end