Optional
destroyClose the connection when the callback finishes instead of returning it to the pool. This is useful if you want to ensure that the connection is not reused, for example if you ran queries that changed session options.
Optional
typeSet which replica to use. Available options are read
and write
Optional
useForce master or write replica to get connection from
Type helper for making certain fields of an object optional.