bareos: master 1011da19

Author Committer Branch Timestamp Parent
joergs mvwieringen master 2015-06-30 10:51 master 8dc1c57f Pending
Changeset Command .sql: enable JSON output

before, the .sql command was only intended for api mode 1
and printed the fields separated by tabs.

Each row was sent as seperate packet, but had no more line
separations, making the output unusable in interactive mode (api=0).

The new implementation reuses the normal sql table output for all api
modes except 1 (the output there is used by bat).

It formats the table nicely and usable in the different api modes.
mod - src/dird/ua_dotcmds.c Diff File