Constants for the fields of the /create/materializedview request.
Option fields
options
Constants for options.
pub const ALWAYS: &str = “always”;Rebuild as many materialized views as possible before accepting requests.
pub const BUILD_MATERIALIZED_VIEW_POLICY: &str = “build_materialized_view_policy”;Sets startup materialized view rebuild scheme.
pub const COLLECTION_NAME: &str = “collection_name”;[DEPRECATED–please specify the containing schema for the materialized view as part of table_name and use /create/schema to create the schema if non-existent] Name of a schema which is to contain the newly created view. If the schema provided is non-existent, it will be automatically created.
pub const ENABLE_MV_INPUT_WRAPPERS: &str = “enable_mv_input_wrappers”;If true, each base table the view reads is accessed through a wrapper view so an in-progress out-of-place update cannot make a record momentarily disappear from the view, and a long refresh does not block updates to the base tables. Overrides the gaia.enable_mv_input_wrappers configuration default when set.
pub const EXECUTE_AS: &str = “execute_as”;User name to use to run the refresh job.
pub const FALSE: &str = “false”;pub const LAZY: &str = “lazy”;Rebuild the necessary materialized views at start, and load the remainder lazily.
pub const MANUAL: &str = “manual”;Refresh only occurs when manually requested by calling /alter/table with an ‘action’ of ‘refresh’.
pub const ON_CHANGE: &str = “on_change”;If possible, incrementally refresh (refresh just those records added) whenever an insert, update, delete or refresh of input table is done. A full refresh is done if an incremental refresh is not possible.
pub const ON_DEMAND: &str = “on_demand”;Rebuild materialized views as requests use them.
pub const ON_QUERY: &str = “on_query”;Refresh any time the view is queried.
pub const PERIODIC: &str = “periodic”;Refresh table periodically at rate specified by refresh_period.
pub const PERSIST: &str = “persist”;If true, then the materialized view specified in table_name will be persisted and will not expire unless a ttl is specified. If false, then the materialized view will be an in-memory table and will expire unless a ttl is specified otherwise.
pub const REFRESH_METHOD: &str = “refresh_method”;Method by which the join can be refreshed when the data in underlying member tables have changed.
pub const REFRESH_PERIOD: &str = “refresh_period”;When refresh_method is periodic, specifies the period in seconds at which refresh occurs.
pub const REFRESH_SPAN: &str = “refresh_span”;Sets the future time-offset(in seconds) at which periodic refresh stops.
pub const REFRESH_START_TIME: &str = “refresh_start_time”;When refresh_method is periodic, specifies the first time at which a refresh is to be done. Value is a datetime string with format ‘YYYY-MM-DD HH:MM:SS’.
pub const REFRESH_STOP_TIME: &str = “refresh_stop_time”;When refresh_method is periodic, specifies the time at which a periodic refresh is stopped. Value is a datetime string with format ‘YYYY-MM-DD HH:MM:SS’.
pub const SYSTEM: &str = “system”;Rebuild materialized views using the system-configured default.
pub const TRUE: &str = “true”;pub const TTL: &str = “ttl”;Sets the TTL of the table specified in table_name.