lib/dexter/query.rb in pgdexter-0.5.2 vs lib/dexter/query.rb in pgdexter-0.5.3
- old
+ new
@@ -1,9 +1,9 @@
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, :pass3_indexes, :candidate_tables, :tables_from_views
+ attr_accessor :missing_tables, :new_cost, :total_time, :calls, :indexes, :suggest_index, :pass1_indexes, :pass2_indexes, :pass3_indexes, :candidate_tables, :tables_from_views, :candidates
def initialize(statement, fingerprint = nil)
@statement = statement
unless fingerprint
fingerprint = PgQuery.fingerprint(statement) rescue "unknown"