diff --git a/turso/install b/turso/install index 85f1f1f38f..8763b58992 100755 --- a/turso/install +++ b/turso/install @@ -5,7 +5,7 @@ if ! command -v tursodb >/dev/null 2>&1; then sudo apt-get update -y sudo apt-get install -y curl curl --proto '=https' --tlsv1.2 -LsSf \ - https://github.com/tursodatabase/turso/releases/download/v0.6.0-pre.27/turso_cli-installer.sh | sh + https://github.com/tursodatabase/turso/releases/download/v0.8.1/turso_cli-installer.sh | sh fi export HOME=${HOME:=~} diff --git a/turso/load b/turso/load index 91b24b209f..009c9d78c9 100755 --- a/turso/load +++ b/turso/load @@ -1,5 +1,5 @@ #!/bin/bash -set -e +set -eo pipefail export HOME=${HOME:=~} # shellcheck disable=SC1091 @@ -17,7 +17,9 @@ export RUST_BACKTRACE=1 rm -f mydb tursodb mydb < create.sql -tursodb mydb <<'EOF' 2>&1 | grep -v '^Inserting batch of' +# Newer tursodb prints nothing during the import, and grep exits 1 when no +# lines pass the filter; pipefail still catches a tursodb failure. +tursodb mydb <<'EOF' 2>&1 | { grep -v '^Inserting batch of' || true; } PRAGMA synchronous = OFF; BEGIN; .import --csv hits.csv hits diff --git a/turso/template.json b/turso/template.json new file mode 100644 index 0000000000..2f1c0a43b2 --- /dev/null +++ b/turso/template.json @@ -0,0 +1,12 @@ +{ + "system": "Turso", + "proprietary": "no", + "hardware": "cpu", + "tuned": "no", + "tags": [ + "Rust", + "embedded", + "row-oriented", + "SQLite compatible" + ] +}