airflow.providers.arangodb.hooks.arangodb

This module allows connecting to a ArangoDB.

Module Contents

Classes

ArangoDBHook

Interact with ArangoDB.

class airflow.providers.arangodb.hooks.arangodb.ArangoDBHook(arangodb_conn_id=default_conn_name, *args, **kwargs)[source]

Bases: airflow.hooks.base.BaseHook

Interact with ArangoDB.

Performs a connection to ArangoDB and retrieves client.

Parameters

arangodb_conn_id (str) -- Reference to ArangoDB connection id.

conn_name_attr = arangodb_conn_id[source]
default_conn_name = arangodb_default[source]
conn_type = arangodb[source]
hook_name = ArangoDB[source]
get_conn(self)[source]

Function that initiates a new ArangoDB connection

query(self, query, **kwargs)[source]

Function to create a arangodb session and execute the AQL query in the session.

Parameters

query -- AQL query

Returns

Result

Return type

arango.result.Result

create_collection(self, name)[source]
create_database(self, name)[source]
create_graph(self, name)[source]
static get_ui_field_behaviour()[source]

Was this entry helpful?