News for hackers. Stuff that matters.
Re:Usql – Universal command-line interface for SQL databases by int0x80 on Thursday June 14, 2018 @09:35AM (#17311542)
Looks good. I miss beeing able to pipe sql to the client via stdin. At least I didnt see it in the README.
Re:Usql – Universal command-line interface for SQL databases by projektfu on Thursday June 14, 2018 @05:09PM (#17315380)
I didn't run it, but in the code it appears to take commands from stdin, but if they're coming from a TTY (interactive), they are processed through readline. The "-f -" trick didn't seem to be supported by the code.
Re:Usql – Universal command-line interface for SQL databases by kenshaw on Friday June 15, 2018 @05:50AM (#17318599)
Yes, it reads from STDIN. If it doesn't, it's a bug, and please file an issue on GitHub.
Re:Usql – Universal command-line interface for SQL databases by int0x80 on Friday June 15, 2018 @05:09PM (#17323575)
Thanks! Didnt try it, just couldnt find it in the examples.