>
> 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
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
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
3 matches
Mail list logo