推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
est
V2EX  ›  Python

SQLAlchemy Alembic 作者被现场 diss 了。

  •  1
     
  •   est ·
    est · Mar 26, 2018 · 7259 views
    This topic created in 3146 days ago, the information mentioned may be changed or developed.
    https://news.ycombinator.com/item?id=16675088

    其实我也老早就想吐槽。。。Alembic 什么破玩意。。。
    17 replies  •  2018-09-27 19:15:13 +08:00
    glasslion
    glasslion
    Mar 26, 2018
    1
    和 Django migration 一比 真是天上地下

    利益相关: 被 Alembic 删过库
    ox180
    ox180
    Mar 26, 2018
    2
    django 的开箱即用,同时也非常好用
    alembic 更改一个字段后都不能检测到,还要改配置文件
    rogwan
    rogwan
    Mar 26, 2018 via Android
    3
    不是有 SQLAlchemy-Migrate 为什么要用 Alembic?
    glues
    glues
    Mar 26, 2018❤️6
    4
    不是我针对谁,这些跟 ActiveRecord 比,都是垃圾
    janxin
    janxin
    Mar 26, 2018 via iPhone
    5
    之前 0.6 的时候用过,也是出过问题…
    lightening
    lightening
    Mar 26, 2018
    6
    @glues 是的,用过 Python 界好几个 ORM,没一个和 ActiveRecord 一样好用的…… Migration 也都是渣渣(包括 Django 的)
    sudoz
    sudoz
    Mar 26, 2018
    7
    Interesting
    est
    est
    OP
    Mar 27, 2018
    8
    @glues 不得不同意。。嗯。。
    yakumo17
    yakumo17
    Mar 27, 2018
    9
    每次用完我总得对照下数据库看看改没改对
    hbin
    hbin
    Mar 27, 2018
    10
    @glues ActiveRecord 易用性秒杀其他任何 ORM,但是 Migration 人多了之后比较容易冲突(主要是因为很多人切换开发分支之前不知道 rollback db change )
    kunluanbudang
    kunluanbudang
    Mar 28, 2018 via Android
    11
    @rogwan
    老哥哪一款比较好,貌似和 django 的相比,都不能让人爽啊

    😄
    kunluanbudang
    kunluanbudang
    Mar 29, 2018
    12
    我能说, 我都有点受不了 SQLAlchemy 了吗,

    :)
    est
    est
    OP
    Mar 29, 2018
    13
    @kunluanbudang 赞。哈哈。

    sqlalchemy 过誉了。django 被低估了。
    hooopo
    hooopo
    Mar 29, 2018
    14
    正想用
    chaleaochexist
    chaleaochexist
    Sep 27, 2018
    15
    @glues
    @lightening

    大侠,ActiveRecord 能举几个具体实现吗?

    我怎么感觉 django orm 就属于 ActiveRecord?
    glues
    glues
    Sep 27, 2018❤️1
    16
    @chaleaochexist 严格来说 ActiveRecord 是属于 ORM 模型中的一种,django orm 确实是属于 ActiveRecord 模型的。
    而我们上文中提到的 ActiveRecord 是指 Rails ORM 就叫 ActiveRecord,可以去了解一下,非常强大
    lightening
    lightening
    Sep 27, 2018 via iPhone
    17
    @chaleaochexist Ruby on Rails 的 active record 实现,就叫 ActiveRecord。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2474 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 61ms · UTC 14:48 · PVG 22:48 · LAX 06:48 · JFK 09:48
    ♥ Do have faith in what you're doing.