Sha256: e73011361d5bd41ccb33beef3833d86887cfef762f06c71664751b4fbb694787
Contents?: true
Size: 267 Bytes
Versions: 2
Compression:
Stored size: 267 Bytes
Contents
class DatabaseStalker::Parser def initialize(log) @log = log end def table_names tables = [] @log.each do |line| matched = line.match(/INSERT\ INTO\ `(.+)` \(/) tables << matched[1] unless matched.nil? end tables.uniq end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
database_stalker-0.1.4 | lib/database_stalker/parser.rb |
database_stalker-0.1.3 | lib/database_stalker/parser.rb |