Module Contents

class airflow.operators.sqlite_operator.SqliteOperator(sql, sqlite_conn_id='sqlite_default', parameters=None, *args, **kwargs)[source]

Bases: airflow.models.BaseOperator

Executes sql code in a specific Sqlite database

  • sql (str or string pointing to a template file. File must have a '.sql' extensions.) – the sql code to be executed. (templated)

  • sqlite_conn_id (str) – reference to a specific sqlite database

  • parameters (mapping or iterable) – (optional) the parameters to render the SQL query with.

template_fields = ['sql'][source]
template_ext = ['.sql'][source]
ui_color = #cdaaed[source]
execute(self, context)[source]

Was this entry helpful?