blob: f393fcb2a159604f2ba656fbcf6b77934daa7b7e [file] [log] [blame]
:py:mod:`airflow.secrets.metastore`
===================================
.. py:module:: airflow.secrets.metastore
.. autoapi-nested-parse::
Objects relating to sourcing connections from metastore database
Module Contents
---------------
Classes
~~~~~~~
.. autoapisummary::
airflow.secrets.metastore.MetastoreBackend
.. py:class:: MetastoreBackend
Bases: :py:obj:`airflow.secrets.BaseSecretsBackend`
Retrieves Connection object and Variable from airflow metastore database.
.. py:method:: get_connection(conn_id, session=None)
Return connection object with a given ``conn_id``.
Tries ``get_conn_value`` first and if not implemented, tries ``get_conn_uri``
:param conn_id: connection id
.. py:method:: get_connections(conn_id, session=None)
Return connection object with a given ``conn_id``.
:param conn_id: connection id
.. py:method:: get_variable(key, session=None)
Get Airflow Variable from Metadata DB
:param key: Variable Key
:return: Variable Value