mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 18:18:03 +00:00
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:
commit
14ef25ebb8
8 changed files with 272 additions and 10 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue