mirror of
https://github.com/isar/rusqlite.git
synced 2025-09-16 12:42:18 +08:00
Use ParseCallbacks::item_name to fix sqlite3_index_info_* types
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user