2025-03-14 21:59:59 -06:00
|
|
|
# sqlite3
|
|
|
|
|
|
|
|
|
|
> The command-line interface to SQLite 3, which is a self-contained file-based embedded SQL engine.
|
2025-05-08 12:26:01 -06:00
|
|
|
> More information: <https://sqlite.org/cli.html>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Start an interactive shell with a new database:
|
|
|
|
|
|
|
|
|
|
`sqlite3`
|
|
|
|
|
|
|
|
|
|
- Open an interactive shell against an existing database:
|
|
|
|
|
|
|
|
|
|
`sqlite3 {{path/to/database.sqlite3}}`
|
|
|
|
|
|
|
|
|
|
- Execute an SQL statement against a database and then exit:
|
|
|
|
|
|
|
|
|
|
`sqlite3 {{path/to/database.sqlite3}} '{{SELECT * FROM some_table;}}'`
|