PThorpe92
f4becd1296
Allow using !passive checkpoint methods in pragma wal_checkpoint
2025-07-30 14:08:33 +03:00
PThorpe92
1a9b7ef76e
Add support for truncate, restart and full checkpointing methods
2025-07-30 14:08:31 +03:00
PThorpe92
6b71efa5b6
Accept mode argument for checkpoint in connection api
2025-07-30 14:07:20 +03:00
PThorpe92
f78c6af51a
Display error when unable to open file from within cli
2025-07-30 14:07:20 +03:00
PThorpe92
441319e774
Fix todo! in vfs IO preventing write wal header from using wait_for_completion
2025-07-30 14:07:19 +03:00
PThorpe92
ad286bb873
Use new wait_for_completion for sync IO
2025-07-30 14:07:04 +03:00
PThorpe92
9c75872827
Make writing wal header able to be sync
2025-07-30 14:05:18 +03:00
PThorpe92
dcf346b9b0
Update apparently very old branch to new api
2025-07-30 13:48:05 +03:00
PThorpe92
cfbe9d5b9e
Fix clippy error casting same size
2025-07-30 13:48:05 +03:00
PThorpe92
f22313575f
Fix windows method to take usize in place of u64
2025-07-30 13:48:05 +03:00
PThorpe92
edbc29e2a6
Add restart_header and truncate for WAL and tests to prep for truncate checkpoint mode
2025-07-30 13:48:05 +03:00
PThorpe92
272a63b562
Fix truncate impl in JS bindings
2025-07-30 13:48:05 +03:00
PThorpe92
3be8bb374d
Use usize for truncate method in place of u64
2025-07-30 13:48:05 +03:00
PThorpe92
52f63b2af0
Impl truncate for simulator
2025-07-30 13:48:05 +03:00
PThorpe92
bbb47fd58a
Add truncate method to wasm bindings module
2025-07-30 13:48:05 +03:00
PThorpe92
ce1897cb4a
Impl truncate for the remainder of IO modules
2025-07-30 13:48:05 +03:00
PThorpe92
d30157518f
Impl truncate method for VFS io module and create plumbing in extension lib
2025-07-30 13:48:05 +03:00
PThorpe92
fa002cba59
Impl truncate method for io_uring IO
2025-07-30 13:48:05 +03:00
PThorpe92
a4121c8cea
Impl truncate method for generic IO
2025-07-30 13:48:05 +03:00
PThorpe92
73fe4ffa06
Add truncate method to DatabaseStorage trait
2025-07-30 13:48:05 +03:00
PThorpe92
8bf2898c47
Add truncate method to IO trait and Truncate completion variant
2025-07-30 13:48:05 +03:00
Pekka Enberg
2eed2745d3
Merge 'Change more function signatures to return Completions' from Pedro Muniz
...
Closes #2330
2025-07-30 10:42:45 +03:00
Pekka Enberg
2443b8db3c
Merge 'bindings/rust: Add Connection::execute_batch()' from Rohith Suresh
...
Fixes #2184
Closes #2215
2025-07-30 10:19:03 +03:00
Pekka Enberg
81c86d42b4
Merge 'Clean up conversion between InsnFunctionStepResult and StepResult' from Diego Reis
...
Reviewed-by: Jussi Saurio <jussi.saurio@gmail.com >
Closes #2332
2025-07-30 09:11:35 +03:00
Pekka Enberg
9ab26b3ac2
Merge 'core/mvcc: simplify mvcc cursor types' from Pere Diaz Bou
...
We have so many cursor types that it will be unbearable to properly make
all of them work. Let's simplify this and only focus on lazy cursor
which in the future will load from database in case we need it.
Closes #2333
2025-07-30 09:10:44 +03:00
Pere Diaz Bou
caa5fe3ef4
core/mvcc: simplify mvcc cursor types
...
We have so many cursor types that it will be unbearable to properly make
all of them work. Let's simplify this and only focus on lazy cursor
which in the future will load from database in case we need it.
2025-07-29 20:13:52 +02:00
Diego Reis
e0b099f5ad
refactor: Implement conversion between InsnFunctionStepResult and
...
StepResult
2025-07-29 15:02:09 -03:00
pedrocarlo
a1c5a6efae
begin_sync should return a Completion
2025-07-29 13:40:58 -03:00
pedrocarlo
9c4ce745ba
wait_for_completion was not implemented for MemoryIO and VFS
2025-07-29 13:23:45 -03:00
Pekka Enberg
d72ba0c153
Merge 'bindings/java: Throw UnsupportedOperationException for unimplemented …' from Pekka Enberg
...
…methods
Closes #2329
2025-07-29 19:07:51 +03:00
Pekka Enberg
76cbb71b53
Merge 'bindings/rust: return errors instead of vibecoded numbers' from Jussi Saurio
...
Good vibes only.
Fixes #2327
Closes #2328
2025-07-29 19:07:47 +03:00
RS2007
2587d0cc76
Removing dbg
2025-07-29 21:24:33 +05:30
RS2007
e31435e416
Typo fix
2025-07-29 21:24:33 +05:30
RS2007
282222a39f
feat: execute_batch working
2025-07-29 21:24:33 +05:30
RS2007
8affc9d436
Prototyping execute_batch
2025-07-29 21:24:22 +05:30
pedrocarlo
58b51e036d
read_page should return a Completion
2025-07-29 12:42:36 -03:00
Pekka Enberg
0aea7c1b62
Merge 'bindings/javascript: Run tests serially' from Diego Reis
...
Closes #2319
edit: I ran tests 30 times for each platform, and it's passing normally.
Closes #2326
2025-07-29 17:57:33 +03:00
pedrocarlo
6edf65f752
append_frame should return a Completion
2025-07-29 11:49:10 -03:00
Pekka Enberg
669f02f17c
bindings/java: Throw UnsupportedOperationException for unimplemented methods
2025-07-29 17:47:35 +03:00
pedrocarlo
be3793e9f1
begin_write_wal_header should return completion + wait for completion in new_shared
2025-07-29 11:45:44 -03:00
Jussi Saurio
72bf4a714a
bindings/rust: return errors instead of vibecoded numbers
2025-07-29 17:45:15 +03:00
pedrocarlo
5861145fb4
read_frame should return a Completion
2025-07-29 11:40:53 -03:00
Diego Reis
a35a490188
Force ava tests to run serially
2025-07-29 11:05:37 -03:00
Pekka Enberg
19bf4f7818
Merge 'Javascript testing cleanups' from Pekka Enberg
...
Closes #2324
2025-07-29 16:50:48 +03:00
Pekka Enberg
6c6d74993c
testing/javascript: Clean up after test runs
2025-07-29 16:17:11 +03:00
Pekka Enberg
c39f0e7557
testing/javascript: Add libsql to compatibility test suite
2025-07-29 16:09:49 +03:00
Pekka Enberg
b4dc9bebe0
testing/javascript: Improve error message if TURSO_DATABASE_URL is not set
2025-07-29 16:09:49 +03:00
Pekka Enberg
c34f9de4ea
serverless: Add URL validation on Connection constructor
2025-07-29 16:09:49 +03:00
Pekka Enberg
f48b22a52f
Merge 'Javascript API improvements' from Pekka Enberg
...
Various improvements:
- Make promise API the default for `@tursodatabase/turso`
- Add a compatibility test suite for database, serverless, and better-
sqlite3
- Improve serverless driver a bit to be more compatible.
Closes #2322
2025-07-29 15:55:53 +03:00
Pekka Enberg
41a6bba3fc
Merge 'turso-sync package: initial commit' from Nikita Sivukhin
...
This PR introduce `turso-sync` package which will provide additional
sync features build on top of the `turso` and `turso-core` packages.
In this PR `turso-sync` introduces simple `DatabaseTape` wrapper which
allows to extract operations from CDC table and apply them (potentially,
to completely different database).
Closes #2306
2025-07-29 15:24:31 +03:00