beagle-turso 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +24 -0
- data/ext/beagle_turso/Cargo.toml +1 -1
- data/lib/beagle/turso/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f35de8fc3b33e04d7d170ee1032ee2d57af85642fcec1b120d591700baa9532c
|
|
4
|
+
data.tar.gz: 67bbe8aaa50468fb2cf0ef2c44e208fd414c4dff3694e9ae2a8dc8394ae671b7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ce2cef361285eed71718e587fbbe3a1a3d321e2e45ba269b1274edbbc622d073a0b55274ea2950e89e67eafeaceb70a0f3e469e0bd0bf29b59ac2ffedc205095
|
|
7
|
+
data.tar.gz: edd3d0df3ce5ba628e4ca6923c9df228c9f480d9a05ba4bf879f95a599adeed5d362f38f10b8621ee1d0fa01a0ca07ae1a69e9b85065c0fd089b59e3510706be
|
data/README.md
CHANGED
|
@@ -79,6 +79,30 @@ called; `push` is not called automatically after every write. Until a
|
|
|
79
79
|
`push` succeeds, a write that's durable locally is not yet visible to other
|
|
80
80
|
replicas of the same remote database.
|
|
81
81
|
|
|
82
|
+
## Which Turso database?
|
|
83
|
+
|
|
84
|
+
Point a synced database at a Turso database **dedicated to this engine** —
|
|
85
|
+
ideally a fresh, empty one. On first open of an empty local replica,
|
|
86
|
+
`bootstrap_if_empty` pulls the remote down; against a fresh remote that's a
|
|
87
|
+
clean start, and the engine then manages its own state in that database (it
|
|
88
|
+
creates `turso_cdc`, `__turso_internal_*`, and `turso_sync_last_change_id`
|
|
89
|
+
tables and takes an **exclusive lock** on the local replica file — only one
|
|
90
|
+
OS process may hold a given replica open at a time).
|
|
91
|
+
|
|
92
|
+
Two things to avoid:
|
|
93
|
+
|
|
94
|
+
- **Don't co-host a synced database with the legacy libSQL/Hrana driver.**
|
|
95
|
+
This engine (Turso's newer Rust core) and the classic libSQL client have
|
|
96
|
+
different write/sync models; running both against the same remote database
|
|
97
|
+
at once risks corrupting its sync state. Give this engine its own database.
|
|
98
|
+
- **Migrating an existing, populated libSQL database into the synced engine
|
|
99
|
+
is not validated.** A fresh database is the supported, tested path. If you
|
|
100
|
+
must adopt existing data, treat it as unproven — test push/pull round-trips
|
|
101
|
+
before relying on it.
|
|
102
|
+
|
|
103
|
+
A single remote database, dedicated to this engine and written by one process
|
|
104
|
+
at a time, is the model it's built for.
|
|
105
|
+
|
|
82
106
|
## Credential safety
|
|
83
107
|
|
|
84
108
|
`auth_token` is never included in `inspect` output or in error messages —
|
data/ext/beagle_turso/Cargo.toml
CHANGED
data/lib/beagle/turso/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: beagle-turso
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- BeagleSoftwareUK
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-08-
|
|
11
|
+
date: 2026-08-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rb_sys
|