View Source Bonfire.Boundaries.Summary (Bonfire v0.9.11-social-beta.6)
View that facilities the querying of objects' boundaries. See Bonfire.Boundaries.Queries
for how it is used.
Summary
Functions
An equivalent of the Summary view, but represented as an Ecto subquery instead
Executes the dropping of views for the given view_type
.
Migrates the module down.
Migrates the custom SQL functions for permission calculation.
Migrates the summary view.
A function that refreshes a current version of the view, defined in module. Currently support only materialized views.
Refreshes the materialized view.
Functions
An equivalent of the Summary view, but represented as an Ecto subquery instead
Executes the dropping of views for the given view_type
.
Migrates the module down.
This function handles the migration process for the down direction. It calls migrate_views/0
and migrate_functions/0
.
Migrates the custom SQL functions for permission calculation.
This function executes the creation or dropping of the add_perms
and agg_perms
functions.
Migrates the summary view.
This function creates the summary view using the @create_summary_view
SQL query, or drops it in down migrations.
@spec refresh() :: :ok | {:error, String.t()}
A function that refreshes a current version of the view, defined in module. Currently support only materialized views.
iex> Catalog.refresh :ok
Refreshes the materialized view.
This function is used to refresh the materialized view (only use if the view is materialized).