mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-23 08:55:40 +01:00
DROP TABLE: renamed BTreeCusor::btree_drop to BTreeCursor::btree_destroy
this more closely matches semantics
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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: _ } => {
|
||||
|
||||
Reference in New Issue
Block a user