blob: ef441d2e269e946eb75b6674ebcb7ea3d2785757 [file] [log] [blame]
:mod:`airflow.operators.sqlite_operator`
========================================
.. py:module:: airflow.operators.sqlite_operator
Module Contents
---------------
.. py:class:: SqliteOperator(sql, sqlite_conn_id='sqlite_default', parameters=None, *args, **kwargs)
Bases: :class:`airflow.models.BaseOperator`
Executes sql code in a specific Sqlite database
:param sql: the sql code to be executed. (templated)
:type sql: str or string pointing to a template file. File must have
a '.sql' extensions.
:param sqlite_conn_id: reference to a specific sqlite database
:type sqlite_conn_id: str
:param parameters: (optional) the parameters to render the SQL query with.
:type parameters: mapping or iterable
.. attribute:: template_fields
:annotation: = ['sql']
.. attribute:: template_ext
:annotation: = ['.sql']
.. attribute:: ui_color
:annotation: = #cdaaed
.. method:: execute(self, context)