This topic discusses the dependency API provided by the migration framework.
MinVersion
and MaxVersion
dependencies as well as the DBMSDependency
will mark a packet as unnecessary instead
The base class.
Function | Parameters | Return Value | Description |
---|---|---|---|
BaseDependency.__init__(self) |
Initialize the dependency | ||
BaseDependency.get_log_content(self) |
Retrieve a list of all log statements in the buffer and clear it | ||
BaseDependency.log(self, text) |
text: String | Write to the internal log buffer |
Property![]() |
Getter | Setter | Description |
---|---|---|---|
BaseDependency.is_met | ![]() |
![]() |
This property is abstract and must be implemented in a subclass. It must return if the condition of the dependency is satisfied |
Dependency on the type of database used.
Function | Parameters | Return Value | Description |
---|---|---|---|
DBMSDependency.__init__(self, expected_dbms) |
expected_dbms: '000002' for Oracle and '000004' for MSSQL |
Initialize the dependency |
Dependency on Datenbank-Changeset
Function | Parameters | Return Value | Description |
---|---|---|---|
MaxVersionDependency.__init__(self, version) |
version: Customizing version like '39.5.11' |
Initialize the dependency |
Dependency on Datenbank-Changeset
Function | Parameters | Return Value | Description |
---|---|---|---|
MinVersionDependency.__init__(self, version) |
version: Customizing version like '39.5.11' |
Initialize the dependency |
Function | Parameters | Return Value | Description |
---|---|---|---|
PacketDependency.__init__(self, packet_path, expected_state) |
packet_path: Python-Pfad expected_state: PacketState |
Initialize the dependency |