blob: 1545b616ca7975ec01ae7b2e101e03a529795adc [file] [log] [blame]
:mod:`airflow.providers.neo4j.operators.neo4j`
==============================================
.. py:module:: airflow.providers.neo4j.operators.neo4j
Module Contents
---------------
.. py:class:: Neo4jOperator(*, sql: str, neo4j_conn_id: str = 'neo4j_default', parameters: Optional[Union[Mapping, Iterable]] = None, **kwargs)
Bases: :class:`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, a list of str (sql statements)
:type sql: str or list[str]
:param neo4j_conn_id: Reference to :ref:`Neo4j connection id <howto/connection:neo4j>`.
:type neo4j_conn_id: str
.. method:: get_hook(self)
Function to retrieve the Neo4j Hook.
.. method:: execute(self, context: Dict)