This pr adds a new crate to increase expressivity of tests with complex
things like btree node splitting.
To run tests:
```bash
cd core_tester
cargo test test_sequential_write -- --nocapture
```
This prs improves btree balancing with simple page splitting and some
minor refactors.
Closes#316
This PR adds a regex cache to `ProgramState` so that we ca re-use
already constructed regexes while processing LIKE expressions. I didn't
find anywhere else that seemed like a good fit to put an execution-time
only cache like this, so let me know if there's a better spot.
To best match sqlite, I added the constant mask into the `Function`
instruction (this indicates whether the first argument to the function
was determined to be constant at compile time), and decide whether to
use the cache based on its value. I've left the value for
`constant_mask` as 0 on every other kind of `Function` instruction. That
seemed to be the safest choice, as that appears to be what has been
implicitly done up to this point. Happy to change that if you'd advise
otherwise.
Fixes#168Closes#320
Adds support for parsing the manually created index structure into
memory. This PR sets the stage for supporting index lookup in later PRs.
Fixes: https://github.com/penberg/limbo/issues/314Closes#312
Chores for Python bindings development. Follow-up for PR #298.
Key things:
- Run tests for current multiple Python versions
- Format Python code with Ruff and check format in CI workflow
- Check requirements[-dev].txt correctness in CI workflow
- Add basic Makefile for Python commands
Relates to #248Closes#311
Match Python versions in GitHub workflow and pyproject.toml.
Format workflow YAML and rename steps.
Checkout using `actions/checkout@v4`.
Disable pip version checking in Python workflow to suppress warnings on
older Python versions.
Added a GitHub CI action for the Python bindings with Maturin for
building, Ruff for formatting checks, and pytest for running tests. This
is related to #248Closes#298