1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-24 12:35:24 +02:00

sqlite-utils: add list tables example (#8120)

This commit is contained in:
Jeff Bailey 2022-06-12 14:34:55 -07:00 committed by GitHub
parent e487a1b01b
commit 5117156d2c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,6 +11,10 @@
`sqlite-utils create-table {{path/to/database.db}} {{table_name}} {{id integer name text height float photo blob --pk id}}`
- List tables:
`sqlite-utils tables {{path/to/database.db}}`
- Upsert a record:
`{{echo '[ {"id": 1, "name": "Linus Torvalds"}, {"id": 2, "name": "Steve Wozniak"}, {"id": 3, "name": "Tony Hoare"} ]'}} | sqlite-utils upsert {{path/to/database.db}} {{table_name}} - {{--pk id}}`