pub struct CreateMaterializedViewRequestOptions
pub collection_name: String,
pub execute_as: String,
pub build_materialized_view_policy: String,
pub persist: String,
pub enable_mv_input_wrappers: String,
pub refresh_span: String,
pub refresh_stop_time: String,
pub refresh_method: String,
pub refresh_period: String,
pub refresh_start_time: String,
pub ttl: String,
Optional parameters for the /create/materializedview endpoint.
Default::default() is the empty set: only options set explicitly are sent, and anything left empty falls back to the server’s own default.
Fields
collection_name: String[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.
execute_as: StringUser name to use to run the refresh job.
build_materialized_view_policy: StringSets startup materialized view rebuild scheme. Server default: system.
persist: StringIf 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. Server default: false.
enable_mv_input_wrappers: StringIf 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. Server default: false.
refresh_span: StringSets the future time-offset(in seconds) at which periodic refresh stops.
refresh_stop_time: StringWhen 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’.
refresh_method: StringMethod by which the join can be refreshed when the data in underlying member tables have changed. Server default: manual.
refresh_period: StringWhen refresh_method is periodic, specifies the period in seconds at which refresh occurs.
refresh_start_time: StringWhen 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’.
ttl: StringSets the TTL of the table specified in table_name.
Implementations
Trait Implementations
fn clone(&self) -> CreateMaterializedViewRequestOptions
fn clone_from(&mut self, source: &Self)
source. Read more