Re: Proposal: user-friendly API for multi-database support

2008-10-23 Thread crippledcanary
What you are talking about here is somewhat covered in http://code.djangoproject.com/ticket/6148 But here it is called db_schema instead. In mysql "schema" is aliased to database. In postgres, (and probably oracle) it actually is a different schema within the same database. I made some work on th

How do I alter the behavior of django.db.models.Options.contribute_to_class when testing

2008-08-21 Thread crippledcanary
I am working on http://code.djangoproject.com/ticket/6148. This includes a new option "db_schema" that's been added to a models meta class. It involves using a custom schema for any model that has this attribute set. The problem comes when testing. In postgres a test database is created and inside