-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path__init__.py
27 lines (20 loc) · 1.05 KB
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# -*- coding: utf-8 -*-
"""
Plugin to store some usual PostgreSQL functions
"""
# pylint: disable=import-error,missing-docstring,too-few-public-methods
from airflow.plugins_manager import AirflowPlugin
from postgres_plugin.hooks.postgres_hook import PostgresWithSecretsManagerCredentialsHook
from postgres_plugin.operators.postgres_operator import PostgresWithSecretsManagerCredentialsOperator
from postgres_plugin.operators.postgres_operator import PostgresToPostgresOperator
from postgres_plugin.operators.postgres_to_s3_operator import PostgresToS3Operator
from postgres_plugin.operators.postgres_to_s3_operator import S3ToPostgresOperator
from postgres_plugin.operators.postgres_dump_operator import PostgresDumpOperator
class PostgresPlugin(AirflowPlugin):
name = "postgres_plugin"
operators = [PostgresWithSecretsManagerCredentialsOperator,
PostgresToPostgresOperator,
PostgresToS3Operator,
S3ToPostgresOperator,
PostgresDumpOperator]
hooks = [PostgresWithSecretsManagerCredentialsHook]