db: Add sql.TxOptions to basestore
Created by: efritz
Closes https://github.com/sourcegraph/sourcegraph/issues/14044.
Updated:
Previously this PR added sql options at the time the transaction is opened. Instead, we should be supplying them at the time the database handle is created. This seems like a more appropriate solution and should enable @asdine to choose the correct transaction options when the store powering the worker is created.