Back to Turso

Cloud Encryption Example

packages/turso-serverless/examples/cloud-encryption/README.md

0.5.3473 B
Original Source

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

bash
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