class PGTrunk::Operations::MaterializedViews::RefreshMaterializedView
@private
Public Instance Methods
invert()
click to toggle source
The operation is reversible but its inversion does nothing
# File lib/pg_trunk/operations/materialized_views/refresh_materialized_view.rb, line 51 def invert; end
to_sql(_version)
click to toggle source
# File lib/pg_trunk/operations/materialized_views/refresh_materialized_view.rb, line 42 def to_sql(_version) sql = "REFRESH MATERIALIZED VIEW" sql << " CONCURRENTLY" if algorithm == :concurrently sql << " #{name.to_sql}" sql << " WITH NO DATA" if with_data == false sql << ";" end