pedrocarlo
5a7390735d
rename Completion functions
2025-10-06 11:07:06 -03:00
pedrocarlo
e93add6c80
remove dyn DatabaseStorage and replace it with DatabaseFile
2025-10-03 14:14:15 -03:00
Nikita Sivukhin
5ec2d96bc1
support defered sync in the engine
2025-10-02 16:17:36 +04:00
Nikita Sivukhin
7016d9456e
fix test in the database tape
2025-10-02 16:17:36 +04:00
Nikita Sivukhin
91aeadd940
apply create DDL operation with IF NOT EXISTS clause in order to make them idempotent
2025-10-02 15:56:34 +04:00
Pavan-Nambi
49d5141f2d
Merge remote-tracking branch 'origin/main' into cdc_fail_autoincrement
2025-09-24 18:06:02 +05:30
Nikita Sivukhin
57c3d783e1
fix clippy
2025-09-23 18:24:52 +04:00
Nikita Sivukhin
e89dac98f3
use hrana batch stmt with Not(IsAutocommit) condition for push operation
2025-09-23 16:33:40 +04:00
Pavan Nambi
f1ac855441
Merge branch 'main' into cdc_fail_autoincrement
2025-09-22 21:11:26 +05:30
Nikita Sivukhin
1185298670
fix replay generator
2025-09-19 13:19:30 +04:00
Nikita Sivukhin
160119b12e
propagate long poll timeout
2025-09-19 13:19:30 +04:00
Nikita Sivukhin
b0f60a29ba
guard meta with mutex and make all methods to accept shared reference and offload locking of sync engine methods to the external wrapper
2025-09-19 13:19:30 +04:00
Pavan-Nambi
020921f803
Merge remote-tracking branch 'upstream/main' into cdc_fail_autoincrement
2025-09-18 19:27:19 +05:30
rajajisai
e605aff31b
Merge branch 'main' into enc-page-1
2025-09-16 10:06:00 -04:00
rajajisai
89caa868f9
Encryption support for database header page
2025-09-16 10:04:30 -04:00
pedrocarlo
3c91ae206b
move as many dependencies as possible to workspace to avoid multiple versions of the same dependency
2025-09-15 17:19:36 -03:00
Nikita Sivukhin
9b5656d4dc
fix stats method
2025-09-15 11:05:49 +04:00
Nikita Sivukhin
527d0cb1f3
expose revision in the stats method
2025-09-15 10:56:13 +04:00
Pavan-Nambi
f5c52065ed
update sync-engine tests
2025-09-13 07:10:18 +05:30
Nikita Sivukhin
1a4d334e47
fix clippy and remove old action yaml
2025-09-11 00:03:01 +04:00
Nikita Sivukhin
d55026f84f
opfs for sync in one commit!
2025-09-10 22:35:57 +04:00
Pekka Enberg
2131a04b7d
core: Rename IO::run_once() to IO::step()
...
The `run_once()` name is just a historical accident. Furthermore, it now
started to appear elsewhere as well, so let's just call it IO::step() as we
should have from the beginning.
2025-09-10 14:36:02 +03:00
Pekka Enberg
e04938eaf5
Turso 0.1.5
2025-09-10 13:30:18 +03:00
Pekka Enberg
1d34122414
Turso 0.1.5-pre.5
2025-09-10 11:40:21 +03:00
Pekka Enberg
77e5190113
Turso 0.1.5-pre.4
2025-09-09 19:57:31 +03:00
Pekka Enberg
1511ad354b
Turso 0.1.5-pre.3
2025-09-04 11:40:51 +03:00
Pekka Enberg
adca9e4c70
Merge 'introduce package.json for separate *-browser package (both database and sync)' from Nikita Sivukhin
...
This PR introduces separate `package.browser.json` file for `*-browser`
npm packages (`@tursodatabase/sync-browser` and
`@tursodatabase/database-browser`).
The packages are nearly identical and the only change is `package.json`
content (browser package mentions only WASM optional dependency which
shouldn't confuse NPM and force it to download WASM dep package instead
of native one).
Due to that, innocent "hack" is implemented which swap `package.json`
with `package.browser.json` before publish of `browser` package.
Closes #2906
2025-09-04 11:40:34 +03:00
Nikita Sivukhin
62e7384771
build native package for ARM64
2025-09-03 17:57:15 +04:00
Nikita Sivukhin
185392fb9d
skip optional packages publish as they will be published for native package
2025-09-03 17:26:36 +04:00
Nikita Sivukhin
40dd9be201
introduce package.json for separate *-browser package (both database and sync)
2025-09-03 17:15:47 +04:00
Pekka Enberg
12cf4d2e72
core: Make strict schema support experimental
...
It's not tested properly so let's mark it as experimental for now.
Fixes #2775
2025-09-02 16:40:02 +03:00
Pekka Enberg
6c7936a016
Turso 0.1.5-pre.2
2025-09-02 12:45:41 +03:00
Pekka Enberg
d959319b42
Merge 'Use u64 for file offsets in I/O and calculate such offsets in u64' from Preston Thorpe
...
Using `usize` to compute file offsets caps us at ~16GB on 32-bit
systems. For example, with 4 KiB pages we can only address up to 1048576
pages; attempting the next page overflows a 32-bit usize and can wrap
the write offset, corrupting data. Switching our I/O APIs and offset
math to u64 avoids this overflow on 32-bit targets
Closes #2791
2025-09-02 09:06:49 +03:00
Pekka Enberg
3c9dbfb09e
Turso 0.1.5-pre.1
2025-08-30 18:28:38 +03:00
PThorpe92
fb7e6fb280
Guard against all overflow when calculating IO offsets
2025-08-28 09:50:26 -04:00
PThorpe92
0a56d23402
Use u64 for file offsets in IO and calculate such offsets in u64
2025-08-28 09:44:00 -04:00
Nikita Sivukhin
b67f14c785
fix clippy
2025-08-27 15:57:38 +04:00
Nikita Sivukhin
6e124d927e
fix clippy
2025-08-27 15:51:29 +04:00
Nikita Sivukhin
009aa479bf
improve sync engine
2025-08-27 15:30:00 +04:00
Nikita Sivukhin
94ed92ca4e
fix compilation and clippy
2025-08-21 18:28:16 +04:00
Nikita Sivukhin
c34d884b6e
fix tests
2025-08-21 15:24:21 +04:00
Nikita Sivukhin
abe3404953
fix build
2025-08-21 15:15:23 +04:00
Pekka Enberg
494ce41d80
Turso 0.1.4
2025-08-20 10:35:35 +03:00
Pekka Enberg
d456db31db
Turso 0.1.4-pre.11
2025-08-20 09:32:10 +03:00
Pekka Enberg
8d7ab52471
Turso 0.1.4-pre.10
2025-08-19 19:32:47 +03:00
pedrocarlo
ab3b68e360
change completion callbacks to take a Result param + create separate functions to declare a completion errored
2025-08-19 10:48:21 -03:00
pedrocarlo
fadf78fe67
use a dedicated Error enum for Completion Error
2025-08-19 10:48:21 -03:00
Pekka Enberg
69e8f7fa31
Move sync engine to sync/engine
2025-08-18 15:41:54 +03:00
Pekka Enberg
13b805a992
Move @tursodatabase/sync code to sync/javascript
2025-08-18 14:23:20 +03:00