airflow.providers.exasol.operators.exasol

Module Contents

Classes

ExasolOperator

Executes sql code in a specific Exasol database

class airflow.providers.exasol.operators.exasol.ExasolOperator(*, sql, exasol_conn_id='exasol_default', autocommit=False, parameters=None, schema=None, **kwargs)[source]

Bases: airflow.models.BaseOperator

Executes sql code in a specific Exasol database

Parameters
  • sql (str) -- the SQL code to be executed as a single string, or a list of str (sql statements), or a reference to a template file. template references are recognized by str ending in '.sql'

  • exasol_conn_id (str) -- reference to a specific Exasol database

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

  • parameters (Optional[dict]) -- (optional) the parameters to render the SQL query with.

  • schema (Optional[str]) -- (optional) name of the schema which overwrite defined one in connection

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

This is the main method to derive when creating an operator. Context is the same dictionary used as when rendering jinja templates.

Refer to get_template_context for more context.

Was this entry helpful?