airflow.providers.influxdb.operators.influxdb

Module Contents

Classes

InfluxDBOperator

Executes sql code in a specific InfluxDB database

class airflow.providers.influxdb.operators.influxdb.InfluxDBOperator(*, sql, influxdb_conn_id='influxdb_default', **kwargs)[source]

Bases: airflow.models.BaseOperator

Executes sql code in a specific InfluxDB database

See also

For more information on how to use this operator, take a look at the guide: InfluxDBOperator

Parameters
  • sql (str) – the sql code to be executed. Can receive a str representing a sql statement

  • influxdb_conn_id (str) – Reference to Influxdb connection id.

template_fields :Sequence[str] = ['sql'][source]
execute(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?