mirror of
https://github.com/allankoechke/turso.git
synced 2026-12-01 01:27:37 +00:00
Reorganize serverless SDKs under a top-level serverless/ directory to support multi-language serverless drivers alongside the existing bindings/ convention.
17 lines
473 B
Markdown
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
|
|
``` |