tursodatabase / libsql-shell-go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`.mode` command has insuffient help

luisfvieirasilva opened this issue · comments

By @CodingDoug here


I discovered .mode by running .help:

  .dump       Render database content as SQL
  .help       List of all available commands.
  .indexes    List indexes in a table or database
  .mode       Set output mode
  .quit       Exit this program
  .read       Execute commands from a file
  .schema     Show table schemas.
  .tables     List all existing tables in the database.

The problem is that it's entirely unclear how to use it.

→  .mode
Error: accepts 1 arg(s), received 0

There should be some way to get a list of modes and what they do.

The sqlite CLI has documentation (see section 5 "Changing Output Formats") about its .mode command, but it doesn't look at all the same. None of their modes list, quote, or line are accepted.

→  .mode line
Error: unsupported mode