Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions example/remote/main.go
Original file line number Diff line number Diff line change
@@ -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 (
Expand Down
Loading