From: | Stephane Bortzmeyer <bortzmeyer(at)nic(dot)fr> |
---|---|
To: | Denis Bitouzé <dbitouze(at)wanadoo(dot)fr> |
Cc: | pgsql-fr-generale(at)postgresql(dot)org |
Subject: | Re: [Python] Formatage d'une requête SQL |
Date: | 2010-01-27 14:32:25 |
Message-ID: | 20100127143225.GA10357@nic.fr |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | Postg토토SQL : Postg토토SQL |
On Wed, Jan 27, 2010 at 03:19:21PM +0100,
Denis Bitouzé <dbitouze(at)wanadoo(dot)fr> wrote
a message of 34 lines which said:
> Je souhaiterais pouvoir récupérer le résultat d'une requête sous son
> formatage habituel,
Pourquoi ne pas utiliser les mécanismes de formatage de Python, comme
le paquetage formatter <http://docs.python.org/library/formatter.html>
ou <http://docs.python.org/library/string.html> ?
> Dans un script bash, cela se fait aisément en utilisant l'interface à
> PostgreSQL en ligne de commandes qu'est psql. Mais cela est-il possible
> directement en python ?
Ben, exactement de la même façon, en appelant psql.
From | Date | Subject | |
---|---|---|---|
Next Message | Christophe Chauvet | 2010-01-27 14:41:24 | Re: [pgsql-fr-generale] [Python] Formatage d'une requête SQL |
Previous Message | Denis Bitouzé | 2010-01-27 14:19:21 | [Python] Formatage d'une requête SQL |