options.py 文件源码

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

项目:coquery 作者: gkunter 项目源码 文件源码
def get_configuration_type():
    """
    Return the type of the current configuration.

    Returns
    -------
    s : str or None
        Depending on the type of the currenct configuration, `s` equals
        either the constant SQL_MYSQL or SQL_SQLITE from defines.py. If
        no configuration is available, return None.
    """
    if cfg.current_server in cfg.server_configuration:
        return cfg.server_configuration[cfg.current_server]["type"]
    else:
        return None
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号