Skip to content

Commit 43644db

Browse files
authored
Update example to include instructions for Cloud encryption (tursodatabase#84)
2 parents 00da49c + 2553dd3 commit 43644db

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

example/remote/main.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
// Example: Connecting to an encrypted Turso Cloud database
2+
//
3+
// This example shows how to connect to a Turso Cloud database with
4+
// remote encryption using the go-libsql driver.
5+
//
6+
// Documentation of encrypted databases - https://docs.turso.tech/cloud/encryption
7+
//
8+
// Usage:
9+
//
10+
// export TURSO_URL="libsql://your-db.aws-us-east-2.turso.io"
11+
// export TURSO_AUTH_TOKEN="your-token"
12+
// export TURSO_REMOTE_ENCRYPTION_KEY="encryption key in base 64 encoded format"
13+
// go run main.go
14+
//
15+
// The encryption key must be encoded in base64 format.
116
package main
217

318
import (

0 commit comments

Comments
 (0)