examples/go/README.md
This directory contains example applications demonstrating the Turso Go SDK.
cargo build -p turso_sync_sdk_kit --release
Demonstrates local database encryption using the aegis256 cipher.
# Set the library path and run
DYLD_LIBRARY_PATH=../../target/release go run encryption.go
On Linux, use LD_LIBRARY_PATH instead:
LD_LIBRARY_PATH=../../target/release go run encryption.go
Demonstrates syncing a local database with a Turso Cloud remote, with
background workers that periodically Push()/Pull() and Checkpoint()
(offset by ~30s since those operations cannot run concurrently).
export TURSO_DATABASE_URL="libsql://your-db.turso.io"
export TURSO_AUTH_TOKEN="..."
cd sync
go run sync.go # Linux
See the Go bindings documentation for the full API reference.