__main__.py 文件源码

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

项目:simphony-remote 作者: simphony 项目源码 文件源码
def init(ctx):
    """Initializes the database."""
    db = ctx.obj.db
    db_url = db.url

    # Check if the database already exists
    if is_sqlitedb_url(db_url) and sqlitedb_present(db_url):
        raise click.UsageError("Refusing to overwrite database "
                               "at {}".format(db_url))
    db.reset()


# -------------------------------------------------------------------------
# User commands
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号