An Open Source and free ORM (Object Relational Manager) application written in Python
>>> from sqlobject import *
>>> sqlhub.processConnection = connectionForURI('sqlite:/:memory:')
>>> class Person(SQLObject):
... fname = StringCol()
... mi = StringCol(length=1, default=None)
... lname = StringCol()
Here's how you should use the object:
>>> p = Person(fname="John", lname="Doe")
>>> p.mi = 'Q'
>>> p2 = Person.get(1)
>>> p is p2
In a hurry? Add it to your Download Basket!
What's New in version 1.5.0
- Features & Interface:
- Helpers for class Outer were changed to lookup columns in table's declarations.
- Support for Python 2.4 is declared obsolete and will be removed in the next release.