Commit Graph

  • 18c41b0f5a Merge 'sqlite3: Fix compatibility test error by canonicalizing path' from Samuel Marks Pekka Enberg 2025-09-22 09:15:00 +03:00
  • 46297acb31 Merge 'Sync improvements' from Nikita Sivukhin Pekka Enberg 2025-09-22 09:14:30 +03:00
  • 6280cfc59d Merge branch 'main' into sync-improvements Pekka Enberg 2025-09-22 07:35:39 +03:00
  • 54176d4548 Merge 'Add encryption throughput test' from Avinash Sajjanshetty Pekka Enberg 2025-09-22 07:34:29 +03:00
  • dae72a7418 Merge 'Remove some unnecessary unsafe impls' from Pedro Muniz Pekka Enberg 2025-09-22 07:33:50 +03:00
  • 2627ad44de support union statements in the DBSP circuit compiler Glauber Costa 2025-09-19 05:18:44 -05:00
  • b419db489a Implement the DBSP merge operator Glauber Costa 2025-09-19 05:23:10 -05:00
  • 9f54f60d45 make sure that complex select statements are captured by MV populate Glauber Costa 2025-09-20 20:06:22 -03:00
  • 7def22ef3c Add DO UPDATE SET case to partial index/upsert fuzzing PThorpe92 2025-09-21 14:47:59 -04:00
  • ffeb26b24a only ever call callbacks once pedrocarlo 2025-09-21 13:50:36 -03:00
  • 4867999381 Add partial_index_mutation_and_upsert_fuzz test PThorpe92 2025-09-21 13:29:30 -04:00
  • a1ca56620a Add SQLITE_CONSTRAINT_UNIQUE constraint to op_halt handling PThorpe92 2025-09-21 13:29:01 -04:00
  • 6fb4b03801 Fix UPSERT handling, properly rebuild indexes only based on what columns they touch PThorpe92 2025-09-21 13:28:36 -04:00
  • 0ea6e5714d Separate UPSERT behavior into preflight and commit state to prevent inserting idx before violating unique constraint PThorpe92 2025-09-21 13:27:50 -04:00
  • e545e75e31 Emit Affinity instruction for unique index, and use no_constant_opt PThorpe92 2025-09-21 13:24:48 -04:00
  • 63177c42e4 Add SQLITE_CONSTRAINT_UNIQUE error constant PThorpe92 2025-09-21 13:22:31 -04:00
  • 6e2b0c901e remove PanicGenerationContext and instead just pass the connection context directly pedrocarlo 2025-09-21 14:02:23 -03:00
  • e5dfc942b1 remove some unnecessary unsafe impls pedrocarlo 2025-09-21 13:05:46 -03:00
  • 51cf410b56 add has_autoincrement to all test tables from main branch Pavan-Nambi 2025-09-21 16:10:45 +05:30
  • 47194d7658 Merge branch 'tursodatabase:main' into cdc_fail_autoincrement Pavan Nambi 2025-09-21 16:03:38 +05:30
  • 13260349b0 Return a parse error for a non-equality join Glauber Costa 2025-09-20 20:34:24 -03:00
  • 33538a1ebf Add some tests for UPSERT with partial indexes PThorpe92 2025-09-20 18:32:50 -04:00
  • 03149bc92d Remove unused imports PThorpe92 2025-09-20 18:32:25 -04:00
  • 62ee68e4dd Fix INSERT/UPSERT to properly handle and/or reject partial indexes PThorpe92 2025-09-20 18:32:03 -04:00
  • 51fb801d87 Fix partial index handling in insert to properly map rowid to insertion key PThorpe92 2025-09-20 17:44:28 -04:00
  • 93d24d2b50 Use new bind_where_expr helper method in emitter PThorpe92 2025-09-20 17:43:50 -04:00
  • 421b5b7bae Use new index.validate_where_expr and bind_where_expr methods on index create PThorpe92 2025-09-20 17:42:50 -04:00
  • 1ed3fc52f7 Add method to validate the Where Expr from a partial index PThorpe92 2025-09-20 17:21:04 -04:00
  • 0f771ecb5d Fix tests to assert for UNIQUE constraint failed: table.col_name instead of idx name PThorpe92 2025-09-20 15:02:38 -04:00
  • 6dc7d04c5a Replace translate_epxr with translate_condition_expr and fix constraint error PThorpe92 2025-09-20 15:02:06 -04:00
  • 281344434f Remove unused import PThorpe92 2025-09-20 14:38:42 -04:00
  • 340b95aa8b Apply PR review suggestions, add comments to partial indexes PThorpe92 2025-09-20 14:34:48 -04:00
  • 21f6455190 Fix clippy warnings and tests PThorpe92 2025-09-19 23:40:38 -04:00
  • f4258b8b08 Just use raw pointer instead of cloning JoinedTable in emitter PThorpe92 2025-09-19 23:34:40 -04:00
  • 6d8bf009f1 Add some comments PThorpe92 2025-09-19 23:04:51 -04:00
  • 67cb59d9a7 Add UPDATE tests for partial index behavior PThorpe92 2025-09-19 22:43:10 -04:00
  • 2d952feae3 Add DELETE behavior tests for partial indexes PThorpe92 2025-09-19 22:34:25 -04:00
  • 635273f782 Prevent using a partial index as a scan driver PThorpe92 2025-09-19 22:33:51 -04:00
  • 4c6917f849 Add testing for partial indexes PThorpe92 2025-09-19 20:09:07 -04:00
  • 51f970a263 Support partial indexes in INSERT/UPDATE/DELETE PThorpe92 2025-09-19 20:05:06 -04:00
  • a0f574d279 Add where_clause expr field to Index PThorpe92 2025-09-19 20:04:43 -04:00
  • 864d113037 Remove dumb comment PThorpe92 2025-09-19 20:02:07 -04:00
  • 25754cb0e4 Merge 'Pragma busy timeout' from Nikita Sivukhin Preston Thorpe 2025-09-20 14:36:29 -04:00
  • 0597ea722a Add encryption throughput test Avinash Sajjanshetty 2025-09-20 21:56:58 +05:30
  • 0e702fbec2 check FaultyQuery depending tables when shrinking pedrocarlo 2025-09-20 11:36:05 -03:00
  • 021d5d272a refactor shadowing code to take into account snapshot isolation pedrocarlo 2025-09-19 17:14:54 -03:00
  • 6b0011f477 in shriking remove unnecessary begin commit queries pedrocarlo 2025-09-19 15:17:13 -03:00
  • 0293c32616 disable integrity check and indexes when using mvcc pedrocarlo 2025-09-19 14:55:10 -03:00
  • 850dbc75a2 adjust shrinking to keep previous interactions if there are no depending tables pedrocarlo 2025-09-19 14:50:14 -03:00
  • c3cdb0e0fd add begin concurrent before each statement with mvcc pedrocarlo 2025-09-18 20:14:02 -03:00
  • 13f36880f8 adjust generation code to use the context from the current connection index instead of the whole database pedrocarlo 2025-09-18 17:45:07 -03:00
  • c4843d6a6e refactor SimulatorEnv to hold committed tables and separate connection tables for snapshot isolation pedrocarlo 2025-09-18 16:37:22 -03:00
  • 30538e7898 modify Begin struct pedrocarlo 2025-09-18 15:21:02 -03:00
  • c9ab268bf5 remove extra checks for int column autoincr Pavan-Nambi 2025-09-20 12:59:14 +05:30
  • 294db6de2d Prevent sqlite_sequence updates from overwriting last_insert_rowid Pavan-Nambi 2025-09-20 12:36:30 +05:30
  • 6de280789e revert pager changes Pavan-Nambi 2025-09-20 10:59:16 +05:30
  • 0de92cd7fb update compat.md that we have memmax Pavan-Nambi 2025-09-20 10:54:59 +05:30
  • 16072de4f6 use Arc not rc and add auto_increment to window Pavan-Nambi 2025-09-20 10:53:48 +05:30
  • d2cd48d9e4 [sqlite3/tests/compat/mod.rs] Use canonical path to fix temp path on macOS ; rename to resolve binding connascence Samuel Marks 2025-09-19 20:40:11 -05:00
  • 57e52077be add link to the docs Nikita Sivukhin 2025-09-19 16:48:43 +04:00
  • c63c820bb7 add busy_timeout pragma Nikita Sivukhin 2025-09-19 16:48:12 +04:00
  • 6b273af7e9 Merge 'translate/optimize: centralize AST/expr traversal' from Preston Thorpe Preston Thorpe 2025-09-19 08:03:39 -04:00
  • 20493441e0 Merge 'prevent alter table with materialized views' from Glauber Costa Preston Thorpe 2025-09-19 08:01:58 -04:00
  • 9dda5a6263 Merge 'bugfix: clear reserved space for a reused page' from Avinash Sajjanshetty Pekka Enberg 2025-09-19 14:16:24 +03:00
  • 8300d0390e prevent alter table with materialized views Glauber Costa 2025-09-19 05:59:46 -05:00
  • 2307cf03be Merge 'core/mvcc: Wrap LogicalLog in RwLock' from Pekka Enberg Pekka Enberg 2025-09-19 13:40:40 +03:00
  • 69d4745aa0 Merge 'Support JOINs in DBSP materialized views' from Glauber Costa Pekka Enberg 2025-09-19 13:40:21 +03:00
  • c5ebb0ef63 Merge 'mvcc: remove unused code related to is_logical_log()' from Jussi Saurio Jussi Saurio 2025-09-19 13:31:34 +03:00
  • c24e5219d2 remove log file Nikita Sivukhin 2025-09-19 14:24:42 +04:00
  • cfc8728774 fix clippy Nikita Sivukhin 2025-09-19 13:25:52 +04:00
  • 6a07d56742 Merge 'Put the unused variable behind a flag as intended' from Avinash Sajjanshetty Jussi Saurio 2025-09-19 12:58:57 +03:00
  • ba7ae50eff mvcc: remove unused code related to is_logical_log() Jussi Saurio 2025-09-19 12:55:27 +03:00
  • d5295fb45c Put the unused variable behind a flag as intended Avinash Sajjanshetty 2025-09-19 14:55:02 +05:30
  • 7049f3ddae fix clock implementation for OPFS IO Nikita Sivukhin 2025-09-19 13:17:23 +04:00
  • bc2dbe9025 fix bug Nikita Sivukhin 2025-09-19 12:56:45 +04:00
  • b106220743 main thread in browser can't execute parking - so we use parking lot in spin-lock style for that target Nikita Sivukhin 2025-09-18 01:35:22 +04:00
  • e1ed12b284 rm claude comment PThorpe92 2025-09-19 05:20:20 -04:00
  • 1d3c823c7b wip Nikita Sivukhin 2025-09-18 01:35:09 +04:00
  • 66de28d84b wip Nikita Sivukhin 2025-09-17 10:38:05 +04:00
  • 1185298670 fix replay generator Nikita Sivukhin 2025-09-17 10:37:26 +04:00
  • e68b642f4f set longPollTimeoutMs from js bindings Nikita Sivukhin 2025-09-16 12:22:02 +04:00
  • 83303b8c5b properly guard access to the sync engine with locks Nikita Sivukhin 2025-09-16 12:21:17 +04:00
  • 160119b12e propagate long poll timeout Nikita Sivukhin 2025-09-16 12:20:59 +04:00
  • b0f60a29ba guard meta with mutex and make all methods to accept shared reference and offload locking of sync engine methods to the external wrapper Nikita Sivukhin 2025-09-16 12:20:22 +04:00
  • acc536d542 use global opfs IO in the sync Nikita Sivukhin 2025-09-17 23:30:44 +04:00
  • 974feac27b move compute to the main thread for browser and node Nikita Sivukhin 2025-09-17 21:38:36 +04:00
  • f2f7f817e4 populate all tables in IncrementalView Glauber Costa 2025-09-18 16:03:37 -05:00
  • e5a106d8d6 enable joins in IncrementalView Glauber Costa 2025-09-18 10:40:35 -05:00
  • 832a4d7034 generate projection nodes inside filter clauses Glauber Costa 2025-09-18 12:18:01 -05:00
  • 627f61aa81 support column comparisons in the filter operator Glauber Costa 2025-09-18 11:23:47 -05:00
  • 47097fbec6 Add tests for project operator working with ambiguous columns Glauber Costa 2025-09-18 10:35:21 -05:00
  • e80dd8e5e1 move the filter operator to accept indexes instead of names Glauber Costa 2025-09-18 10:14:40 -05:00
  • cb7c04ffad return error instead of panic for invalid syntax on views Glauber Costa 2025-09-17 21:19:10 -05:00
  • f149b40e75 Implement JOINs in the DBSP circuit Glauber Costa 2025-09-16 16:00:15 -05:00
  • 9f3d119a5a move hashable row tests to dbsp.rs Glauber Costa 2025-09-17 15:02:09 -05:00
  • e2f0e372a1 move the join operator to its own file. Glauber Costa 2025-09-17 10:45:12 -05:00
  • aa8fcdbe54 move the aggregate operator to its own file. Glauber Costa 2025-09-19 03:58:35 -05:00
  • 7178d8d31c move the project operator to its own file. Glauber Costa 2025-09-17 10:45:12 -05:00
  • ee914fc543 move the filter operator to its own file. Glauber Costa 2025-09-17 10:45:12 -05:00
  • 9747d6c6b6 move the input operator to its own file. Glauber Costa 2025-09-17 10:45:12 -05:00