Changes between Version 4 and Version 5 of MultipleDatabaseSupport
- 07/10/06 15:21:03 (9 years ago)
v4 v5 2 2 3 3 Work is underway on a patch for #1142, which will add support for multiple database connections. This page documents my current plan and progress towards a fully working patch. 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 4 21 5 22 === The plan === … … 51 68 * Add methods to Manager to support per-model installation. This will enable each model to be installed using the connection that it specifies. It causes some complications, mainly in determining the correct order in which to install. My current solution is to depend on the developer already having figure that out by defining her models in a sensible order; and, when that fails, punting any unresolved constraints to the end of the syncdb or install process. The manager methods will delegate to each model's backend to do the sql creation. 52 69 53 === Current status === 54 55 Current patch is attached (p5.diff). It implements most of the model-level changes, a few manager-level changes, and table creation, including generation (but not execution) of many-many tables. Relative to p4.diff, this patch adds transaction support and many-many table creation and fixes a few bugs. Nothing has been removed yet from django.core.management; the model table creation code there has just been adapted in django.db.backends.ansi.creation.