官网

https://litecli.com

下载

pip install litecli

用法

  1. # litecli --help
  2. Usage: litecli [OPTIONS] [DATABASE]
  3. A SQLite terminal client with auto-completion and syntax highlighting.
  4. Examples:
  5. - litecli lite_database
  6. Options:
  7. -V, --version Output litecli's version.
  8. -D, --database TEXT Database to use.
  9. -R, --prompt TEXT Prompt format (Default: "\d> ").
  10. -l, --logfile FILENAME Log every query and its results to a file.
  11. --liteclirc FILE Location of liteclirc file.
  12. --auto-vertical-output Automatically switch to vertical output mode if the
  13. result is wider than the terminal width.
  14. -t, --table Display batch output in table format.
  15. --csv Display batch output in CSV format.
  16. --warn / --no-warn Warn before running a destructive query.
  17. -e, --execute TEXT Execute command and quit.
  18. --help Show this message and exit.