From 7042b2d57547cc9a0cac89a593379bf7c8f6923d Mon Sep 17 00:00:00 2001 From: talksik Date: Sun, 29 Mar 2026 10:18:34 -0700 Subject: [PATCH] cleanup workaround for neon db We are now using the llink database within our gcp datbase instances, so likely won't be needing this workaround --- go/internal/db/connect.go | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/go/internal/db/connect.go b/go/internal/db/connect.go index 042324d..672371f 100644 --- a/go/internal/db/connect.go +++ b/go/internal/db/connect.go @@ -5,7 +5,6 @@ import ( "log/slog" "os" - "github.com/jackc/pgx/v5" "github.com/jackc/pgx/v5/pgxpool" ) @@ -26,14 +25,7 @@ func Init() { os.Exit(1) } - config, err := pgxpool.ParseConfig(connString) - if err != nil { - slog.Error("unable to parse connection string", "error", err) - os.Exit(1) - } - config.ConnConfig.DefaultQueryExecMode = pgx.QueryExecModeCacheDescribe - - dbpool, err := pgxpool.NewWithConfig(context.Background(), config) + dbpool, err := pgxpool.New(context.Background(), connString) if err != nil { slog.Error("unable to create connection pool", "error", err) os.Exit(1)