There is no documentation that I can find beyond the oneliner provided by the command-line utility. It says:
-batch force batch I/O
So what's going on here if I pass it a query or multiple queries?
When the sqlite3
shell is run interactively, it shows a startup message and the sqlite>
prompt, and (on Windows) tries to converts the input to UTF-8.
If the automatic console detection does not work as intended, it can be overridden with -batch
or -interactive
.
stdin_is_interactive
to false. The stdin variable has the comment: "Threat stdin as an interactive input if the following variable is true. Otherwise, assume stdin is connected to a file or pipe."