推荐学习书目
› 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
agentwx
V2EX  ›  Python

sqlalchemy 在创建表的时候,能不能给表字段加上注释? 看了官方文档,关于 Column 的内容,没有 comment 相关的内容。

  •  
  •   agentwx · Nov 23, 2016 · 4757 views
    This topic created in 3596 days ago, the information mentioned may be changed or developed.
    2 replies  •  2016-11-24 09:36:42 +08:00
    Sight4
        1
    Sight4  
       Nov 24, 2016   ❤️ 1
    暂时为止,不能。参考官方文档 Column 的 doc 属性说明『 doc – optional String that can be used by the ORM or similar to document attributes. This attribute does not render SQL comments (a future attribute ‘ comment ’ will achieve that).』
    agentwx
        2
    agentwx  
    OP
       Nov 24, 2016
    @Sight4 嗯, 我也看到了这个,以为还有另外的用法
    感谢~
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   856 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 21:35 · PVG 05:35 · LAX 14:35 · JFK 17:35
    ♥ Do have faith in what you're doing.