Skip to main content
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: String

User name to use to run the refresh job.

build_materialized_view_policy: String

Sets startup materialized view rebuild scheme. Server default: system.

persist: String

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. Server default: false.

enable_mv_input_wrappers: String

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. Server default: false.

refresh_span: String

Sets the future time-offset(in seconds) at which periodic refresh stops.

refresh_stop_time: String

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’.

refresh_method: String

Method by which the join can be refreshed when the data in underlying member tables have changed. Server default: manual.

refresh_period: String

When refresh_method is periodic, specifies the period in seconds at which refresh occurs.

refresh_start_time: String

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’.

ttl: String

Sets the TTL of the table specified in table_name.

Implementations

Source

pub fn to_map(&self) -> HashMap<String, String>

Converts the set (non-empty) options into the wire-format string map.

Trait Implementations

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source

fn fmt(&self, f: &mut Formatter<’_>) -> Result

Formats the value using the given formatter. Read more