sql.py 文件源码

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

项目:geekpoint 作者: Lujinghu 项目源码 文件源码
def sql_indexes(app_config, style, connection):
    "Returns a list of the CREATE INDEX SQL statements for all models in the given app."

    check_for_migrations(app_config, connection)

    output = []
    for model in router.get_migratable_models(app_config, connection.alias, include_auto_created=True):
        output.extend(connection.creation.sql_indexes_for_model(model, style))
    return output
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号