blob: e2981cfa900938069067d01f7289b7327df86e07 [file] [log] [blame]
:py:mod:`airflow.providers.neo4j.operators.neo4j`
=================================================
.. py:module:: airflow.providers.neo4j.operators.neo4j
Module Contents
---------------
Classes
~~~~~~~
.. autoapisummary::
airflow.providers.neo4j.operators.neo4j.Neo4jOperator
.. py:class:: Neo4jOperator(*, sql, neo4j_conn_id = 'neo4j_default', parameters = None, **kwargs)
Bases: :py:obj:`airflow.models.BaseOperator`
Executes sql code in a specific Neo4j database
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:Neo4jOperator`
:param sql: the sql code to be executed. Can receive a str representing a
sql statement
:param neo4j_conn_id: Reference to :ref:`Neo4j connection id <howto/connection:neo4j>`.
.. 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.