lib/dexter/query.rb in pgdexter-0.3.2 vs lib/dexter/query.rb in pgdexter-0.3.3
- old
+ new
@@ -1,17 +1,18 @@
module Dexter
class Query
attr_reader :statement, :fingerprint, :plans
attr_writer :tables
- attr_accessor :missing_tables, :new_cost, :total_time, :calls, :indexes, :suggest_index, :pass1_indexes, :pass2_indexes, :candidate_tables
+ attr_accessor :missing_tables, :new_cost, :total_time, :calls, :indexes, :suggest_index, :pass1_indexes, :pass2_indexes, :pass3_indexes, :candidate_tables, :tables_from_views
def initialize(statement, fingerprint = nil)
@statement = statement
unless fingerprint
fingerprint = PgQuery.fingerprint(statement) rescue "unknown"
end
@fingerprint = fingerprint
@plans = []
+ @tables_from_views = []
end
def tables
@tables ||= begin
parse ? parse.tables : []