extract psql meta-commands into library? - Mailing list pgsql-general

From Catherine Devlin
Subject extract psql meta-commands into library?
Date
Msg-id CAGCtaoNj4aw0f9zHesOrVDEh5ZJN66by9QqLL4RB01bdMaU81w@mail.gmail.com
Whole thread Raw
Responses Re: extract psql meta-commands into library?  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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


pgsql-general by date:

Previous
From: hubert depesz lubaczewski
Date:
Subject: 9.1.11 - many backends in "semtimedop" syscall
Next
From: Tom Lane
Date:
Subject: Re: 9.1.11 - many backends in "semtimedop" syscall