[append] Off for a specific query, I mean. I think I'd prefer to leave it on by default.
[append] Off for a specific query, I mean. I think I'd prefer to leave it on by default.
We use `less -XRF` by default. You can change this to whatever you want via the config file `~/.config/litecli/config`. Just uncomment the line that says `# pager = "less -SXRF".
Adding the `-S` to the list of options will make it much better. It will not wrap long lines but instead it will enable horizontal scrolling (using arrow keys). Check for pager section on this page for some details: https://litecli.com/output/
The other option is to set the `auto_vertical_output = True` in the config file.
This option will cause results to be displayed vertically if they are too wide for the current window.
It does work, but only sort of. Just did:
$ sqlite3 -init select_contact.sql test_sqlite.db
-- Loading resources from select_contact.sql
Alan|Acre|50|Male|100.0
Betty|Smith|20|Female|200.0
Charlie|Copenhagen|30|Male|400.0
Dorothy|Delhi|80|Female|400.0
Edwin|Bombay|40|Male|100.0
Edwin|Pune|55|Female|110.0
SQLite version 3.8.11 2015-07-27 13:49:41
Enter ".help" for usage hints.
sqlite>
where select_contact.sql contains "select * from contact;"
So it can run a script given as a parameter.
But it leaves you in the CLI instead of cleanly exiting. And prints those extra headers, etc. Not very Unix-philosophy-adherent, it seems.
Edit: formatting