implement the pragma page_count

To do that, we also have to implement the vdbe opcode Pagecount.
This commit is contained in:
Glauber Costa
2025-01-29 11:00:10 -05:00
parent 20d3399c71
commit a3387cfd5f
7 changed files with 52 additions and 2 deletions

View File

@@ -32,3 +32,12 @@ do_execsql_test pragma-table-info-call-syntax {
do_execsql_test pragma-table-info-invalid-table {
PRAGMA table_info=pekka
} {}
do_execsql_test_on_specific_db ":memory:" pragma-page-count-empty {
PRAGMA page_count
} {0}
do_execsql_test_on_specific_db ":memory:" pragma-page-count-table {
CREATE TABLE foo(bar);
PRAGMA page_count
} {2}