Re: 1.2 alpha, multiple databases, and raw SQL

2010-01-28 Thread Chris Curvey
> > from django.db import connections > > cursor = connections['mydb'].cursor() > cursor.execute('INSERT ') > > That is, the 'db.connection' object has been replaced with an index > called 'db.connections', keyed by database alias. Each of those > connections behaves as the single connection di

Re: 1.2 alpha, multiple databases, and raw SQL

2010-01-27 Thread Russell Keith-Magee
On Thu, Jan 28, 2010 at 10:41 AM, Chris Curvey wrote: > Is there a way to use raw SQL with multiple databases?  I thought it > might be something like: > > from django.db import connection > cursor = connection.cursor(using="mydb") > > but that complains about an unexpected keyword arg. It is pos

1.2 alpha, multiple databases, and raw SQL

2010-01-27 Thread Chris Curvey
Is there a way to use raw SQL with multiple databases? I thought it might be something like: from django.db import connection cursor = connection.cursor(using="mydb") but that complains about an unexpected keyword arg. -- You received this message because you are subscribed to the Google Group