airflow.providers.arangodb.operators.arangodb¶
Classes¶
Executes AQL query in a ArangoDB database. |
|
Executes collection operations in a ArangoDB database. |
Module Contents¶
- class airflow.providers.arangodb.operators.arangodb.AQLOperator(*, query, arangodb_conn_id='arangodb_default', result_processor=None, **kwargs)[source]¶
Bases:
airflow.models.BaseOperator
Executes AQL query in a ArangoDB database.
See also
For more information on how to use this operator, take a look at the guide: Operators
- Parameters:
query (str) – the AQL query to be executed. Can receive a str representing a AQL statement, or you can provide .sql file having the query
result_processor (Callable | None) – function to further process the Result from ArangoDB
arangodb_conn_id (str) – Reference to ArangoDB connection id.
- template_fields: collections.abc.Sequence[str] = ('query',)[source]¶
- template_ext: collections.abc.Sequence[str] = ('.sql',)[source]¶
- class airflow.providers.arangodb.operators.arangodb.ArangoDBCollectionOperator(*, arangodb_conn_id='arangodb_default', collection_name, documents_to_insert=None, documents_to_update=None, documents_to_replace=None, documents_to_delete=None, delete_collection=False, **kwargs)[source]¶
Bases:
airflow.models.BaseOperator
Executes collection operations in a ArangoDB database.
- Parameters:
arangodb_conn_id (str) – Connection ID for ArangoDB, defaults to “arangodb_default”.
collection_name (str) – The name of the collection to be operated on.
documents_to_insert (list[dict[str, Any]] | None) – A list of python dictionaries to insert into the collection.
documents_to_update (list[dict[str, Any]] | None) – A list of python dictionaries to update in the collection.
documents_to_replace (list[dict[str, Any]] | None) – A list of python dictionaries to replace in the collection.
documents_to_delete (list[dict[str, Any]] | None) – A list of python dictionaries to delete from the collection.
delete_collection (bool) – If True, the specified collection will be deleted.