The binary always waits for the STDIN to be closed and than formats all supplied sql:
$ pg_format -
select * from companies;
select * from companies;
Ctrl+D
SELECT
*
FROM
companies;
SELECT
*
FROM
companies;
This restricts the ability to work in streaming mode.
Is it possible to format one SQL statement as long as it finishes (e.g. by ;)?
cat can be used as example as it triggers output on each line break
The binary always waits for the STDIN to be closed and than formats all supplied sql:
This restricts the ability to work in streaming mode.
Is it possible to format one SQL statement as long as it finishes (e.g. by
;)?catcan be used as example as it triggers output on each line break