Skip to content

ParameterType

Bases: Enum

An enumeration of parameter types. This class defines the types of parameters that can be used in migration definitions.

Attributes:

Name Type Description
BOOLEAN str

Represents a boolean parameter type.

INTEGER str

Represents an integer parameter type.

TEXT str

Represents a text parameter type.

DECIMAL str

Represents a decimal parameter type.

PATH str

Represents a path parameter type.

Source code in pum/parameter.py
class ParameterType(Enum):
    """An enumeration of parameter types.
    This class defines the types of parameters that can be used in migration definitions.

    Attributes:
        BOOLEAN (str): Represents a boolean parameter type.
        INTEGER (str): Represents an integer parameter type.
        TEXT (str): Represents a text parameter type.
        DECIMAL (str): Represents a decimal parameter type.
        PATH (str): Represents a path parameter type.

    """

    BOOLEAN = "boolean"
    INTEGER = "integer"
    TEXT = "text"
    DECIMAL = "decimal"
    PATH = "path"