You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`encryption_key`: Used for local file encryption (local and embedded replica modes)
337
+
-`remote_encryption_key`: Used for Turso encrypted databases (remote and embedded replica modes)
338
+
- Remote encryption keys should be base64-encoded as per Turso's encryption requirements
339
+
- See [Turso Encryption Documentation](https://docs.turso.tech/cloud/encryption) for more details
340
+
323
341
### Embedded Replica Synchronisation
324
342
325
343
When using embedded replica mode (`sync: true`), the library automatically handles synchronisation between your local database and Turso cloud. However, you can also trigger manual sync when needed.
@@ -404,7 +422,8 @@ This is useful for offline-first applications or when you want explicit control
404
422
|`uri`| string | Remote LibSQL server URI (e.g., `libsql://...` or `wss://...`) |
405
423
|`auth_token`| string | Authentication token for remote connections |
406
424
|`sync`| boolean | Enable automatic synchronisation for embedded replicas |
407
-
|`encryption_key`| string | Encryption key (32+ characters) for local database |
425
+
|`encryption_key`| string | Encryption key (32+ characters) for local database file encryption (AES-256-CBC) |
0 commit comments