Edit on GitHub

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
class MigrationConfig(sqlmesh.core.config.base.BaseConfig):
 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.
Inherited Members
pydantic.main.BaseModel
BaseModel
model_extra
model_fields_set
model_construct
model_copy
model_dump
model_dump_json
model_json_schema
model_parametrized_name
model_rebuild
model_validate
model_validate_json
model_validate_strings
parse_file
from_orm
construct
schema
schema_json
validate
update_forward_refs
sqlmesh.core.config.base.BaseConfig
update_with
model_post_init
sqlmesh.utils.pydantic.PydanticModel
dict
json
copy
parse_obj
parse_raw
missing_required_fields
extra_fields
all_fields
all_field_infos
required_fields