Skip to content

flowetl.mixins.fixed_sql_with_params_mixin

Class ParamsMixin

ParamsMixin(*args, **kwargs) -> None
Source: flowetl/mixins/fixed_sql_with_params_mixin.py

fixed_sql_operator_with_params

fixed_sql_operator_with_params(*, class_name: str, sql: str, params: List[str], is_sensor: bool = False) -> Type
Source: flowetl/mixins/fixed_sql_with_params_mixin.py

Manufactor a new operator which will run a fixed sql template with some values as parameters

Parameters

  • class_name: str

    Name of the operator class

  • sql: str

    Fixed sql string (will be templated)

  • params: typing.List[str]

    A list of named parameters the operator should accept at instantiation

  • is_sensor: bool, default False

    Set to True if this is a sensor

Returns

  • typing.Type

    New operator class