forked from simonw/datasette-lite
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6fe45eb
commit 94aa3b1
Showing
4 changed files
with
41 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"image": "mcr.microsoft.com/devcontainers/universal:2", | ||
"features": { | ||
}, | ||
"postCreateCommand": "pip3 install datasette datasette-codespaces sqlite-utils", | ||
"postAttachCommand": { | ||
"server": "datasette data.db --create", | ||
"import": "bash build.sh" | ||
}, | ||
"forwardPorts": [8001], | ||
"portsAttributes": { | ||
"8001": { | ||
"label": "Datasette", | ||
"onAutoForward": "notify" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
rm -f data.db | ||
sqlite-utils insert data.db doeblin-werke data/doeblin-werke.json --alter --pk=id | ||
sqlite-utils enable-fts data.db doeblin-werke display | ||
sqlite-utils insert data.db doeblin-bibliothek-titel data/doeblin-bibliothek-titel.json --alter --pk=id | ||
sqlite-utils enable-fts data.db doeblin-bibliothek-titel display | ||
sqlite-utils insert data.db doeblin-bibliothek-exemplare data/doeblin-bibliothek-exemplare.json --alter --pk=id | ||
sqlite-utils enable-fts data.db doeblin-bibliothek-exemplare display | ||
sqlite-utils insert data.db doeblin-bibliographie data/doeblin-bibliographie.json --alter --pk=id | ||
sqlite-utils enable-fts data.db doeblin-bibliographie display | ||
sqlite-utils optimize data.db |