Update __init__.py

This commit is contained in:
Leozhanggg 2021-08-31 14:23:32 +08:00
parent 85cacd6997
commit badda99595
1 changed files with 12 additions and 5 deletions

View File

@ -1,5 +1,12 @@
from .querySolr import search_solr
from .queryHBase import PhoenixServer
from .queryES import elastic_search
from .queryMysql import MysqlServer
from .queryRedis import exec_redis
from config import read_yaml_data, DB_CONFIG, PROJECT_NAME
DC = read_yaml_data(DB_CONFIG)[PROJECT_NAME]
if 'solr_info' in DC:
from .querySolr import search_solr
if 'hbase_info' in DC:
from .queryHBase import PhoenixServer
if 'es_info' in DC:
from .queryES import elastic_search
if 'mysql_info' in DC:
from .queryMysql import MysqlServer
if 'redis_info' in DC:
from .queryRedis import exec_redis