| :py:mod:`airflow.providers.influxdb.operators.influxdb` |
| ======================================================= |
| |
| .. py:module:: airflow.providers.influxdb.operators.influxdb |
| |
| |
| Module Contents |
| --------------- |
| |
| Classes |
| ~~~~~~~ |
| |
| .. autoapisummary:: |
| |
| airflow.providers.influxdb.operators.influxdb.InfluxDBOperator |
| |
| |
| |
| |
| .. py:class:: InfluxDBOperator(*, sql, influxdb_conn_id = 'influxdb_default', **kwargs) |
| |
| Bases: :py:obj:`airflow.models.BaseOperator` |
| |
| Executes sql code in a specific InfluxDB database |
| |
| .. seealso:: |
| For more information on how to use this operator, take a look at the guide: |
| :ref:`howto/operator:InfluxDBOperator` |
| |
| :param sql: the sql code to be executed. Can receive a str representing a |
| sql statement |
| :param influxdb_conn_id: Reference to :ref:`Influxdb connection id <howto/connection:influxdb>`. |
| |
| .. py:attribute:: template_fields |
| :annotation: :Sequence[str] = ['sql'] |
| |
| |
| |
| .. py:method:: execute(self, context) |
| |
| 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. |
| |
| |
| |