Python的ORM框架 SQLObject 1.1.2 发布

openkk 13年前
     SQLObject 是一个流行的Python 数据库对象映射框架,映射的规则就是表->类、字段->属性。示例代码:    <pre class="brush:python; toolbar: true; auto-links: false;">>>> from sqlobject import *  >>>  >>> sqlhub.processConnection = connectionForURI('sqlite:/:memory:')  >>>  >>> class Person(SQLObject):  ...     fname = StringCol()  ...     mi = StringCol(length=1, default=None)  ...     lname = StringCol()  ...  >>> Person.createTable()</pre>    <strong>变化包括:</strong> A bug was fixed in SelectResults slicing that prevented you from slicing a slice (for example, my_results[:20][1:5]).    <br />    <br /> 项目地址:    <a href="/misc/goto?guid=4958183771173060125" target="_blank">http://www.sqlobject.org/</a>    <br />