airflow.secrets.metastore
¶
Objects relating to sourcing connections from metastore database
Module Contents¶
Classes¶
Retrieves Connection object and Variable from airflow metastore database. |
- class airflow.secrets.metastore.MetastoreBackend(**kwargs)[source]¶
Bases:
airflow.secrets.BaseSecretsBackend
Retrieves Connection object and Variable from airflow metastore database.
- get_connection(self, conn_id, session=None) Optional[airflow.models.connection.Connection] [source]¶
Return connection object with a given
conn_id
.- Parameters
conn_id (str) – connection id
- get_connections(self, conn_id, session=None) List[airflow.models.connection.Connection] [source]¶
Return connection object with a given
conn_id
.- Parameters
conn_id (str) – connection id