Class: PGTrunk::Operations::MaterializedViews::RefreshMaterializedView
- Inherits:
-
Base
- Object
- PGTrunk::Operation
- Base
- PGTrunk::Operations::MaterializedViews::RefreshMaterializedView
- Defined in:
- lib/pg_trunk/operations/materialized_views/refresh_materialized_view.rb
Instance Method Summary collapse
-
#invert ⇒ Object
The operation is reversible but its inversion does nothing.
- #to_sql(_version) ⇒ Object
Methods inherited from Base
Methods included from PGTrunk::Operation::SQLHelpers
Methods included from PGTrunk::Operation::RubyHelpers
#dump, #to_a, #to_opts, #to_ruby
Methods included from PGTrunk::Operation::Inversion
Methods included from PGTrunk::Operation::Validations
Methods included from PGTrunk::Operation::Attributes
Instance Method Details
#invert ⇒ Object
The operation is reversible but its inversion does nothing
51 |
# File 'lib/pg_trunk/operations/materialized_views/refresh_materialized_view.rb', line 51 def invert; end |
#to_sql(_version) ⇒ Object
42 43 44 45 46 47 48 |
# 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 |