View YAML: Source configuration

You can extensively customise your views in YAML. Below is the schema and some examples to get you started.

Source configuration schema

Field nameDescription
sourceThis details the query or queries that need to be run in order to populate the view.
source.connectionThe connection key to use when running the query (or null to use DuckDB). This must be a connection that is available in the catalog.
source.queryThe SQL query to run in order to populate the view. This is defined in the dialect of the database.
source.dependenciesA list of cells that are dependencies of this view. Optional.
source.dependencies[*].nameThe name of the cell. Must be unique with the dependency list.
source.dependencies[*].queryThe SQL or Python query that is run in order to populate the cell.
source.dependencies[*].languageThe type of the cell. This can be one of sql or python. Optional.
source.dependencies[*].connectionThe connection key to use when running the query (or null to use DuckDB). This must be a connection that is available in the catalog. This is ignored for Python cells. Defaults to the connection of the view. Optional.

Example uses

Loading...