pedrocarlo
eaadaee5c3
refactor more of the core tester to use helpers
2025-12-19 17:20:46 -03:00
pedrocarlo
60ab032e3a
clean up core tester to use conn.execute instead of limbo_exec_rows and use conn.exec_rows for parsing correctly the expected values from select queries
2025-12-12 12:36:48 -03:00
pedrocarlo
c207eddd3f
remove unused TempDatabase argument requirement for limbo_exec_rows
2025-12-10 15:21:03 -03:00
Jussi Saurio
826ca4d44d
chore: remove experimental_indexes feature flags
2025-12-08 13:00:37 +02:00
pedrocarlo
c4653ae34c
change functions to use new test macros
2025-11-19 23:28:23 -03:00
pedrocarlo
1db13889e3
Change Value::Text to use a Cow<'static, str> instead of Vec<u8>
2025-11-11 16:11:46 -03:00
Nikita Sivukhin
7294ef347f
fix tests
2025-11-06 17:45:12 +04:00
Nikita Sivukhin
22fe9452ac
remove unnecessary parameter from integration tests
2025-10-27 15:16:12 +04:00
PThorpe92
08197e345a
Fix cdc test to assert for correct schema output
2025-10-21 11:22:29 -04:00
pedrocarlo
e93add6c80
remove dyn DatabaseStorage and replace it with DatabaseFile
2025-10-03 14:14:15 -03:00
Duy Dang
8562737d77
sum() can throw integer overflow
2025-09-29 00:27:59 +07:00
Pavan-Nambi
020921f803
Merge remote-tracking branch 'upstream/main' into cdc_fail_autoincrement
2025-09-18 19:27:19 +05:30
rajajisai
89caa868f9
Encryption support for database header page
2025-09-16 10:04:30 -04:00
Pavan-Nambi
cfe01eafaa
fmt
2025-09-12 16:53:12 +05:30
Pavan-Nambi
8da4e30308
update rootpage and rowid in test_cdc
2025-09-12 16:21:23 +05:30
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
Nikita Sivukhin
47808e9da8
enable tracing subscriber in integration tests
2025-09-07 19:56:06 +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
Nikita Sivukhin
c62b87d9b6
read from database file only if max_frame_read_lock_index is 0 and max_frame > min_frame
...
- transaction which was started with max_frame = 0 and max_frame_read_lock_index = 0
can write to the WAL and in this case it needs to read data back from WAL
- without cache spilling its hard to reproduce this issue for the turso-db now,
but I stumbled into this issue with sync-engine which do weird stuff with the WAL
which "simulates" cache spilling behaviour to some extent
2025-08-25 11:36:58 +04:00
Nikita Sivukhin
fdb80746be
fix clippy
2025-08-21 18:28:16 +04:00
Nikita Sivukhin
b7c033be20
add tests
2025-08-21 18:28:16 +04:00
Nikita Sivukhin
f6729ccc36
fix clippy
2025-08-21 18:27:54 +04:00
Nikita Sivukhin
89e180c2a8
add few tests
2025-08-21 18:27:54 +04:00
Nikita Sivukhin
d7e47c1268
fix bug - continue checkpoint as usual even if frames range is degenerate
2025-08-21 17:37:19 +04:00
Nikita Sivukhin
c34d884b6e
fix tests
2025-08-21 15:24:21 +04:00
Nikita Sivukhin
144a31192f
fix clippy
2025-08-21 14:13:26 +04:00
Nikita Sivukhin
05931f70ce
add optional upper_bound_inclusive parameter to some checkpoint modes
...
- will be used in sync-engine protocol
2025-08-21 14:12:11 +04:00
Nikita Sivukhin
5d0ada9fb9
add "updates" column for cdc table
2025-08-11 12:46:15 +04:00
Nikita Sivukhin
c0d5c55d5c
fix tests and clippy
2025-08-06 01:03:49 +04:00
Nikita Sivukhin
9c4147e8d6
add simple integration tests
2025-08-06 01:03:49 +04:00
Nikita Sivukhin
76bdf0c1ab
small fixes
2025-08-04 17:02:53 +04:00
Nikita Sivukhin
2e23230e79
extend raw WAL API with few more methods
...
- try_wal_watermark_read_page - try to read page from the DB with given WAL watermark value
- wal_changed_pages_after - return set of unique pages changed after watermark WAL position
2025-08-04 16:55:50 +04:00
Nikita Sivukhin
83b1e99a61
fix compilation
2025-08-04 12:53:07 +04:00
Jussi Saurio
438cbf2872
test/wal api: add comment about purpose of rollback test
2025-07-30 18:17:07 +03:00
Nikita Sivukhin
d8be1cbef1
fix after rebase
2025-07-28 17:20:57 +04:00
Nikita Sivukhin
4d25cda1e2
slightly adjust one test
2025-07-28 17:20:10 +04:00
Nikita Sivukhin
eb32ea49e6
fix tests
2025-07-28 17:20:10 +04:00
Nikita Sivukhin
27fcb81f48
add more complex schema changes test for raw WAL API
2025-07-24 22:43:31 +04:00
Nikita Sivukhin
10836510df
remove tracing_subscriber
2025-07-24 11:52:07 +04:00
Nikita Sivukhin
6daa6d07f1
re-parse schema if necessary after WAL sync end
2025-07-24 11:52:07 +04:00
Nikita Sivukhin
fb83862013
fix clippy
2025-07-24 11:49:39 +04:00
Nikita Sivukhin
435ca7fe7a
add fuzz tests for raw WAL API
2025-07-24 11:49:39 +04:00
Nikita Sivukhin
2283a04aab
add more tests
2025-07-23 11:31:00 +04:00
Nikita Sivukhin
16763e1500
implement raw WAL write api
2025-07-23 11:30:59 +04:00
Jussi Saurio
022f679fab
chore: make every CREATE TABLE stmt in entire repo have 1 space after tbl name
...
`BTreeTable::to_sql` makes us incompatible with SQLite by losing e.g. the original whitespace provided during the CREATE TABLE command.
For now let's fix our tests by regex-replacing every CREATE TABLE in
the entire repo to have exactly 1 space after the table name in the
CREATE TABLE statement.
2025-07-22 11:35:21 +03:00
Nils Koch
8dc066503e
chore: fix clippy errors
2025-07-16 19:34:42 +01:00
Nikita Sivukhin
97b82fe6d8
rename operation_xxx to change_xxx to make naming more consistent
2025-07-16 20:16:24 +04:00
Nikita Sivukhin
551c353fff
fix clippy
2025-07-14 11:27:51 +04:00
Nikita Sivukhin
81cd04dd65
add bin_record_json_object and table_columns_json_array functions
2025-07-14 11:19:45 +04:00
Nikita Sivukhin
5409812610
properly implement generation of before/after records for new modes
2025-07-14 11:17:32 +04:00