blob: 475bc3593da7752ed6ec92ea407796af8415f9ed [file] [log] [blame]
:mod:`airflow.providers.sqlite.operators.sqlite`
================================================
.. py:module:: airflow.providers.sqlite.operators.sqlite
Module Contents
---------------
.. py:class:: SqliteOperator(*, sql: str, sqlite_conn_id: str = 'sqlite_default', parameters: Optional[Union[Mapping, Iterable]] = None, **kwargs)
Bases: :class:`airflow.models.BaseOperator`
Executes sql code in a specific Sqlite database
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:SqliteOperator`
:param sql: the sql code to be executed. Can receive a str representing a
sql statement, a list of str (sql statements), or reference to a template file.
Template reference are recognized by str ending in '.sql'
(templated)
:type sql: str or list[str]
: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: dict or iterable
.. attribute:: template_fields
:annotation: = ['sql']
.. attribute:: template_ext
:annotation: = ['.sql']
.. attribute:: ui_color
:annotation: = #cdaaed
.. method:: execute(self, context: Mapping[Any, Any])