diff --git a/turso/install b/turso/install index f55c9a720..85f1f1f38 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.6.0-pre.27/turso_cli-installer.sh | sh fi export HOME=${HOME:=~} diff --git a/turso/load b/turso/load index c7c3fb85a..e9e073dcf 100755 --- a/turso/load +++ b/turso/load @@ -9,7 +9,13 @@ source "$HOME/.turso/env" rm -f mydb tursodb mydb < create.sql -tursodb mydb '.import --csv hits.csv hits' +tursodb mydb <<'EOF' 2>&1 | grep -v '^Inserting batch of' +PRAGMA synchronous = OFF; +BEGIN; +.import --csv hits.csv hits +COMMIT; +EOF +tursodb mydb 'PRAGMA wal_checkpoint(TRUNCATE);' > /dev/null rm -f hits.csv sync