blob: b22d0ecc35bf6d5fdfca484233c377e08ea4dcd8 [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 and Variable from airflow metastore database.
.. method:: get_connection(self, conn_id, session=None)
.. method:: get_connections(self, conn_id, session=None)
.. method:: get_variable(self, key: str, session=None)
Get Airflow Variable from Metadata DB
:param key: Variable Key
:type key: str
:return: Variable Value