airflow.providers.oracle.operators.oracle

Module Contents

class airflow.providers.oracle.operators.oracle.OracleOperator(*, sql: str, oracle_conn_id: str = 'oracle_default', parameters: Optional[Union[Mapping, Iterable]] = None, autocommit: bool = False, **kwargs)[source]

Bases: airflow.models.BaseOperator

Executes sql code in a specific Oracle database

Parameters
  • sql (str or list[str]) -- the sql code to be executed. Can receive a str representing a sql statement, a list of str (sql statements), or reference to a template file. Template reference are recognized by str ending in '.sql' (templated)

  • oracle_conn_id (str) -- reference to a specific Oracle database

  • parameters (dict or iterable) -- (optional) the parameters to render the SQL query with.

  • autocommit (bool) -- if True, each command is automatically committed. (default value: False)

template_fields = ['sql'][source]
template_ext = ['.sql'][source]
ui_color = #ededed[source]
execute(self, context)[source]

Was this entry helpful?