schema.py 文件源码

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

项目:fluiddb 作者: fluidinfo 项目源码 文件源码
def patchDatabase(store, schema):
    """Create a schema or apply databases patches to a database.

    @param store: The C{Store} for the database.
    @param schema: The Storm C{Schema} for the database.
    """
    try:
        schema.upgrade(store)
    except:
        transaction.abort()
        raise
    else:
        transaction.commit()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号