From: Kyle R. B. <mo...@vo...> - 2003-08-05 03:11:08
|
I've been using mdb-sql and since you've already got basic readline support, I went and added in completion support to the shell. I looked at what mdb-tables was doing to list the tables in the database catalog and implemented similar functionality so table names are included in the completion list. The way the completion is implemented, it will only return candidates if you've typed at least the first letter (or more) of one of the words. If the sql parsing strategy were changed so that partial parses could be recognized, then we could start looking at state-based completion - the idea being if you type: 'select ' and then hit tab, only table names should be considered (and at that point a double tab could just return the list of all of the tables). A patch should be attached. Best regards, Kyle -- ------------------------------------------------------------------------------ Wisdom and Compassion are inseparable. -- Christmas Humphreys mo...@vo... http://www.voicenet.com/~mortis ------------------------------------------------------------------------------ |