Sha256: 504b17f63bb8b5b03373b9ec76474e93926380b98612ec9029b9df68ce322467
Contents?: true
Size: 545 Bytes
Versions: 20
Compression:
Stored size: 545 Bytes
Contents
module ActiveRecord module ConnectionAdapters module SQLite3 class ExplainPrettyPrinter # :nodoc: # Pretty prints the result of an EXPLAIN QUERY PLAN in a way that resembles # the output of the SQLite shell: # # 0|0|0|SEARCH TABLE users USING INTEGER PRIMARY KEY (rowid=?) (~1 rows) # 0|1|1|SCAN TABLE posts (~100000 rows) # def pp(result) result.rows.map do |row| row.join("|") end.join("\n") + "\n" end end end end end
Version data entries
20 entries across 20 versions & 1 rubygems