We are currently working on automated execution of Rel queries.
In the graphical interface of Rel, it is possible to export the results of a query as a CSV file.
Does the RelDBMS command line tool support CSV as well?
Export CSV from command line
Re: Export CSV from command line
Not directly, no. You could create a script named, say, S_TO_CSV.rel with the following contents:
Code: Select all
FOR S ORDER(ASC SNAME);
WRITELN S# || "," || SNAME || "," || STATUS || "," || CITY;
END FOR;
Code: Select all
./RelDBMS < S_TO_CSV.rel > output.csv
It sounds like something that would be useful, so I'll think about how this could be better automated.
Re: Export CSV from command line
I think this solution will work for our purpose.
Thank you for your quick reply!
Thank you for your quick reply!
Re: Export CSV from command line
In the latest 3.012 update, I've provided a command-line flag -- -q -- to silence the various startup and shutdown messages. For example:
Code: Select all
./RelDBMS -q < S_TO_CSV.rel > output.csv