flowetl.mixins.fixed_sql_with_params_mixin¶
Class ParamsMixin¶
ParamsMixin(*args, **kwargs) -> None
fixed_sql_operator_with_params¶
fixed_sql_operator_with_params(*, class_name: str, sql: str, params: List[str], is_sensor: bool = False) -> Type
Manufactor a new operator which will run a fixed sql template with some values as parameters
Parameters¶
-
class_name:strName of the operator class
-
sql:strFixed sql string (will be templated)
-
params:typing.List[str]A list of named parameters the operator should accept at instantiation
-
is_sensor:bool, defaultFalseSet to True if this is a sensor
Returns¶
-
typing.TypeNew operator class