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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f17107643c1060a1ed9f07307e780363f00197430168196cd0df08bf21ad494e
4
- data.tar.gz: edc64897b8050f9bd2af1427cec29f8aed148461e4309180ac4647f2ac6ed35e
3
+ metadata.gz: f35de8fc3b33e04d7d170ee1032ee2d57af85642fcec1b120d591700baa9532c
4
+ data.tar.gz: 67bbe8aaa50468fb2cf0ef2c44e208fd414c4dff3694e9ae2a8dc8394ae671b7
5
5
  SHA512:
6
- metadata.gz: df0e9d7fa56baa131741c48a6e2e035ba6c5d34b97f4902efb1c5e9dda028f724ca26506889cec6e991bd2ae19e0924a1501718f753b15f4c53b4cda6f57c5ab
7
- data.tar.gz: f8509436bbc8df56a34fab0cbaad3bf18e0be2e772ed99dcc728b8d8f62c2e0dc5fd80a15479c3ba42a0e108a9b78278b2fa9837d75459ceee72f79dd34e679d
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 —
@@ -9,4 +9,4 @@ crate-type = ["cdylib"]
9
9
 
10
10
  [dependencies]
11
11
  magnus = "0.8"
12
- beagle_turso_core = "0.1.0"
12
+ beagle_turso_core = "0.1.3"
@@ -1,5 +1,5 @@
1
1
  module Beagle
2
2
  module Turso
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
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.2
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-08 00:00:00.000000000 Z
11
+ date: 2026-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rb_sys