Pekka Enberg
1f79fbc22c
Merge 'Partial sync basic' from Nikita Sivukhin
...
This PR implements basic support for partial sync. Right now the scope
is limited to only `:memory:` IO and later will be properly expanded to
the file based IO later.
The main addition is `PartialDatabaseStorage` which make request to the
remote server for missing local pages on demand.
The main change is that now tursodatabase JS bindings accept optional
"external" IO event loop which in case of sync will drive `ProtocolIo`
internal work associated with remote page fetching tasks.
Closes #3931
2025-11-13 16:38:04 +02:00
Nikita Sivukhin
72089d2682
adjust compilation
2025-11-12 16:30:50 +04:00
Nikita Sivukhin
41d7d5af49
adjust tests
2025-11-12 16:15:54 +04:00
Nikita Sivukhin
2d517f9fd7
use sparse io fir partial sync in case when file is used
2025-11-12 14:20:26 +04:00
Nikita Sivukhin
d519945098
make ArenaBuffer unsafe Send + Sync
2025-11-12 10:54:40 +04:00
Nikita Sivukhin
02275a6fa1
fix js bindings
2025-11-12 10:53:25 +04:00
Nikita Sivukhin
98db727a99
integrate extra io stepping logic to the JS bindings
2025-11-12 10:53:25 +04:00
Nikita Sivukhin
d42b5c7bcc
wip
2025-11-12 10:53:25 +04:00
pedrocarlo
1db13889e3
Change Value::Text to use a Cow<'static, str> instead of Vec<u8>
2025-11-11 16:11:46 -03:00
Pekka Enberg
c3d2ea8429
Turso 0.4.0-pre.1
2025-11-06 08:33:13 +02:00
Pekka Enberg
331ba14e7c
Turso 0.3.0
2025-10-30 18:16:12 +02:00
Pekka Enberg
c91b66ba38
Turso 0.3.0-pre.7
2025-10-30 18:15:14 +02:00
Pekka Enberg
50ad2f801a
Turso 0.3.0-pre.6
2025-10-29 17:54:10 +02:00
Nikita Sivukhin
9e04687108
add one more test
2025-10-29 16:24:05 +04:00
Nikita Sivukhin
e5b11a3278
uncomment tests
2025-10-29 16:24:05 +04:00
Nikita Sivukhin
e27b0d5d6b
add more tests
2025-10-29 16:24:05 +04:00
Nikita Sivukhin
b01cec2ba4
wip
2025-10-29 16:24:05 +04:00
Pekka Enberg
067c4f624b
Turso 0.3.0-pre.5
2025-10-28 14:49:34 +02:00
Pekka Enberg
b984ddf98f
Turso 0.3.0-pre.4
2025-10-22 13:42:52 +03:00
Pekka Enberg
3020966fbd
Turso 0.3.0-pre.3
2025-10-17 11:08:36 +03:00
Pekka Enberg
e9c0fdcb4b
Turso 0.3.0-pre.2
2025-10-16 11:31:30 +03:00
Pekka Enberg
fb1042187b
Turso 0.3.0-pre.1
2025-10-10 19:25:58 +03:00
Nikita Sivukhin
17c99de34f
accept libsql:// urls generated by the platform
2025-10-03 14:19:36 +04:00
Pekka Enberg
7905841990
Turso 0.2.0
2025-10-03 12:20:42 +03:00
Pekka Enberg
3b1d2535de
Turso 0.2.0-pre.15
2025-10-03 11:29:43 +03:00
Nikita Sivukhin
9a82a9509f
fix sync-engine bug when auth token is provided as dynamic function
2025-10-03 10:50:54 +04:00
Pekka Enberg
78e3311c3b
Merge 'Sync engine defered sync' from Nikita Sivukhin
...
This PR makes sync client completely autonomous as now it can defer
initial sync.
This can open possibility to asynchronously create DB in the Turso Cloud
while giving user ability to interact with local DB straight away.
Closes #3531
2025-10-02 17:25:11 +03:00
Nikita Sivukhin
649fddedf6
remove unnecessary clone
2025-10-02 17:31:30 +04:00
Nikita Sivukhin
cff23c80cb
fix wasm client
2025-10-02 16:56:54 +04:00
Nikita Sivukhin
39bf35abe9
adjust native sync client
2025-10-02 16:51:08 +04:00
Nikita Sivukhin
863e3fe94e
make url parameter to accept either string or function
2025-10-02 16:17:36 +04:00
Nikita Sivukhin
64389447e3
support defered sync in the bindings core
2025-10-02 16:17:36 +04:00
Pekka Enberg
a44f965a45
Turso 0.2.0-pre.14
2025-10-02 14:29:22 +03:00
Pekka Enberg
4666544ea6
Turso 0.2.0-pre.13
2025-10-01 16:40:53 +03:00
Pekka Enberg
4d77786b53
Merge 'Beta' from Pekka Enberg
...
Reviewed-by: Glauber Costa <glommer@gmail.com >
Closes #3484
2025-10-01 15:23:28 +03:00
Nikita Sivukhin
109b3c0609
fix sync package
2025-10-01 11:08:42 +04:00
Pekka Enberg
16540724aa
Beta
2025-10-01 07:18:25 +03:00
Nikita Sivukhin
18e8c037e9
fix tests
2025-09-30 20:45:00 +04:00
Pekka Enberg
b0d27c90aa
Turso 0.2.0-pre.11
2025-09-29 18:11:59 +03:00
Pekka Enberg
57c279e2b0
javascript: Rename "browser" packages to "wasm"
2025-09-29 17:02:34 +03:00
Pekka Enberg
2f38d2ef04
Turso 0.2.0-pre.10
2025-09-27 16:52:35 +03:00
Preston Thorpe
ddbedecace
Merge 'fix encryption config in the sync-client' from Nikita Sivukhin
...
Reviewed-by: Jussi Saurio <jussi.saurio@gmail.com >
Closes #3379
2025-09-26 19:01:27 -04:00
Pekka Enberg
222ab125c1
Turso 0.2.0-pre.9
2025-09-26 19:00:14 +03:00
Nikita Sivukhin
fe4bfb7c88
fix encryption config in the sync-client
2025-09-26 19:29:37 +04:00
Pekka Enberg
f8130d051f
Merge 'Fix JavaScript bindings' from Nikita Sivukhin
...
This PR makes all JS db packages to have uniform interface: `new
Database(...)` constructor with explicit `connect()` and `close()`
methods.
Also, this PR adds docstrings in the code and properly support few
better-sqlite options (readonly, fileMustExist, timeout)
Closes #3334
2025-09-25 17:24:03 +03:00
Nikita Sivukhin
3c0b04b530
fix clippy
2025-09-25 12:08:10 +04:00
Nikita Sivukhin
ddfa77997d
adjust sync package napi-rs code
2025-09-25 10:54:50 +04:00
Nikita Sivukhin
d08bcb6a17
adjust sync package
2025-09-25 10:52:05 +04:00
Nikita Sivukhin
afbfa98a8d
adjust sync native package
2025-09-24 18:43:50 +04:00
Pekka Enberg
f72600431b
Turso 0.2.0-pre.8
2025-09-24 09:08:34 +03:00