HookModel
Bases: PumCustomBaseModel
HookModel represents a migration hook configuration. It can either execute a file (SQL or Python script) or run inline SQL code.
Attributes:
Name | Type | Description |
---|---|---|
file |
Optional[str]
|
Optional path to a SQL file or a Python script to execute as a hook. |
code |
Optional[str]
|
Optional SQL code to execute as a hook. |