limbo/testing/cli_tests
Pekka Enberg c6ef19396d Merge 'Add support for pragma table-valued functions' from Piotr Rżysko
This PR adds support for table-valued functions for PRAGMAs (see the
[PRAGMA functions section](https://www.sqlite.org/pragma.html)).
Additionally, it introduces built-in table-valued functions. I
considered using extensions for this, but there are several reasons in
favor of a dedicated mechanism:
* It simplifies the use of internal functions, structs, etc. For
example, when implementing `json_each` and `json_tree`, direct access to
internals was necessary:
https://github.com/tursodatabase/limbo/pull/1088
* It avoids FFI overhead. [Benchmarks](https://github.com/piotrrzysko/li
mbo/blob/pragma_vtabs_bench/core/benches/pragma_benchmarks.rs) on my
hardware show that `pragma_table_info()` implemented as an extension is
2.5× slower than the built-in version.

Reviewed-by: Jussi Saurio <jussi.saurio@gmail.com>

Closes #1642
2025-06-04 09:08:10 +03:00
..
cli_test_cases.py Overhaul in printing using rich 2025-04-15 12:50:35 -03:00
collate.py More tests 2025-05-19 15:22:15 -03:00
console.py introduce test theme 2025-04-15 12:51:43 -03:00
constraint.py fix: use tempfile as db path in constraint.py 2025-05-29 21:03:10 +03:00
extensions.py Add support for pragma table-valued functions 2025-06-01 10:25:42 +02:00
memory.py adjust move_to and seek functions to make them truly reentrant + adding return_if_locked_maybe_load in some places so that we read loaded pages 2025-06-01 01:01:35 -03:00
test_limbo_cli.py Add option to py tests to create temporary db with clone of testing.db 2025-05-24 14:49:59 -04:00
update.py Overhaul in printing using rich 2025-04-15 12:50:35 -03:00
vfs_bench.py Add python script to benchmark vfs against eachother 2025-04-21 12:22:20 -04:00
write.py added delete operations to blobs in memory and write tests 2025-05-31 14:47:49 -03:00