mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 10:08:20 +00:00
core: Move result row to ProgramState
Move result row to `ProgramState` to mimic what SQLite does where `Vdbe` struct has a `pResultRow` member. This makes it easier to deal with result lifetime, but more importantly, eventually lazily parse values at the edges of the API.
This commit is contained in:
parent
0012e9d556
commit
c210821100
20 changed files with 230 additions and 211 deletions
|
@ -34,7 +34,8 @@ pub fn parse_schema_rows(
|
|||
let mut automatic_indexes = Vec::new();
|
||||
loop {
|
||||
match rows.step()? {
|
||||
StepResult::Row(row) => {
|
||||
StepResult::Row => {
|
||||
let row = rows.row().unwrap();
|
||||
let ty = row.get::<&str>(0)?;
|
||||
if ty != "table" && ty != "index" {
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue