blob: 89408078c8432544e61f4f9906b2268ea0181eb6 [file] [log] [blame]
:py:mod:`airflow.providers.vertica.operators.vertica`
=====================================================
.. py:module:: airflow.providers.vertica.operators.vertica
Module Contents
---------------
Classes
~~~~~~~
.. autoapisummary::
airflow.providers.vertica.operators.vertica.VerticaOperator
.. py:class:: VerticaOperator(*, sql, vertica_conn_id = 'vertica_default', **kwargs)
Bases: :py:obj:`airflow.models.BaseOperator`
Executes sql code in a specific Vertica database.
:param vertica_conn_id: reference to a specific Vertica database
:param sql: 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'
.. py:attribute:: template_fields
:annotation: :Sequence[str] = ['sql']
.. py:attribute:: template_ext
:annotation: :Sequence[str] = ['.sql']
.. py:attribute:: template_fields_renderers
.. py:attribute:: ui_color
:annotation: = #b4e0ff
.. py:method:: execute(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.