hi
The automatic DB-declaration layer, dbcook.sf.net/, is now working
with either sqlalchemy 0.3 and 0.4. Other changes:
- All DB_* parametrisation class attributes become DBCOOK_*.
- DB-recreate works for postgress/msqql
- misc/metadata/: autoload, diff, copydata are ok
- Some work has been done on declaring collections (one2many), but as
i have no use cases for that (everything around is many2many because
of bitemporal), it may not happen soon. If anyone can give dbcook a
go and send some complains/questions/suggestions, would be very
welcome.
--------
For those interested in doing multiple SA-version compatibility:
* The auto-guessing of the version is done by
v03 = hasattr( sqlalchemy, 'mapper')
* an useful function for finding some attribute within the quickly
shifting module-structure is:
#in dbcook.util.attr:
def find_valid_fullname_import( paths, last_non_modules =1):
'search for a valid attribute path, importing them if needed'
...
with usage like (e.g. in expression.py)
ClauseAdapter = find_valid_fullname_import( '''
sqlalchemy.sql.util.ClauseAdapter
sqlalchemy.sql_util.ClauseAdapter
''',1 )
_COMPOUNDexpr = find_valid_fullname_import( '''
sqlalchemy.sql.expression.ClauseList
sqlalchemy.sql.ClauseList
sqlalchemy.sql._CompoundClause
''',1 )
_BinaryExpression = find_valid_fullname_import( '''
sqlalchemy.sql.expression._BinaryExpression
sqlalchemy.sql._BinaryExpression
''',1 )
(some of my usages date back to 0.3.6... i still keep them all)
The migration was not very easy thing, as dbcook uses a_lot of
under-cover internalities from SA.
========
svn co
https://dbcook.svn.sourceforge.net/svnroot/dbcook/trunk/
ciao
svilen
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---