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

base_summary_query()

An equivalent of the Summary view, but represented as an Ecto subquery instead

drop_views(view_type \\ "view")

Executes the dropping of views for the given view_type.

migrate(atom)

Migrates the module down.

This function handles the migration process for the down direction. It calls migrate_views/0 and migrate_functions/0.

migrate_functions()

Migrates the custom SQL functions for permission calculation.

This function executes the creation or dropping of the add_perms and agg_perms functions.

migrate_views()

Migrates the summary view.

This function creates the summary view using the @create_summary_view SQL query, or drops it in down migrations.

refresh()

@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

refresh_material_view()

Refreshes the materialized view.

This function is used to refresh the materialized view (only use if the view is materialized).

repo()

source()