Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
class_name : str
Class name for the operator
sql : str
SQL string to use as wrapper
Returns
-------
Type
"""
from flowetl.mixins.table_name_macros_mixin import TableNameMacrosMixin
from airflow.operators.postgres_operator import PostgresOperator
return type(
class_name,
(TableNameMacrosMixin, WrappingSQLMixin, PostgresOperator),
dict(wrapper_sql=sql),
)