|
@@ -259,36 +259,36 @@ class RedisHelper(object):
|
|
|
|
|
|
|
|
|
|
|
|
-class HologresHelper(object):
|
|
|
- def __init__(self):
|
|
|
- """初始化hologres连接信息"""
|
|
|
-
|
|
|
-
|
|
|
- def get_data(self, sql):
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- conn = connectPool.getconn()
|
|
|
-
|
|
|
- cur = conn.cursor()
|
|
|
- try:
|
|
|
-
|
|
|
- cur.execute(sql)
|
|
|
- data = cur.fetchall()
|
|
|
- cur.close()
|
|
|
- connectPool.putconn(conn, close=False)
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- except Exception as e:
|
|
|
- log_.error('hologress error...')
|
|
|
- log_.error(traceback.format_exc())
|
|
|
- cur.close()
|
|
|
- connectPool.putconn(conn, close=False)
|
|
|
- return []
|
|
|
- return data
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
class MysqlHelper(object):
|