sqlmesh.core.config.migration
1from __future__ import annotations 2 3from sqlmesh.core.config.base import BaseConfig 4 5 6class MigrationConfig(BaseConfig): 7 """Configuration for the SQLMesh state migration. 8 9 Args: 10 promoted_snapshots_only: If True, only snapshots that are part of at least one environment will be migrated. 11 Otherwise, all snapshots will be migrated. 12 """ 13 14 promoted_snapshots_only: bool = True
7class MigrationConfig(BaseConfig): 8 """Configuration for the SQLMesh state migration. 9 10 Args: 11 promoted_snapshots_only: If True, only snapshots that are part of at least one environment will be migrated. 12 Otherwise, all snapshots will be migrated. 13 """ 14 15 promoted_snapshots_only: bool = True
Configuration for the SQLMesh state migration.
Arguments:
- promoted_snapshots_only: If True, only snapshots that are part of at least one environment will be migrated. Otherwise, all snapshots will be migrated.
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