chore: cargo fmt

This commit is contained in:
Levy A.
2025-01-13 21:31:33 -03:00
parent eff5de50c5
commit 2f2c96fa2c
2 changed files with 7 additions and 13 deletions

View File

@@ -150,11 +150,7 @@ fn epilogue(
/// Main entry point for emitting bytecode for a SQL query
/// Takes a query plan and generates the corresponding bytecode program
pub fn emit_program(
program: &mut ProgramBuilder,
plan: Plan,
syms: &SymbolTable,
) -> Result<()> {
pub fn emit_program(program: &mut ProgramBuilder, plan: Plan, syms: &SymbolTable) -> Result<()> {
match plan {
Plan::Select(plan) => emit_program_for_select(program, plan, syms),
Plan::Delete(plan) => emit_program_for_delete(program, plan, syms),
@@ -272,12 +268,7 @@ fn emit_program_for_delete(
}
// Initialize cursors and other resources needed for query execution
init_loop(
program,
&mut t_ctx,
&plan.source,
&OperationMode::DELETE,
)?;
init_loop(program, &mut t_ctx, &plan.source, &OperationMode::DELETE)?;
// Set up main query execution loop
open_loop(

View File

@@ -8,13 +8,16 @@ use crate::error::SQLITE_CONSTRAINT_PRIMARYKEY;
use crate::schema::BTreeTable;
use crate::util::normalize_ident;
use crate::vdbe::BranchOffset;
use crate::Result;
use crate::{
schema::{Column, Schema},
translate::expr::translate_expr,
vdbe::{builder::{CursorType, ProgramBuilder}, insn::Insn},
vdbe::{
builder::{CursorType, ProgramBuilder},
insn::Insn,
},
SymbolTable,
};
use crate::Result;
use super::emitter::Resolver;