DROP TABLE: renamed BTreeCusor::btree_drop to BTreeCursor::btree_destroy

this more closely matches semantics
This commit is contained in:
Zaid Humayun
2025-02-09 11:03:30 +05:30
parent 508dad77ab
commit 97d87955cc
2 changed files with 2 additions and 2 deletions

View File

@@ -2236,7 +2236,7 @@ impl BTreeCursor {
Ok(Some(n_overflow))
}
pub fn btree_drop(&mut self) -> Result<CursorResult<()>> {
pub fn btree_destroy(&mut self) -> Result<CursorResult<()>> {
self.move_to_root();
loop {

View File

@@ -2697,7 +2697,7 @@ impl Program {
todo!("temp databases not implemented yet.");
}
let mut cursor = Box::new(BTreeCursor::new(pager.clone(), *root));
cursor.btree_drop()?;
cursor.btree_destroy()?;
state.pc += 1;
}
Insn::DropTable { db, root: _ } => {