Commit Graph

  • 7b2163208b batch backfilling pages when checkpointing PThorpe92 2025-07-25 19:01:41 -04:00
  • 2bde1dbd42 fix: PageSize bounds check Levy A. 2025-07-22 17:15:34 -03:00
  • fe66c61ff5 add usable_space to DatabaseHeader Levy A. 2025-07-22 16:26:45 -03:00
  • e35fdb8263 feat: zero-copy DatabaseHeader Levy A. 2025-07-21 18:07:59 -03:00
  • 9bd053033a serverless: Fix Connection.run() implementation Pekka Enberg 2025-07-30 14:38:21 +03:00
  • 5663dd8c91 testing: Skip in-memory database test for serverless Pekka Enberg 2025-07-30 14:32:05 +03:00
  • fff7bf52f3 serverless: Add support for named parameters Pekka Enberg 2025-07-30 14:30:54 +03:00
  • 1b8d95a79f serverless: Implement Connection.close() Pekka Enberg 2025-07-30 14:14:57 +03:00
  • e128bd477e Merge 'Support VALUES clauses for compound select' from meteorgan Jussi Saurio 2025-07-30 21:34:40 +03:00
  • bc148a3906 Merge 'skip invalid inputs in cosine distance prop test' from bit-aloo Jussi Saurio 2025-07-30 21:33:15 +03:00
  • 895f2acbfb Merge 'Fix concat_ws to match sqlite behavior' from bit-aloo Pekka Enberg 2025-07-30 21:31:58 +03:00
  • 147f105136 Merge 'core/mvcc: Switch to parking_lot RwLock' from Pekka Enberg Pekka Enberg 2025-07-30 21:31:31 +03:00
  • ac8a123e38 refactor/btree: simplify get_next_record()/get_prev_record() Jussi Saurio 2025-07-29 10:45:21 +03:00
  • b7cb4a3ed4 core/mvcc: Switch to parking_lot RwLock Pekka Enberg 2025-07-30 19:36:25 +03:00
  • 3c6fbe67cf Merge 'fix: add packages to sim/antithesis dockerfiles for cargo-chef' from Jussi Saurio Pekka Enberg 2025-07-30 19:38:25 +03:00
  • 1be93c8c18 skip invalid inputs in cosine distance prop test bit-aloo 2025-07-30 21:27:55 +05:30
  • f934bdb39e fix: add packages to sim/antithesis dockerfiles for cargo-chef Jussi Saurio 2025-07-30 18:55:05 +03:00
  • 7caef278a5 Merge 'Rewrite the WAL' from Preston Thorpe Jussi Saurio 2025-07-30 18:50:49 +03:00
  • ff1c1b6b8c wal_insert_end: call pager.rollback() after tx ends so that lock index is preserved when ending tx Jussi Saurio 2025-07-30 18:22:40 +03:00
  • 7240d7903c fmt Jussi Saurio 2025-07-30 18:22:17 +03:00
  • 438cbf2872 test/wal api: add comment about purpose of rollback test Jussi Saurio 2025-07-30 18:17:07 +03:00
  • 7bc11fe2f9 wal_insert_end: revert unintentional changes Jussi Saurio 2025-07-30 18:16:23 +03:00
  • 73b56f3917 test/fuzz/tx-isolation: unignore test Jussi Saurio 2025-07-30 17:25:49 +03:00
  • 2813a7a5de clippy Jussi Saurio 2025-07-30 17:25:30 +03:00
  • c00d1fcfc0 fmt Jussi Saurio 2025-07-30 17:21:29 +03:00
  • 66c4b44c55 pager: call rollback() after ending txn so that read lock info is not lost when ending txn Jussi Saurio 2025-07-30 17:21:19 +03:00
  • 7b1f04dc5e pager: only ROLLBACK your own transaction, not if someone else is writing Jussi Saurio 2025-07-30 17:00:38 +03:00
  • 951bebfac3 Merge 'Add vector_concat and vector_slice support' from bit-aloo Pekka Enberg 2025-07-30 16:58:33 +03:00
  • d0f57584ad Merge 'turso-sync: bidirectional sync for local db' from Nikita Sivukhin Pekka Enberg 2025-07-30 16:54:21 +03:00
  • e7eda25802 Make sure to end read tx on error of wal insert begin API PThorpe92 2025-07-30 09:44:29 -04:00
  • b1aa13375d call pager.end_tx() everywhere instead of pager.rollback() Jussi Saurio 2025-07-30 16:39:38 +03:00
  • 975b7b5434 wal: fix test incorrect expectation Jussi Saurio 2025-07-30 15:53:13 +03:00
  • af660326d8 finish_append_frames_commit: revert bumping readmark incorrectly Jussi Saurio 2025-07-30 15:53:01 +03:00
  • be36fe12c6 add fuzz test for concat_ws bit-aloo 2025-07-30 17:54:51 +05:30
  • d4043595cd test/fuzz/tx-isolation: clippy Jussi Saurio 2025-07-30 15:02:16 +03:00
  • 43d1321033 ignore completion result of self.read_frame Jussi Saurio 2025-07-30 14:53:21 +03:00
  • 338cab3f28 End read transaction when Schema::make_from_btree fails Jussi Saurio 2025-07-30 14:52:15 +03:00
  • fd5e73f038 op_transaction: read tx must be ended in all cases if begin_write_tx fails Jussi Saurio 2025-07-30 13:47:52 +03:00
  • 9a63425b43 clippy Jussi Saurio 2025-07-30 13:47:24 +03:00
  • 772b71963e finish_append_frames_commit: properly increase readmark on commit Jussi Saurio 2025-07-30 13:46:52 +03:00
  • 1562c1df10 begin_read_tx: better assertion failure message Jussi Saurio 2025-07-30 13:46:33 +03:00
  • d5b0d284e6 bindings/rust: add tx isolation fuzz test Jussi Saurio 2025-07-29 17:34:14 +03:00
  • 1d83bb48c5 fix exec_concat_ws implementation bit-aloo 2025-07-30 17:27:15 +05:30
  • 4dc15492d8 Integrate changes from tx isolation commits from @jussisaurio PThorpe92 2025-07-29 22:55:00 -04:00
  • 2c3a9fe5ef Finish wal transaction handling and add more wal and chkpt testing PThorpe92 2025-07-29 11:19:21 -04:00
  • 8806b77d26 Clear snapshot and readmark/lock index flags on failure PThorpe92 2025-07-28 00:15:02 -04:00
  • d702e6a80c Polish checkpointing and fix tests, add documentation PThorpe92 2025-07-27 23:42:03 -04:00
  • 8ec99a9143 Remove assert for !NO_LOCK_HELD, properly handle writing header if reset PThorpe92 2025-07-24 18:04:44 -04:00
  • 529cc14e29 Fix wal tests remove unwrap from previous Result return val PThorpe92 2025-07-23 23:01:31 -04:00
  • 7640535ba4 Fix transaction read0 shortcut in WAL and track whether we have snapshot PThorpe92 2025-07-23 22:41:30 -04:00
  • ff1987a45c Temporarily remove optimization for new read tx to grab read mark 0 and skip db file PThorpe92 2025-07-22 23:12:05 -04:00
  • 318bfa9590 Change incorrect comments and rename guard PThorpe92 2025-07-22 12:59:50 -04:00
  • 1490a586b1 Apply suggestions/fixes and add extensive comments to wal chkpt PThorpe92 2025-07-21 21:59:41 -04:00
  • 3e75444388 Remove panic in cacheflush io.block in pager now that checkpoitns can return busy PThorpe92 2025-07-21 21:39:42 -04:00
  • 5c1dbd1a9f Remove unused import PThorpe92 2025-07-19 21:48:10 -04:00
  • 3db72cf111 Just forget Full checkpoint mode for now, comment out compat test PThorpe92 2025-07-19 20:45:23 -04:00
  • 49f90980d4 Create new header after truncation chkpt PThorpe92 2025-07-19 19:36:23 -04:00
  • b214c3dfc8 Add diff chkpt modes to sqlite3 api, finish checkpoint logic and add tests PThorpe92 2025-07-19 19:02:06 -04:00
  • eaa6f99fa8 Hold and ensure release of proper locks if we trunc the db file post-checkpoint PThorpe92 2025-07-19 15:30:26 -04:00
  • 8ca37b71b6 Ensure we properly hold and release read locks in log restart method and fix tests PThorpe92 2025-07-19 15:05:24 -04:00
  • 9b7e5ed292 Trunc db file after backfilling everything in calling method PThorpe92 2025-07-19 14:45:06 -04:00
  • 436747536c Add integration test for truncate checkpointing wal PThorpe92 2025-07-19 14:23:03 -04:00
  • 7643ef97a6 Pass checkpoint mode from sqlite3 c api argument PThorpe92 2025-07-19 14:21:04 -04:00
  • f4becd1296 Allow using !passive checkpoint methods in pragma wal_checkpoint PThorpe92 2025-07-19 14:19:34 -04:00
  • 1a9b7ef76e Add support for truncate, restart and full checkpointing methods PThorpe92 2025-07-19 14:19:08 -04:00
  • 6b71efa5b6 Accept mode argument for checkpoint in connection api PThorpe92 2025-07-19 14:18:34 -04:00
  • f78c6af51a Display error when unable to open file from within cli PThorpe92 2025-07-19 14:17:54 -04:00
  • 441319e774 Fix todo! in vfs IO preventing write wal header from using wait_for_completion PThorpe92 2025-07-18 15:27:19 -04:00
  • ad286bb873 Use new wait_for_completion for sync IO PThorpe92 2025-07-18 15:01:46 -04:00
  • 9c75872827 Make writing wal header able to be sync PThorpe92 2025-07-18 14:46:19 -04:00
  • dcf346b9b0 Update apparently very old branch to new api PThorpe92 2025-07-18 00:20:06 -04:00
  • cfbe9d5b9e Fix clippy error casting same size PThorpe92 2025-07-17 23:59:00 -04:00
  • f22313575f Fix windows method to take usize in place of u64 PThorpe92 2025-07-17 23:51:36 -04:00
  • edbc29e2a6 Add restart_header and truncate for WAL and tests to prep for truncate checkpoint mode PThorpe92 2025-07-17 23:27:03 -04:00
  • 272a63b562 Fix truncate impl in JS bindings PThorpe92 2025-07-17 23:26:07 -04:00
  • 3be8bb374d Use usize for truncate method in place of u64 PThorpe92 2025-07-17 23:25:47 -04:00
  • 52f63b2af0 Impl truncate for simulator PThorpe92 2025-07-17 23:25:11 -04:00
  • bbb47fd58a Add truncate method to wasm bindings module PThorpe92 2025-07-17 13:00:33 -04:00
  • ce1897cb4a Impl truncate for the remainder of IO modules PThorpe92 2025-07-17 11:58:11 -04:00
  • d30157518f Impl truncate method for VFS io module and create plumbing in extension lib PThorpe92 2025-07-17 11:37:19 -04:00
  • fa002cba59 Impl truncate method for io_uring IO PThorpe92 2025-07-17 11:36:18 -04:00
  • a4121c8cea Impl truncate method for generic IO PThorpe92 2025-07-17 11:34:29 -04:00
  • 73fe4ffa06 Add truncate method to DatabaseStorage trait PThorpe92 2025-07-17 11:34:08 -04:00
  • 8bf2898c47 Add truncate method to IO trait and Truncate completion variant PThorpe92 2025-07-17 11:33:24 -04:00
  • f3da874fd5 fix clippy Nikita Sivukhin 2025-07-30 14:38:29 +04:00
  • aad0460bd1 rename methods Nikita Sivukhin 2025-07-30 14:20:44 +04:00
  • 16ed251cc5 remove turso_assert Nikita Sivukhin 2025-07-30 14:18:47 +04:00
  • 2b5dbba2df set tokio_unstable cfg at workspace root Nikita Sivukhin 2025-07-30 14:13:04 +04:00
  • baa424bff6 release and remove copies Pere Diaz Bou 2025-07-30 11:45:24 +02:00
  • a828b9f29b add start > end condition and corresponding test bit-aloo 2025-07-30 14:49:11 +05:30
  • bf58ede567 make vectortype copy and cloned variant's accordingly bit-aloo 2025-07-30 14:21:45 +05:30
  • 44707495b9 add more test covering the edge cases bit-aloo 2025-07-30 14:19:37 +05:30
  • 6f45cb9770 update vector slice to adhere to start..end and not start, length bit-aloo 2025-07-30 14:04:59 +05:30
  • c546261010 update as_int to return Option, instead of panicking. Update vector_slice and vector_concat accordingly bit-aloo 2025-07-30 13:54:55 +05:30
  • 96a99ca48a rename subvector to vector_slice bit-aloo 2025-07-30 13:34:49 +05:30
  • b78ce17022 properly configure TLS and use default features for rustls/hyper-rustls deps Nikita Sivukhin 2025-07-30 11:47:36 +04:00
  • 2eed2745d3 Merge 'Change more function signatures to return Completions' from Pedro Muniz Pekka Enberg 2025-07-30 10:42:45 +03:00
  • 2443b8db3c Merge 'bindings/rust: Add Connection::execute_batch()' from Rohith Suresh Pekka Enberg 2025-07-30 10:19:03 +03:00
  • 81c86d42b4 Merge 'Clean up conversion between InsnFunctionStepResult and StepResult' from Diego Reis Pekka Enberg 2025-07-30 09:11:35 +03:00
  • 9ab26b3ac2 Merge 'core/mvcc: simplify mvcc cursor types' from Pere Diaz Bou Pekka Enberg 2025-07-30 09:10:44 +03:00