|
|
|
|
|
- Properties specific to hScheduleMaterializedView variables
- Functions that are using the hScheduleMaterializedView variables:
hScheduleMaterializedView (Type of variable) In french: hPlanificationVueMatérialisée
The hScheduleMaterializedView type is used to programmatically manage a task for recalculating the data of a scheduled materialized view on an HFSQL server. The characteristics of this task can be defined and changed using different WLanguage properties. Remarks: - For more details on materialized views, see Materialized view.
- For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
// Refresh the materialized views every Saturday at 23:00 refreshView is hScheduleMaterializedView refreshView.Description = "View data recalculation"  // Characteristics of the scheduling refreshView.Scheduling.Month = "*" refreshView.Scheduling.DayOfWeek = "Saturday" refreshView.Scheduling.Hour = "23" refreshView.Scheduling.Minute = "0"  // Add the materialized view to refresh  // Syntax 1: // Refreshes all the materialized views of "MyDatabase" refreshView.View[1] = "MyDatabase"  // Syntax 2: // Refreshes "MyView" of "MyDatabase" refreshView.View[1] = "MyDatabase/MyView"  HAddScheduling(cnt, refreshView)
Remarks Properties specific to hScheduleMaterializedView variables The following properties can be used to handle a task for recalculating the data of a materialized view: | | | Property name | Type used | Effect |
---|
Description | Character string | Description associated with the data recalculation task of a materialized view. | Enabled | Boolean | - True if the data recalculation scheduling is enabled,
- False otherwise.
| Identifier | Integer | Identifier of the data recalculation task of materialized views. This property is read-only. | Scheduling | hScheduling variable | Characteristics of the scheduling to be established to recalculate the content of materialized views. | User | Character string | User who created the materialized view recalculation scheduling task. This property is read-only. | View | Array of strings | List of materialized views whose task will recalculate the content. These views have been created: To refresh all the materialized views of "MyDatabase", the syntax is as follows:
refreshView.View[1] = "MyDatabase" To refresh "MyView" of "MyDatabase", the syntax is as follows: refreshView.View[1] = "MyDatabase/MyView" |
Functions that are using the hScheduleMaterializedView variables: | | HAddScheduling | Creates a scheduled task on an HFSQL server: - stored procedure,
- backup,
- optimization,
- refresh of materialized view.
| HDeleteScheduling | Deletes a scheduled task found on an HFSQL server: - stored procedure,
- backup,
- optimization,
- refresh of materialized view.
| HExecuteScheduling | Immediately runs a scheduled task regardless of its schedule: - stored procedure,
- backup,
- optimization,
- refresh of materialized view.
| HModifyScheduling | Modifies a scheduled task on an HFSQL server: - stored procedure,
- backup,
- optimization,
- refresh of materialized view.
|
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|