extract psql meta-commands into library?

From: Catherine Devlin <catherine(dot)devlin(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: extract psql meta-commands into library?
Date: 2014-03-06 16:54:24
Message-ID: CAGCtaoNj4aw0f9zHesOrVDEh5ZJN66by9QqLL4RB01bdMaU81w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I'd like to provide access to psql's "backslash" meta-commands for
IPython's %sql magic, as well as some other non-psql tools. When I
asked about standalone implementations of the meta-commands, Craig
Ringer suggested that extracting them from psql into a libpsql library
(which psql would then use) would make that easy for all matter of
external uses.

Does this sound doable / of interest?

(Originally asked at
http://stackoverflow.com/questions/22211916/standalone-psql-meta-command-implementation)

ipython-sql: https://pypi.python.org/pypi/ipython-sql/0.3.1

Thanks!
--
- Catherine
http://catherinedevlin.blogspot.com

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2014-03-06 16:56:06 Re: 9.1.11 - many backends in "semtimedop" syscall
Previous Message hubert depesz lubaczewski 2014-03-06 16:19:31 9.1.11 - many backends in "semtimedop" syscall