Files
Pekka Enberg 4e144df120 Move @tursodatabase/serverless to serverless/javascript
Reorganize serverless SDKs under a top-level serverless/ directory
to support multi-language serverless drivers alongside the existing
bindings/ convention.
2026-03-26 08:15:10 +02:00

17 lines
473 B
Markdown

# 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](https://docs.turso.tech/cloud/encryption).
## 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
```