From 4d705da70c319ab84354b4c0d0d5249162f412c4 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 12 Dec 2024 23:18:00 +0000 Subject: [PATCH] gnu: Add go-github-com-jackc-pgconn. * gnu/packages/golang-xyz.scm (go-github-com-jackc-pgconn): New variable. Change-Id: I2666e06631f56ff7534fde336c3556a9740ff68a --- gnu/packages/golang-xyz.scm | 41 +++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 1d779bff8bfb9813ce0e85320964b0709d778525..856c3415ea98034354f022e3e6523bd59f029b7e 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -4719,6 +4719,47 @@ implementation in https://github.com/jackc/pgx.") (list #:import-path "github.com/jackc/chunkreader/v2")))) +(define-public go-github-com-jackc-pgconn + (package + (name "go-github-com-jackc-pgconn") + (version "1.14.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jackc/pgconn") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0rqx0y9k6g8ydcpciv3k246hfd5am4yw4jg3cbq4wlfny01ksh3y")))) + (build-system go-build-system) + (arguments + (list + #:tests? #f ; requiring running PostgreSQL server + #:import-path "github.com/jackc/pgconn")) + (native-inputs + (list go-github-com-stretchr-testify)) + (propagated-inputs + (list go-github-com-jackc-chunkreader-v2 + go-github-com-jackc-pgio + go-github-com-jackc-pgmock + go-github-com-jackc-pgpassfile + go-github-com-jackc-pgproto3-v2 + go-github-com-jackc-pgservicefile + go-golang-org-x-crypto + go-golang-org-x-text)) + (home-page "https://github.com/jackc/pgconn") + (synopsis "Low-level PostgreSQL database driver") + (description + "Package pgconn is a low-level PostgreSQL database driver. It operates +at nearly the same level as the C library libpq. + +It is primarily intended to serve as the foundation for higher level libraries +such as @url{https://github.com/jackc/pgx}. Applications should handle normal +queries with a higher level library and only use pgconn directly when required +for low-level access to PostgreSQL functionality.") + (license license:expat))) + (define-public go-github-com-jackc-pgio (package (name "go-github-com-jackc-pgio")