mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-18 06:24:56 +01:00
core: Rename build_select() to prepare_select()
Let's follow SQLite's naming here.
This commit is contained in:
@@ -11,7 +11,7 @@ use crate::sqlite3_ondisk::{DatabaseHeader, MIN_PAGE_CACHE_SIZE};
|
||||
use crate::util::normalize_ident;
|
||||
use crate::vdbe::{builder::ProgramBuilder, BranchOffset, Insn, Program};
|
||||
use crate::Result;
|
||||
use select::{build_select, translate_select};
|
||||
use select::{prepare_select, translate_select};
|
||||
use sqlite3_parser::ast;
|
||||
|
||||
struct LimitInfo {
|
||||
@@ -36,7 +36,7 @@ pub fn translate(
|
||||
) -> Result<Program> {
|
||||
match stmt {
|
||||
ast::Stmt::Select(select) => {
|
||||
let select = build_select(schema, &select)?;
|
||||
let select = prepare_select(schema, &select)?;
|
||||
translate_select(select)
|
||||
}
|
||||
ast::Stmt::Pragma(name, body) => translate_pragma(&name, body, database_header, pager),
|
||||
|
||||
@@ -117,7 +117,7 @@ pub struct LoopInfo {
|
||||
pub open_cursor: usize,
|
||||
}
|
||||
|
||||
pub fn build_select<'a>(schema: &Schema, select: &'a ast::Select) -> Result<Select<'a>> {
|
||||
pub fn prepare_select<'a>(schema: &Schema, select: &'a ast::Select) -> Result<Select<'a>> {
|
||||
match &select.body.select {
|
||||
ast::OneSelect::Select {
|
||||
columns,
|
||||
|
||||
Reference in New Issue
Block a user