Skip to content

Commit

Permalink
sqlite json
Browse files Browse the repository at this point in the history
  • Loading branch information
pew committed Nov 19, 2023
1 parent aa9ea99 commit 98e09e8
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions man/sqlite.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# sqlite

---
title:
date created: Thursday, November 17th 2022, 4:57:39 am
date modified: Sunday, November 19th 2023, 6:26:22 pm
tags:
- sqlite3
date created: 2022-11-16
- sqlite
---

# sqlite

## show headers

```
Expand All @@ -26,3 +26,9 @@ sqlite3 db.sqlite
.mode csv
.import filename.csv table
```

## export sqlite as json

```
sqlite3 sqlite.db '.mode json' '.once data.json' "select * from images where user_id=1"
```

0 comments on commit 98e09e8

Please sign in to comment.