mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 10:08:20 +00:00
fix
This commit is contained in:
parent
dcc99148d2
commit
5861684d1c
1 changed files with 9 additions and 3 deletions
12
core/lib.rs
12
core/lib.rs
|
@ -96,9 +96,15 @@ impl Database {
|
|||
}
|
||||
"index" => {
|
||||
let root_page: i64 = row.get::<i64>(3)?;
|
||||
let sql: &str = row.get::<&str>(4)?;
|
||||
let index = schema::Index::from_sql(sql, root_page as usize)?;
|
||||
schema.add_index(Rc::new(index));
|
||||
match row.get::<&str>(4) {
|
||||
Ok(sql) => {
|
||||
let index =
|
||||
schema::Index::from_sql(sql, root_page as usize)?;
|
||||
schema.add_index(Rc::new(index));
|
||||
}
|
||||
_ => continue,
|
||||
// TODO parse auto index structures
|
||||
}
|
||||
}
|
||||
_ => continue,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue