Contents:
Released 30 Oct 2007.
Released 25 July 2007.
Released 10 May 2007.
Released 3 May 2007.
Released 11 Apr 2007.
Released 19 Mar 2007.
Released 12 Feb 2007.
It is now possible to create tables that reference each other. Constraints (in the DBMSes that support constraints) are added after the tables have been created.
Added createSQL as an option for sqlmeta. Here you can add related SQL you want executed by sqlobject-admin create after table creation. createSQL expects a string, list, or dictionary. If using a dictionary the key should be a dbName value (ex. 'postgres') and the value should be a string or list. Examples in sqlobject/tests/test_sqlobject_admin.py or at <http://sqlobject.org/sqlobject-admin.html#the-create-command>
Added method sqlhub.doInTransaction(callable, *args, **kwargs), to be used like:
sqlhub.doInTransaction(process_request, os.environ)
This will run process_request(os.environ). The return value will be preserved.
Added method .getOne([default]) to SelectResults (these are the objects returned by .select() and .selectBy()). This returns a single object, when the query is expected to return only one object. The single argument is the value to return when zero results are found (more than one result is always an error). If no default is given, it is an error if no such object exists.
Added a WSGI middleware (in sqlobject.wsgi_middleware) for configuring the database for the request. Also handles transactions. Available as egg:SQLObject in Paste Deploy configuration files.
New joins! ManyToMany and OneToMany; not fully documented yet, but still more sensible and smarter.
SELECT FOR UPDATE
New module dberrors.py - a hierarchy of exceptions. Translation of DB API module's exceptions to the new hierarchy is performed for SQLite and MySQL.
SQLiteConnection got a new keyword "factory" - a name or a reference to a factory function that returns a connection class; useful for implementing functions or aggregates. See test_select.py and test_sqlite_factory.py for examples.
SQLObject now disallows columns with names that collide with existing variables and methods, such as "_init", "expire", "set" and so on.
Released 10 Jan 2008.
Released 30 Oct 2007.
Released 25 July 2007.
Released 10 May 2007.
Released 3 May 2007.
Released 11 Apr 2007.
Released 19 Mar 2007.
Released 30 Jan 2007.
Released 20 Nov 2006.
Released 25 Sep 2006.