global_test_suite.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:PYELT 作者: NLHEALTHCARE 项目源码 文件源码
def execute_sql(sql):
    # conn = psycopg2.connect("""host='localhost' dbname='pyelt_unittests' user='postgres' password='{}'""".format(get_your_password()))
    engine = create_engine(general_config['conn_dwh'])
    conn = engine.raw_connection()
    cursor = conn.cursor(cursor_factory=DictCursor)
    cursor.execute(sql)
    result = cursor.fetchall()
    conn.commit()
    cursor.close()

    return result
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号