The Properties page is used to determine the database, to which a view, view's physical name and view query's text are added.

Determine the parameters:
Select Database. In the drop-down list select a database, to which query will be placed. When ClickHouse DBMS is selected, and the Saved View checkbox is selected, a table is created to store data obtained after query execution using the MergeTree mechanism. The use of ClickHouse DBMS is available only in the web application.
To quickly select an object, enter object's name/identifier/key in the search box depending on display settings. Search is executed automatically while the searched text is entered into the search string. The list will display the objects, which names/identifiers/keys contain the entered text.
To set up displaying of repository objects, click the
Show Object button and select display option in the drop-down menu:
Name. Objects are displayed with their names. Default option.
Identifier. Objects are displayed with their identifiers.
Key. Objects are displayed with their keys.
Several options can be selected. Identifier and key will be specified in brackets.
To reset selection for selected objects, click the
Clear button.
Physical Name. By default, table identifier is used as the physical name of the table.
Permit an Incorrect View to Be Created. The checkbox is deselected by default. Select the checkbox to create a view with an incorrect query.
Saved View. Select the checkbox to work both with view data and with data of a standard table. When the checkbox is selected, editing view data does not result in changing data of basic tables. When data of the basic tables is changed, view contents is not refreshed. One can create indexes for a saved view.
NOTE. A view, which is saved incorrectly, cannot be created.
Query to Database. Create a query to database in the SQL language according to the syntax that is set for the selected DBMS driver.
The selected DBMS driver and the driver list are displayed next to the Query to Database box. By default, the driver list displays the selected driver used during repository connection setup. If query is specified for one or several drivers, the selected driver(s) will be marked in the driver list.
To show or hide the driver list, use the
Hide Driver List/Show Driver List button.
Click the Check Query button to check if the created query is correct.
To set the specified query to database for all DBMS, click the Apply for All DBMS button. The confirmation dialog box opens. If query is already specified for at least one driver that is different from the current one, all existing queries will be replaced with the current one if the answer is positive.

Determine the following parameters on the page:
Database. Select the database in the drop-down list. The driver specified in settings of the selected database is set automatically on changing a database.
Physical Name. By default, table identifier is used as the physical name of the table.
Permit an Incorrect View to Be Created. The checkbox is deselected by default. Select it to permit creation of a view with an incorrect query.
Saved View. Selecting this checkbox enables the user to work both with view data and with data of a standard table. When the checkbox is selected, editing view data does not result in changing data of basic tables. When data of the basic tables is changed, view contents is not refreshed. One can create indexes for a saved view.
NOTE. A view, which is saved incorrectly, cannot be created.
Driver. Select the driver type in the drop-down list. For details about available drivers see the Supported DBMS subsection. The Driver list displays by default the driver used in the selected database. If required, one can select another driver and determine the SQL query text for this driver. The parameter is relevant if the repository will be used on servers with different DBMS, and settings in repository database will be changed.
Query Text. Generate an SQL query in the box. The view will be built based on this query.
Apply to All DBMS. The button determines query text for all databases, that is, changing the driver does not affect query text. Clicking this button returns a request to confirm the operation. If the answer is Yes, query text will be specified for all DBMS. Confirmation is required if at least one driver other than the current one has non-empty query text.
See also: