The attached files implement PostgreSQL support for
MiddleKit. There are several issues however:
- PostgreSQL requires that transactions be committed.
I would suggest adding a pre-transaction and
post-transaction method to the SQLObejctServer class
that can be overridden to add transaction support. I
would envisage transactions covering the entirety of a
- PostgreSQL (and other databases) do not support
acquiring the primary key of the last inserted row as a
contextless after-the-fact operation a la MySQL. To
work around this I've had to override the _insertObject
method of SQLObjectStore so as to avoid using the
retrieveLastInsertId method. To fix this in the least
intrusive way possible would require passing the
object.sqlTableName() and object.sqlIdName() to
These files have not been heavily tested.