wlmhelpers.py 文件源码

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

项目:COH-tools 作者: Vesihiisi 项目源码 文件源码
def create_connection(arguments):
    """Create a connection to the SQL database using arguments."""
    arguments = vars(arguments)
    if on_forge():
        arguments["host"] = "tools-db"
        arguments["db"] = "s51138__heritage_p"
        credentials = get_db_credentials()
        arguments["user"] = credentials["user"]
        arguments["password"] = credentials["password"]

    return pymysql.connect(
        host=arguments["host"],
        user=arguments["user"],
        password=arguments["password"],
        db=arguments["db"],
        charset="utf8")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号