diff --git a/backend/cmd/clipper/main.go b/backend/cmd/clipper/main.go index aea8605..6d7521f 100644 --- a/backend/cmd/clipper/main.go +++ b/backend/cmd/clipper/main.go @@ -12,7 +12,7 @@ import ( awsconfig "github.com/aws/aws-sdk-go-v2/config" "github.com/aws/aws-sdk-go-v2/credentials" "github.com/aws/aws-sdk-go-v2/service/s3" - "github.com/jackc/pgx/v4" + "github.com/jackc/pgx/v4/pgxpool" "github.com/kkdai/youtube/v2" ) @@ -30,7 +30,7 @@ func main() { } // Create a store - dbConn, err := pgx.Connect(ctx, config.DatabaseURL) + dbConn, err := pgxpool.Connect(ctx, config.DatabaseURL) if err != nil { log.Fatal(err) } diff --git a/backend/go.mod b/backend/go.mod index 8dfedce..651c167 100644 --- a/backend/go.mod +++ b/backend/go.mod @@ -42,6 +42,7 @@ require ( github.com/jackc/pgproto3/v2 v2.2.0 // indirect github.com/jackc/pgservicefile v0.0.0-20200714003250-2b9c44734f2b // indirect github.com/jackc/pgtype v1.9.0 // indirect + github.com/jackc/puddle v1.2.0 // indirect github.com/klauspost/compress v1.13.6 // indirect github.com/lib/pq v1.10.4 // indirect github.com/mattn/go-isatty v0.0.14 // indirect diff --git a/backend/go.sum b/backend/go.sum index 68963fc..a8aba53 100644 --- a/backend/go.sum +++ b/backend/go.sum @@ -380,6 +380,7 @@ github.com/jackc/pgx/v4 v4.14.0/go.mod h1:jT3ibf/A0ZVCp89rtCIN0zCJxcE74ypROmHEZY github.com/jackc/puddle v0.0.0-20190413234325-e4ced69a3a2b/go.mod h1:m4B5Dj62Y0fbyuIc15OsIqK0+JU8nkqQjsgx7dvjSWk= github.com/jackc/puddle v0.0.0-20190608224051-11cab39313c9/go.mod h1:m4B5Dj62Y0fbyuIc15OsIqK0+JU8nkqQjsgx7dvjSWk= github.com/jackc/puddle v1.1.3/go.mod h1:m4B5Dj62Y0fbyuIc15OsIqK0+JU8nkqQjsgx7dvjSWk= +github.com/jackc/puddle v1.2.0 h1:DNDKdn/pDrWvDWyT2FYvpZVE81OAhWrjCv19I9n108Q= github.com/jackc/puddle v1.2.0/go.mod h1:m4B5Dj62Y0fbyuIc15OsIqK0+JU8nkqQjsgx7dvjSWk= github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k= github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo=