airflow.providers.neo4j.operators.neo4j

Module Contents

Classes

Neo4jOperator

Executes sql code in a specific Neo4j database.

class airflow.providers.neo4j.operators.neo4j.Neo4jOperator(*, sql, neo4j_conn_id='neo4j_default', parameters=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) – the sql code to be executed. Can receive a str representing a sql statement

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

template_fields: Sequence[str] = ('sql',)[source]
execute(context)[source]

Derive when creating an operator.

Context is the same dictionary used as when rendering jinja templates.

Refer to get_template_context for more context.

Was this entry helpful?