blob: 83aef585ccc9f493a7833d884c3e4f667cc14b3e [file] [log] [blame]
:mod:`airflow.secrets.metastore`
================================
.. py:module:: airflow.secrets.metastore
.. autoapi-nested-parse::
Objects relating to sourcing connections from metastore database
Module Contents
---------------
.. py:class:: MetastoreBackend
Bases: :class:`airflow.secrets.BaseSecretsBackend`
Retrieves Connection object from airflow metastore database.
.. method:: get_connections(self, conn_id, session=None)
.. method:: get_variable(self, key, session=None)
Get Airflow Variable from Metadata DB
:param key: Variable Key
:type key: str
:param session: Sqlalchemy ORM Session
:return: Variable Value