Sha256: 4576fefc7e792963fe98f9ec4f3b419d26f7cb936af8ca5d80434fd9ad08fdaa

Contents?: true

Size: 283 Bytes

Versions: 22

Compression:

Stored size: 283 Bytes

Contents

# frozen_string_literal: true

module TableSaw
  module Queries
    class MaterializedViews
      QUERY = 'select matviewname from pg_matviews order by matviewname'

      def call
        TableSaw::Connection.exec(QUERY).map { |row| row['matviewname'] }
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
table_saw-3.1.0 lib/table_saw/queries/materialized_views.rb
table_saw-3.0.0 lib/table_saw/queries/materialized_views.rb
table_saw-2.10.0 lib/table_saw/queries/materialized_views.rb
table_saw-2.9.0 lib/table_saw/queries/materialized_views.rb
table_saw-2.8.1 lib/table_saw/queries/materialized_views.rb
table_saw-2.8.0 lib/table_saw/queries/materialized_views.rb
table_saw-2.7.0 lib/table_saw/queries/materialized_views.rb
table_saw-2.6.0 lib/table_saw/queries/materialized_views.rb
table_saw-2.5.0 lib/table_saw/queries/materialized_views.rb
table_saw-2.4.3 lib/table_saw/queries/materialized_views.rb
table_saw-2.4.2 lib/table_saw/queries/materialized_views.rb
table_saw-2.4.1 lib/table_saw/queries/materialized_views.rb
table_saw-2.4.0 lib/table_saw/queries/materialized_views.rb
table_saw-2.3.0 lib/table_saw/queries/materialized_views.rb
table_saw-2.2.0 lib/table_saw/queries/materialized_views.rb
table_saw-2.1.0 lib/table_saw/queries/materialized_views.rb
table_saw-2.0.0 lib/table_saw/queries/materialized_views.rb
table_saw-1.3.0 lib/table_saw/queries/materialized_views.rb
table_saw-1.2.0 lib/table_saw/queries/materialized_views.rb
table_saw-1.1.0 lib/table_saw/queries/materialized_views.rb