Skip to content

chore: Multiple database handles

Administrator requested to merge ef/split-db-1 into main

Created by: efritz

https://github.com/sourcegraph/sourcegraph/issues/13884 requires that we connect to multiple databases in an application. This PR renames ConnectToDB to SetupGlobalConnection and creates a new version of the method dbutil.New that returns a Postgres handler instead of storing it in a global variable.

Merge request reports

Loading