mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-08 09:44:21 +01:00
chore: cargo fmt
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user