airflow.providers.neo4j.operators.neo4j

Module Contents

class airflow.providers.neo4j.operators.neo4j.Neo4jOperator(*, sql: str, neo4j_conn_id: str = 'neo4j_default', parameters: Optional[Union[Mapping, Iterable]] = None, **kwargs)[source]

Bases: airflow.models.BaseOperator

Executes sql code in a specific Neo4j database

See also

For more information on how to use this operator, take a look at the guide: Neo4jOperator

Parameters
  • sql (str or list[str]) -- the sql code to be executed. Can receive a str representing a sql statement, a list of str (sql statements)

  • neo4j_conn_id (str) -- Reference to Neo4j connection id.

get_hook(self)[source]

Function to retrieve the Neo4j Hook.

execute(self, context: Dict)[source]

Was this entry helpful?