mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-25 12:04:21 +01:00
This PR adds support for partial indexes, e.g. `CREATE INDEX` with a provided predicate ```sql CREATE UNIQUE INDEX idx_expensive ON products(sku) where price > 100; ``` The PR does not yet implement support for using the partial indexes in the optimizer. Reviewed-by: Jussi Saurio <jussi.saurio@gmail.com> Closes #3228
Turso Testing
Testing Extensions
When adding tests for extensions, please follow these guidelines:
- Tests that verify the internal logic or behavior of a particular extension should go into
cli_tests/extensions.py. - Tests that verify how extensions interact with the database engine, such as virtual table handling, should be written
in TCL (see
vtab.testas an example).
To check which extensions are available in TCL, or to add a new one, refer to the tester.tcl file and look at the extension_map.