Alex Gaynor
|
0d62f50271
|
[soc2009/multidb] Added tests for using foreign keys across multipled databases, ManyToMany tests will come after the merger of my many-to-many refactor work.
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/multidb@11425 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2009-08-09 22:03:24 +00:00 |
|
Alex Gaynor
|
e2fecde4a9
|
[soc2009/multidb] Removed several tests that were no longer needed as they're tested elsehwere
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/multidb@11405 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2009-08-05 21:49:24 +00:00 |
|
Alex Gaynor
|
ac74fa7e32
|
[soc2009/multidb] Correctly handle pickling of Query objects, restoring them to the correct database.
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/multidb@11274 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2009-07-20 18:52:47 +00:00 |
|
Alex Gaynor
|
502d4982c9
|
[soc2009/multidb] Raise an exception at an attempt to do a subquery with 2 different databases. Eventually we'll just evaluate the 2 queries seperates.
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/multidb@11273 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2009-07-19 21:57:08 +00:00 |
|
Alex Gaynor
|
5d462b9ec1
|
[soc2009/multidb] Added a using option to a Model's Meta class. This allows you to select the default database for a specific model, in addition to the global default
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/multidb@11135 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2009-07-01 05:01:59 +00:00 |
|
Alex Gaynor
|
903ff126b0
|
[soc2009/multidb] Added tests to ensure that objects aren't being created before they are supposed to be, which would indicate we weren't creating objects in the right DB.
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/multidb@11076 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2009-06-19 00:29:18 +00:00 |
|
Alex Gaynor
|
4f461542b5
|
[soc2009/multidb] Ensure that when a QuerySet is given a Query object in its construct that we correct the detect the connection that is being used
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/multidb@11073 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2009-06-18 17:31:36 +00:00 |
|
Alex Gaynor
|
1653ffb571
|
[soc2009/multidb] Updated DateQuery to work correctly with multiple databases
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/multidb@10943 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2009-06-07 23:56:42 +00:00 |
|
Alex Gaynor
|
4d6c6d0596
|
[soc2009/multidb] Fixed the usage of the connection during Query construction, and defer it until actual SQL construction. In practice this means the GROUP BY optimization we do will be correctly applied based on the connection the Query is executed against, as oppossed to the on the QuerySet is targeting at the time the GROUP BY items are added
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/multidb@10934 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2009-06-06 19:38:29 +00:00 |
|
Alex Gaynor
|
91520ec364
|
[soc2009/multidb] Made filter SQL generation lazy when we aren't filtering on a specific field, also added additional tests
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/multidb@10923 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2009-06-04 16:53:45 +00:00 |
|
Alex Gaynor
|
fbb6fda5f6
|
[soc2009/multidb] Fixed the usage of using() on QuerySets in conjuction with create(), added tests for this
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/multidb@10922 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2009-06-04 16:13:14 +00:00 |
|
Alex Gaynor
|
9286db5145
|
[soc2009/multidb] Updated the test runner to support syncing all the databases django knows about so that tests can operate against more than one database
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/multidb@10895 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2009-06-03 02:13:01 +00:00 |
|
Alex Gaynor
|
bce55b1aa8
|
[soc2009/multidb] Implemented a connections object that is responsible for tracking multiple database connections and lazily instantiating them. Also implemneted the DATABASES setting which replaces the various DATABASE_* settings
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/multidb@10892 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2009-06-03 01:58:33 +00:00 |
|