Familiar.replace_view

You're seeing just the function replace_view, go back to Familiar module for more information.
Link to this function

replace_view(view_name, opts)

View Source

Replaces a database view from a view definition file.

This function will use CREATE OR REPLACE VIEW so can only be used if the new version has the same columns as the old version.

Options:

  • :version - the version of the updated view
  • :materialized - whether the view is materialized or not. Defaults to false.
  • :revert - the version to revert to if the migration is rolled back
  • :schema - the schema the view lives in. Uses default schema if not specified