Class: TableSaw::Queries::MaterializedViews

Inherits:
Object
  • Object
show all
Defined in:
lib/table_saw/queries/materialized_views.rb

Constant Summary collapse

QUERY =
'select matviewname from pg_matviews order by matviewname'

Instance Method Summary collapse

Instance Method Details

#callObject



8
9
10
# File 'lib/table_saw/queries/materialized_views.rb', line 8

def call
  TableSaw.connection.exec_query(QUERY).map { |row| row['matviewname'] }
end