pub fn get_function_hash_db(db: &MirageDb, function_id: i64) -> Option<String>Expand description
Get the function hash for path caching (backend-agnostic)
This is the main entry point for getting function hashes. It works with both SQLite and geometric backends.
For SQLite backend: returns the stored hash if available For geometric backend: always returns None (Magellan manages its own caching)
§Arguments
db- Database reference (works with both backends)function_id- ID of the function
§Returns
Some(hash)- The function hash if available (SQLite only)None- Hash not available or geometric backend
§Examples
if let Some(hash) = get_function_hash_db(&db, 123) {
println!("Hash: {}", hash);
}