Make commands pluggable
See original GitHub issueI’m exploring the possibility to use SQLLine for headless mode in https://github.com/vlsi/mat-calcite-plugin/issues/9
The use-case there is as follows:
UC1) Start the application in command line mode, and use interactive console. In interactive mode, it would be nice to have mat-calcite
-specific commands like !open-dump cool_dump.hprof
.
The thing is !open-dump
command does not make much sense in SQLLine without mat-calcite
.
UC2) “human-friendly” way to configure Calcite connection. For instance: attach two heap dumps as two Calcite schemas. It might be a good idea to attach JDBC connection to yet another schema as well.
It would be nice to be able to “attach/detach” DB connections with simple !add-connection schema_name jdbc:postgresql:...
or something like that.
This is more Calcite-specific than mat-clacite-specific, however it does not look like SQLLine-specific either.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:17 (5 by maintainers)
Top GitHub Comments
I’m not 100% sure but it looks like moving to Jline3 and commands as widgets will allow to achieve it. It is possible to remove existing and add new (on the fly as well). Currently I try to move to Jline3 and could check if widgets help or not by the end of the week in my sandbox
Fixed in 5a6789d, PR #119. Thanks @snuyanzin!