Revert "chore: Implement joins with golang templates (#6429)" (#6560)

This reverts commit 8b125d6c5d.
This commit is contained in:
Kyle Carberry
2023-03-10 10:39:02 -06:00
committed by GitHub
parent a8433b18e4
commit 7eb2c2ff6d
36 changed files with 660 additions and 894 deletions
+1 -5
View File
@@ -13,16 +13,12 @@ import (
"github.com/coder/coder/coderd/database/postgres"
)
func UsingRealDatabase() bool {
return os.Getenv("DB") != ""
}
func NewDB(t *testing.T) (database.Store, database.Pubsub) {
t.Helper()
db := dbfake.New()
pubsub := database.NewPubsubInMemory()
if UsingRealDatabase() {
if os.Getenv("DB") != "" {
connectionURL := os.Getenv("CODER_PG_CONNECTION_URL")
if connectionURL == "" {
var (