sqlmesh.core.config.ui
1from __future__ import annotations 2 3import typing as t 4 5from sqlmesh.core.config.base import BaseConfig 6 7 8class UIConfig(BaseConfig): 9 """The UI configuration for SQLMesh. 10 11 Args: 12 format_on_save: Whether to format the SQL code on save or not. 13 node_colors: A mapping of model tags to hex color strings used 14 to color-code nodes in the lineage DAG visualization. 15 """ 16 17 format_on_save: bool = True 18 node_colors: t.Dict[str, str] = {}
9class UIConfig(BaseConfig): 10 """The UI configuration for SQLMesh. 11 12 Args: 13 format_on_save: Whether to format the SQL code on save or not. 14 node_colors: A mapping of model tags to hex color strings used 15 to color-code nodes in the lineage DAG visualization. 16 """ 17 18 format_on_save: bool = True 19 node_colors: t.Dict[str, str] = {}
The UI configuration for SQLMesh.
Arguments:
- format_on_save: Whether to format the SQL code on save or not.
- node_colors: A mapping of model tags to hex color strings used to color-code nodes in the lineage DAG visualization.
model_config =
{'json_encoders': {<class 'sqlglot.expressions.core.Expr'>: <function _expression_encoder>, <class 'sqlglot.expressions.datatypes.DataType'>: <function _expression_encoder>, <class 'sqlglot.expressions.query.Tuple'>: <function _expression_encoder>, typing.Union[sqlglot.expressions.query.Query, sqlmesh.core.dialect.JinjaQuery]: <function _expression_encoder>, typing.Union[sqlglot.expressions.query.Query, sqlmesh.core.dialect.JinjaQuery, sqlmesh.core.dialect.MacroFunc]: <function _expression_encoder>, <class 'datetime.tzinfo'>: <function PydanticModel.<lambda>>}, 'arbitrary_types_allowed': True, 'extra': 'forbid', 'protected_namespaces': ()}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
Inherited Members
- pydantic.main.BaseModel
- BaseModel
- model_fields
- model_computed_fields
- model_extra
- model_fields_set
- model_construct
- model_copy
- model_dump
- model_dump_json
- model_json_schema
- model_parametrized_name
- model_post_init
- model_rebuild
- model_validate
- model_validate_json
- model_validate_strings
- parse_file
- from_orm
- construct
- schema
- schema_json
- validate
- update_forward_refs