Skip to content

Conversation

@prestwich
Copy link
Member

Add the TxUnsync API for single-threaded ptr access

@prestwich prestwich requested review from Evalir and Fraser999 January 26, 2026 16:17
prestwich and others added 6 commits January 26, 2026 11:17
Add 34 proptest-based tests covering both TxSync (V1) and TxUnsync (V2)
transaction APIs to verify that arbitrary inputs do not cause panics.

Tests cover:
- Key/value put/get with arbitrary data
- Delete operations on nonexistent keys
- Get operations on empty databases
- Cursor positioning (set, set_range, set_key)
- Database name creation with valid names
- DUP_SORT operations (put, get_both, get_both_range)
- Iterator operations (iter_from, iter_dup_of, iter_dup_from)
- Cursor put operations
- Edge cases (empty keys, empty values, large keys)

Also includes a portability fix: *const i8 -> *const c_char in ops.rs.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@prestwich prestwich merged commit 08a9e18 into main Jan 26, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants