Skip to content

Commit

Permalink
update name to .sqlite3
Browse files Browse the repository at this point in the history
  • Loading branch information
gamesguru committed Mar 2, 2024
1 parent 223a5b9 commit 4644288
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 9 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# Database files, csv, intermediates
*.db
*.sqlite
*.sqlite3
*.csv
tmp/

Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Building the database
./build.sh X.X.X # e.g. 0.0.8
5. Verify the tables (again inside the SQL shell :code:`sqlite3 usda.sqlite`),
5. Verify the tables (again inside the SQL shell :code:`sqlite3 usda.sqlite3`),

.. code-block:: sql
Expand Down
1 change: 1 addition & 0 deletions TODO
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
automatically publish GH release if version is incremented
2 changes: 1 addition & 1 deletion docs/sqleton.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
cd "$(dirname "$0")"
cd ../sql

sqleton -o ../docs/usda.svg usda.sqlite
sqleton -o ../docs/usda.svg usda.sqlite3
2 changes: 1 addition & 1 deletion docs/usda.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 6 additions & 6 deletions sql/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@ cd "$(dirname "$0")"
# lives in sql/

# Remove existing
rm -f usda.sqlite
rm -f usda.sqlite3

printf "\\n\\x1b[32m%s\x1b[0m\n\n" "==> Pack usda.sqlite v$VERSION"
printf "\\n\\x1b[32m%s\x1b[0m\n\n" "==> Pack usda.sqlite3 v$VERSION"

# Create sqlite db
sqlite3 usda.sqlite ".read init.sql"
# Create sqlite3 DB
sqlite3 usda.sqlite3 ".read init.sql"

# Compress xzip
tar cJf usda.sqlite-$VERSION.tar.xz usda.sqlite
tar cJf usda.sqlite3-$VERSION.tar.xz usda.sqlite3

# Clean up
# rm ???
# overwrite existing?
mkdir -p dist
mv usda.sqlite-$VERSION.tar.xz dist
mv usda.sqlite3-$VERSION.tar.xz dist
1 change: 1 addition & 0 deletions sql/version.csv
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ id,version,created,notes
8,0.0.7,Wed 30 Sep 2020 02:03:41 AM EDT,fixing (some) missing FK constraints
9,0.0.8,Sat Mar 6 11:33:05 2021 -0500,"speed up nutrients avg, with overview"
10,0.0.9,Sat Feb 24 12:06:24 PM EST 2024,"add Vit E value, std_dev on nutrients_overview"
11,0.0.10,Sat Mar 2 11:13:12 AM EST 2024,update DB version to 0.0.10 (sqlite3 extension)

0 comments on commit 4644288

Please sign in to comment.