Nesting is allowed and the innermost wins, which is what a batch operation over several
connections needs: it enters one scope per connection and each iteration's reads resolve to that
connection alone.
A synchronous entry cannot load anything: the body reads the connection's catalog only if an
async entry has already loaded it, and the shared catalog otherwise. Use WithCatalogScope
when the body reads the catalog.
Run
fnwithcompanyIntegrationIDin scope.Nesting is allowed and the innermost wins, which is what a batch operation over several connections needs: it enters one scope per connection and each iteration's reads resolve to that connection alone.
A synchronous entry cannot load anything: the body reads the connection's catalog only if an async entry has already loaded it, and the shared catalog otherwise. Use WithCatalogScope when the body reads the catalog.