Skip to content

Migration context

mongorunway.domain.migration_context ¤

__all__: typing.Sequence[str] = ('MigrationContext') module-attribute ¤

MigrationContext ¤

Source code in mongorunway\domain\migration_context.py
@attr.define(frozen=True, repr=True)
class MigrationContext:
    mongorunway_session_id: str = attr.field(repr=True)
    mongodb_session_id: str = attr.field(repr=True)
    client: mongo.Client = attr.field(repr=False)
    database: mongo.Database = attr.field(repr=False)

client: mongo.Client = attr.field(repr=False) instance-attribute class-attribute ¤

database: mongo.Database = attr.field(repr=False) instance-attribute class-attribute ¤

mongodb_session_id: str = attr.field(repr=True) instance-attribute class-attribute ¤

mongorunway_session_id: str = attr.field(repr=True) instance-attribute class-attribute ¤