I'm one of the Jython committers. We have our own very limited db
shell, dbexts.py (
http://fisheye3.atlassian.com/browse/jython/trunk/
jython/Lib/dbexts.py?r=HEAD), which sort of works but has not been
maintained for 9 years. It's also not really the sort of thing we want
to be doing in Jython core.
In looking around at various SQL shells for Python, it would seem that
sqlpython could be a great fit for Jython. Much of our recent focus on
Jython dev up until now has been on server apps, but with our
forthcoming 2.5.2 release of finally adding tab completion to the out-
of-the-box experience with Jython. This will work through the standard
readline/rlcompleter modules (but going against JLine instead of GNU
Readline).
I would see some obvious advantages for sqlpython support - you could
get "free" support through JDBC of ~200 databases out there, including
ODBC. Our zxJDBC implementation of the Python DB API 2 helps there,
and dbexts could be readily recycled by sqlpython/Gerald to add
support for schema metadata, etc. (It looks like decent code, with
some unit testing.)
Any thoughts?
- Jim