mirror of
https://github.com/allankoechke/turso.git
synced 2026-11-30 11:12:58 +00:00
Reorganize serverless SDKs under a top-level serverless/ directory to support multi-language serverless drivers alongside the existing bindings/ convention.
473 B
473 B
Cloud Encryption Example
This smoll example shows how to connect to an encrypted Turso Cloud database.
Prerequisites
You need a Turso Cloud database with encryption enabled. Refer to the documentation here for instructions.
Running
npm i
export TURSO_DATABASE_URL="libsql://your-db.turso.io"
export TURSO_AUTH_TOKEN="your-auth-token"
export TURSO_REMOTE_ENCRYPTION_KEY="base64-encoded-key"
node index.mjs