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.

property hosts: list[str][source]
property database: str[source]
property username: str[source]
property password: str[source]
conn_name_attr = 'arangodb_conn_id'[source]
default_conn_name = 'arangodb_default'[source]
conn_type = 'arangodb'[source]
hook_name = 'ArangoDB'[source]
client()[source]

Initiates a new ArangoDB connection (cached).

db_conn()[source]

Connect to an ArangoDB database and return the database API wrapper.

get_conn()[source]

Initiate a new ArangoDB connection (cached).

query(query, **kwargs)[source]

Create an ArangoDB session and execute the AQL query in the session.

Parameters

query – AQL query

create_collection(name)[source]
create_database(name)[source]
create_graph(name)[source]
classmethod get_ui_field_behaviour()[source]

Was this entry helpful?