Closed shueybubbles closed 3 years ago
I would not suggest, nor advise on using xo/usql/rline
in your own project, as its mostly a wrapper around the readline package that usql
uses.
Prompts get disabled when not in interactive mode in usql
, which is the same behavior (as far as I'm aware) of psql
having. usql
is designed to behave/look/feel the same as psql
and not as SQL Server's sqlcmd.exe
.
xo/usql/rline
looks like a good basis for my own app that has both interactive and non-interactive modes but it seems there's no way to give it separate output pipes for prompts and non-prompts, and prompts just seem to do nothing when the output file name is non-empty.One result is that
ussql
itself doesn't show any prompts in the console when using-o
, which was unexpected behavior to me. I was expecting behavior likesqlcmd
Sample console output from sqlcmd: