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.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:=~}
Expand Down
8 changes: 7 additions & 1 deletion turso/load
Original file line number Diff line number Diff line change
Expand Up @@ -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