V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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 · 2018-03-26 14:29:21 +08:00 · 5741 次点击
    这是一个创建于 2195 天前的主题,其中的信息可能已经有所发展或是发生改变。
    https://news.ycombinator.com/item?id=16675088

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

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

    😄
    kunluanbudang
        12
    kunluanbudang  
       2018-03-29 01:20:32 +08:00
    我能说, 我都有点受不了 SQLAlchemy 了吗,

    :)
    est
        13
    est  
    OP
       2018-03-29 09:34:38 +08:00
    @kunluanbudang 赞。哈哈。

    sqlalchemy 过誉了。django 被低估了。
    hooopo
        14
    hooopo  
       2018-03-29 16:39:58 +08:00
    正想用
    chaleaochexist
        15
    chaleaochexist  
       2018-09-27 17:37:42 +08:00
    @glues
    @lightening

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

    我怎么感觉 django orm 就属于 ActiveRecord?
    glues
        16
    glues  
       2018-09-27 18:23:23 +08:00   ❤️ 1
    @chaleaochexist 严格来说 ActiveRecord 是属于 ORM 模型中的一种,django orm 确实是属于 ActiveRecord 模型的。
    而我们上文中提到的 ActiveRecord 是指 Rails ORM 就叫 ActiveRecord,可以去了解一下,非常强大
    lightening
        17
    lightening  
       2018-09-27 19:15:13 +08:00 via iPhone
    @chaleaochexist Ruby on Rails 的 active record 实现,就叫 ActiveRecord。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2897 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 48ms · UTC 13:56 · PVG 21:56 · LAX 06:56 · JFK 09:56
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.