Django Models / SQLAlchemy are bloated! Any truly Pythonic DB models out there?

后端 未结 8 1845
广开言路
广开言路 2021-02-09 15:16

\"Make things as simple as possible, but no simpler.\"

Can we find the solution/s that fix the Python database world?

Update: A

8条回答
  •  闹比i
    闹比i (楼主)
    2021-02-09 15:55

    If you like CherryPy, you might like the complementary ORMs I wrote: GeniuSQL (which follows a Table Data gateway model) and Dejavu (which is a complete Data Mapper).

    There's far too much in this question and all its subcomments to address completely, but one thing I wanted to point out was that GeniuSQL and Dejavu have a very robust system for mapping native Python types to the types that your particular backend is using. There are very sane defaults, which can be overridden as needed, and even extended if you make a new backend or use types from a backend that isn't yet supported. See http://www.aminus.net/geniusql/chrome/common/doc/trunk/advanced.html#custom for more discussion on that.

提交回复
热议问题