Method: SQLDependencyGrapher.build_graph

Defined in:
lib/sql_dep_grapher.rb

.build_graph(stream = ARGF) ⇒ Object

Builds a Graph from a SQL query log given to stream.



40
41
42
43
44
# File 'lib/sql_dep_grapher.rb', line 40

def self.build_graph(stream = ARGF)
  data = collect stream
  counts = count data
  return graph(data, counts)
end