Use ParseCallbacks::item_name to fix sqlite3_index_info_* types

This commit is contained in:
gwenn
2023-03-25 10:19:56 +01:00
parent fd753b14fc
commit eb7fbc57d0
6 changed files with 27 additions and 23 deletions

View File

@@ -497,6 +497,13 @@ mod bindings {
None
}
}
fn item_name(&self, original_item_name: &str) -> Option<String> {
if let Some(s) = original_item_name.strip_prefix("sqlite3_index_info_") {
Some(s.to_owned())
} else {
None
}
}
}
// Are we generating the bundled bindings? Used to avoid emitting things