From 2553dd343e14beab05d78a1f8541ab1139dde975 Mon Sep 17 00:00:00 2001 From: Avinash Sajjanshetty Date: Thu, 18 Dec 2025 13:11:56 +0530 Subject: [PATCH] Update example to include instructions for Cloud encryption --- example/remote/main.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/example/remote/main.go b/example/remote/main.go index 31f17d3..ef829ce 100644 --- a/example/remote/main.go +++ b/example/remote/main.go @@ -1,3 +1,18 @@ +// Example: Connecting to an encrypted Turso Cloud database +// +// This example shows how to connect to a Turso Cloud database with +// remote encryption using the go-libsql driver. +// +// Documentation of encrypted databases - https://docs.turso.tech/cloud/encryption +// +// Usage: +// +// export TURSO_URL="libsql://your-db.aws-us-east-2.turso.io" +// export TURSO_AUTH_TOKEN="your-token" +// export TURSO_REMOTE_ENCRYPTION_KEY="encryption key in base 64 encoded format" +// go run main.go +// +// The encryption key must be encoded in base64 format. package main import (