Merge 'Add drop index' from Anton Harniakou

This commit adds suport for DROP INDEX.
Bytecode produced by this commit differs from SQLITE's bytecode, main
reason we don't do autovacuum or repacking of pages like SQLITE does.
Closes #1280

Closes #1444
This commit is contained in:
Pekka Enberg 2025-05-10 08:04:39 +03:00
commit 14ef25ebb8
8 changed files with 272 additions and 10 deletions

View file

@ -1187,6 +1187,15 @@ pub fn insn_to_str(
0,
format!("DROP TABLE {}", table_name),
),
Insn::DropIndex { db: _, index } => (
"DropIndex",
0,
0,
0,
OwnedValue::build_text(index.name.clone()),
0,
format!("DROP INDEX {}", index.name),
),
Insn::Close { cursor_id } => (
"Close",
*cursor_id as i32,