From ea35443bbc7c753b17836cad29a53b813408ded8 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Mon, 20 Jul 2026 18:31:49 +0000 Subject: [PATCH 1/3] Update Turso to v0.7.0 Bump the pinned Turso CLI from v0.1.2-pre.4 to the latest stable release. The v0.7.0 installer still creates ~/.turso/env on a fresh machine, so the existing source lines keep working. Verified locally: install, check, DDL from create.sql, and a CSV .import round trip all succeed on 0.7.0. Co-Authored-By: Claude Fable 5 --- turso/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/turso/install b/turso/install index f55c9a720c..5f445b5906 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.1.2-pre.4/turso_cli-installer.sh | sh + https://github.com/tursodatabase/turso/releases/download/v0.7.0/turso_cli-installer.sh | sh fi export HOME=${HOME:=~} From 29ff15d73dfb261b85b7ae8f17a267a8905e876d Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Fri, 2 Oct 2026 23:32:12 +0200 Subject: [PATCH 2/3] Update Turso to v0.8.1 Co-Authored-By: Claude Opus 5.5 (1M context) --- turso/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/turso/install b/turso/install index 5f445b5906..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.7.0/turso_cli-installer.sh | sh + https://github.com/tursodatabase/turso/releases/download/v0.8.1/turso_cli-installer.sh | sh fi export HOME=${HOME:=~} From 27c2a461d83e7c732d45ea003c37bfa198904c79 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Sat, 3 Oct 2026 19:16:52 +0200 Subject: [PATCH 3/3] turso: don't fail the load when the import prints nothing; add template.json tursodb 0.8 prints no progress lines during .import, so grep -v exited 1 and set -e aborted ./load silently right after the download. Co-Authored-By: Claude Opus 5.5 (1M context) --- turso/load | 6 ++++-- turso/template.json | 12 ++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 turso/template.json 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" + ] +}