[sqlalchemy] Re: Using psql commands (i.e. \d) through sqlalchemy.core

2016-11-01 Thread Ugo Di Girolamo
Thank you Jonathan and Lele! I'll look at pgspecial, looks like I will be able to use it. Ciao! Ugo On Monday, October 31, 2016 at 3:07:41 PM UTC-4, Lele Gaifax wrote: > > Jonathan Vanasco writes: > > > I believe the answer is no. > > > > IIRC, those psql commands are

[sqlalchemy] Re: Using psql commands (i.e. \d) through sqlalchemy.core

2016-10-31 Thread Lele Gaifax
Jonathan Vanasco writes: > I believe the answer is no. > > IIRC, those psql commands are shortcuts within psql... and the various > drivers (psycopg2, etc) don't support them. Right. Some of those commands are exposed by https://pypi.python.org/pypi/pgspecial, used for

[sqlalchemy] Re: Using psql commands (i.e. \d) through sqlalchemy.core

2016-10-31 Thread Jonathan Vanasco
I believe the answer is no. IIRC, those psql commands are shortcuts within psql... and the various drivers (psycopg2, etc) don't support them. A workaround is to use the underlying query against postgresql's tables