[sqlalchemy] How to use BLOB datatype in alembic tool to support Postgresql?

2012-10-30 Thread junepeach
We want to support as many databases as we can. Right now we have BLOB data type defined in our database schemas, both sqlite3 and mysql work fine with Alembic migration tool on that data type, however it failed on Postgresql. How should we handle that if we really want to use BLOB datatype?

[sqlalchemy] Using Alembic to maintain versions of SPs and other objects?

2012-10-30 Thread Don Dwiggins
It appears that, at least currently, Alembic only directly manages tables (although I guess one could include SQL code in the upgrade/downgrade functions to add/delete/change SPs, user defined types, functions, etc. Am I right in this? If so, do you have any plans or thoughts about

Re: [sqlalchemy] How to use BLOB datatype in alembic tool to support Postgresql?

2012-10-30 Thread Mike Bayer
take a look at LargeBinary: http://docs.sqlalchemy.org/en/rel_0_7/core/types.html#sqlalchemy.types.LargeBinary On Oct 30, 2012, at 2:27 PM, junepeach wrote: We want to support as many databases as we can. Right now we have BLOB data type defined in our database schemas, both sqlite3 and

Re: [sqlalchemy] Using Alembic to maintain versions of SPs and other objects?

2012-10-30 Thread Mike Bayer
On Oct 30, 2012, at 2:39 PM, Don Dwiggins wrote: It appears that, at least currently, Alembic only directly manages tables (although I guess one could include SQL code in the upgrade/downgrade functions to add/delete/change SPs, user defined types, functions, etc. Am I right in this? If

[sqlalchemy] SQLAlchemy 0.8.0b1 released

2012-10-30 Thread Michael Bayer
The first beta release of the SQLAlchemy 0.8 series, 0.8.0b1, is released for developer evaluation. 0.8 represents the latest series of refinements to the SQLAlchemy Core and ORM libraries and features over 100 individual changes, consisting of major new features, bug fixes, and other

[sqlalchemy] Possible race condition using subqueryload?

2012-10-30 Thread Paul Rodger
Hi All. I have a select query that uses subqueryload and looks like this: completed_imports = self.ra_import_file.visible() \ .filter(ImportFile.lock_date == None) \ .filter(ImportFile.process_date != None) \ .order_by(ImportFile.process_date.desc())