admin.py 文件源码

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

项目:postpy 作者: portfoliome 项目源码 文件源码
def install_extensions(extensions, **connection_parameters):
    """Install Postgres extension if available.

    Notes
    -----
    - superuser is generally required for installing extensions.
    - Currently does not support specific schema.
    """

    from postpy.connections import connect

    conn = connect(**connection_parameters)
    conn.autocommit = True

    for extension in extensions:
        install_extension(conn, extension)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号