mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-27 20:34:12 +02:00
Added --csv example to README
This commit is contained in:
parent
67cce7c861
commit
427dace184
1 changed files with 5 additions and 1 deletions
|
|
@ -49,11 +49,15 @@ Now you can do things with the CLI utility like this:
|
||||||
1 4 Cleo
|
1 4 Cleo
|
||||||
2 2 Pancakes
|
2 2 Pancakes
|
||||||
|
|
||||||
You can even import data into a new database table like this:
|
You can import JSON data into a new database table like this:
|
||||||
|
|
||||||
$ curl https://api.github.com/repos/simonw/sqlite-utils/releases \
|
$ curl https://api.github.com/repos/simonw/sqlite-utils/releases \
|
||||||
| sqlite-utils insert releases.db releases - --pk id
|
| sqlite-utils insert releases.db releases - --pk id
|
||||||
|
|
||||||
|
Or for data in a CSV file:
|
||||||
|
|
||||||
|
$ sqlite-utils insert dogs.db dogs docs.csv --csv
|
||||||
|
|
||||||
See the [full CLI documentation](https://sqlite-utils.datasette.io/en/stable/cli.html) for comprehensive coverage of many more commands.
|
See the [full CLI documentation](https://sqlite-utils.datasette.io/en/stable/cli.html) for comprehensive coverage of many more commands.
|
||||||
|
|
||||||
## Using as a library
|
## Using as a library
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue