You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ Tools for dumping/loading a SQLite database to diffable directory structure
10
10
11
11
pip install sqlite-diffable
12
12
13
-
## Usage
13
+
## Dumping a database
14
14
15
15
Given a SQLite database called `fixtures.db` containing a table `facetable`, the following will dump out that table to the `out/` directory:
16
16
@@ -20,6 +20,12 @@ To dump out every table in that database, use `--all`:
20
20
21
21
sqlite-diffable dump fixtures.db out/ --all
22
22
23
+
## Loading a database
24
+
25
+
To load a previously dumped database, run the following:
26
+
27
+
sqlite-diffable load restored.db out/
28
+
23
29
## Demo
24
30
25
31
The repository at [simonw/simonwillisonblog-backup](https://github.com/simonw/simonwillisonblog-backup) contains a backup of the database on my blog, https://simonwillison.net/ - created using this tool.
0 commit comments