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
This commit is contained in:
talksik
2026-03-29 10:18:34 -07:00
parent 5eaa51ffcc
commit 7042b2d575
+1 -9
View File
@@ -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)