Open dylanpyle opened 9 years ago
You're right. That is not supported.
The intent of pgcli is for interactive usage. So I didn't concentrate on reading from an input stream.
In all honesty this is a low priority at the moment in terms of catching up with psql features.
In that case, can you print the message that it is not supported instead of throwing confusing traceback?
@leonmax I'm currently working on it. Sorry for the delay, I'll do my best to get it ready ASAP.
Check out this comment - you can pipe some external file with some caveats.
https://github.com/dbcli/pgcli/issues/990#issuecomment-950209716
@leonmax I'm currently working on it. Sorry for the delay, I'll do my best to get it ready ASAP.
@leonmax some news about this implementation?
@leonmax I'm currently working on it. Sorry for the delay, I'll do my best to get it ready ASAP.
@leonmax some news about this implementation?
@stephane-klein, @fpietka mentioned me stating that he was working on it. I'm not aware of his progress 😜
That comment from @fpietka was in 2018, I don't think it's very relevant now. :)
We all do our best to contribute, but life gets in the way. Also, as Amjith pointed out above, non-interactive use cases are much less of a priority. psql
is your best bet there.
If you feel like submitting a PR to help, it would be very welcome.
This works fine in the default
psql
client, but notpgcli
:Version 0.18.0
This might not be a bug, but would be a great feature IMO given that compatibility with the standard client seems to be a goal.