Can't this all be handled in the `DB_CONNECTION_MUTATOR`? Currently it feels like you're trying to solve an Airbnb specific problem. In you custom mutator you could probably use [inspect](https://stackoverflow.com/questions/2654113/how-to-get-the-callers-method-name-in-the-called-method) to determine the context in which engine was instantiated.
[ Full content available at: https://github.com/apache/incubator-superset/pull/6015 ] This message was relayed via gitbox.apache.org for [email protected]
