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
:str
Name of the operator class
-
sql
:str
Fixed sql string (will be templated)
-
params
:typing.List
A list of named parameters the operator should accept at instantiation
-
is_sensor
:bool
, defaultFalse
Set to True if this is a sensor
Returns¶
-
typing.Type
New operator class