Skip to content

View - *.view

Declarative DDL for a database view. Synchronizer: ViewsSynchronizer. Same dialect-aware emission as *.table.

File format

json
{
    "name": "ACTIVE_CUSTOMER",
    "type": "VIEW",
    "query": "SELECT ID, NAME FROM CUSTOMER WHERE ACTIVE = TRUE"
}

Fields

FieldNotes
nameView name.
typeAlways "VIEW".
querySQL SELECT body. Keep it dialect-portable - the platform supports H2, Postgres, MSSQL, MariaDB, MySQL, HANA, Snowflake.

Reconciliation

CREATE -> CREATE VIEW. UPDATE -> DROP VIEW + CREATE VIEW (views are not patched in place). DELETE -> DROP VIEW.

Editor

Authored either through the Database Schema modeler or as raw JSON in Monaco. For ad-hoc DDL experimentation use the SQL view in the Database perspective.

See also

Released under the EPL-2.0 License.