I am looking for a way to match Brightway LCI exchanges where the database field corresponds to a certain name, like "My DB" to a given database in the project.
My use case is the following: I have several databases in my project, each potentially containing overlapping activities. Thus, they have many attributes (or fields) in common (name, reference flow, location, unit...). However, the exchanges of these activities may change. So, in addition to the typical fields we use with the match_database, I want to filter exchanges based on the database field value when performing the match. For example, I want to be able to match some exchanges with the project's database "Database 1", but specifically those for which the database field corresponds to "db-1".
The match_database method does not seem to be capable of dealing with this situation. Currently, if I do imported_db.match_database("Database 1", fields=["name", "unit", "location", "reference product"]) it could potentially match some exchanges despite them having their database field being "db-2".
Note that when importing an Excel database in Activity Browser, there is a popup requiring the user to map all database names mentioned in the exchanges with the right Brightway project database. So I guess it does something similar to my case.
How can I perform such filtering or mapping with brightway25?