# Database files, csv, intermediates
*.db
*.sqlite
+*.sqlite3
*.csv
tmp/
./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
--- /dev/null
+automatically publish GH release if version is incremented
cd "$(dirname "$0")"
cd ../sql
-sqleton -o ../docs/usda.svg usda.sqlite
+sqleton -o ../docs/usda.svg usda.sqlite3
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(28.8 1450.8)">
<title>undefined</title>
<polygon fill="white" stroke="transparent" points="-28.8,49.8 -28.8,-1450.8 986.8,-1450.8 986.8,49.8 -28.8,49.8"/>
-<text text-anchor="start" x="441.5" y="12.6" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">usda.sqlite</text>
+<text text-anchor="start" x="437.5" y="12.6" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">usda.sqlite3</text>
<!-- version -->
<g id="node1" class="node">
<title>version</title>
# 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
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)