Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion turso/install
Original file line number Diff line number Diff line change
Expand Up @@ -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:=~}
Expand Down
6 changes: 4 additions & 2 deletions turso/load
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
set -e
set -eo pipefail

export HOME=${HOME:=~}
# shellcheck disable=SC1091
Expand All @@ -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
Expand Down
12 changes: 12 additions & 0 deletions turso/template.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"system": "Turso",
"proprietary": "no",
"hardware": "cpu",
"tuned": "no",
"tags": [
"Rust",
"embedded",
"row-oriented",
"SQLite compatible"
]
}
Loading