Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does SQLite3 -batch CLI option do?

Tags:

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?

like image 833
wurde Avatar asked Apr 21 '16 04:04

wurde


People also ask

What is sqlite3 command?

The SQLite project provides a simple command-line program named sqlite3 (or sqlite3.exe on Windows) that allows the user to manually enter and execute SQL statements against an SQLite database or against a ZIP archive.

How do I run a SQLite client from command line?

If you are using Linux or a Mac, open a terminal window instead a command prompt. Open a command prompt (cmd.exe) and 'cd' to the folder location of the SQL_SAFI. sqlite database file. run the command 'sqlite3' This should open the SQLite shell and present a screen similar to that below.

What is difference between SQLite and sqlite3?

The wiki tag description for both tags is the same: SQLite is a software library that implements a self-contained, serverless, zero-configuration, transactional SQL database engine. The sqlite3 has no synonyms but sqlite has sqlitedatabase as a solitary synonym.

How do I get out of SQLite command line?

You can terminate the sqlite3 program by typing your systems End-Of-File character (usually a Control-D). Use the interrupt character (usually a Control-C) to stop a long-running SQL statement.


1 Answers

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.

like image 88
CL. Avatar answered Nov 15 '22 06:11

CL.