sqlmesh.core.config.dbt
1from sqlmesh.core.config.base import BaseConfig 2 3 4class DbtConfig(BaseConfig): 5 """ 6 Represents dbt-specific options on the SQLMesh root config. 7 8 These options are only taken into account for dbt projects and are ignored on native projects 9 """ 10 11 infer_state_schema_name: bool = False 12 """If set, indicates to the dbt loader that the state schema should be inferred based on the profile/target 13 so that each target gets its own isolated state"""
5class DbtConfig(BaseConfig): 6 """ 7 Represents dbt-specific options on the SQLMesh root config. 8 9 These options are only taken into account for dbt projects and are ignored on native projects 10 """ 11 12 infer_state_schema_name: bool = False 13 """If set, indicates to the dbt loader that the state schema should be inferred based on the profile/target 14 so that each target gets its own isolated state"""
Represents dbt-specific options on the SQLMesh root config.
These options are only taken into account for dbt projects and are ignored on native projects
infer_state_schema_name: bool
If set, indicates to the dbt loader that the state schema should be inferred based on the profile/target so that each target gets its own isolated state
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