[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/emacsql b4d5ef41fe 410/427: make: Don't require pg.el to b
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/emacsql b4d5ef41fe 410/427: make: Don't require pg.el to be available to build and test |
Date: |
Tue, 13 Dec 2022 03:00:24 -0500 (EST) |
branch: elpa/emacsql
commit b4d5ef41fec34908b3fb435707d3fad534a3cfc3
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
make: Don't require pg.el to be available to build and test
If it isn't available, a handful of warnings are shown, but
compilation and testing continues, while at runtime failure
is now delayed until `emacsql-pg' is used.
---
emacsql-pg.el | 3 ++-
tests/emacsql-external-tests.el | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/emacsql-pg.el b/emacsql-pg.el
index 14abf8c74e..307d9112ce 100644
--- a/emacsql-pg.el
+++ b/emacsql-pg.el
@@ -19,7 +19,7 @@
;;; Code:
-(require 'pg)
+(require 'pg nil t)
(require 'eieio)
(require 'cl-lib)
(require 'cl-generic)
@@ -40,6 +40,7 @@
(cl-defun emacsql-pg (dbname user &key
(host "localhost") (password "") (port 5432)
debug)
"Connect to a PostgreSQL server using pg.el."
+ (require 'pg)
(let* ((pgcon (pg:connect dbname user password host port))
(connection (make-instance 'emacsql-pg-connection
:process (pgcon-process pgcon)
diff --git a/tests/emacsql-external-tests.el b/tests/emacsql-external-tests.el
index 781efc29fb..98bf4d7f92 100644
--- a/tests/emacsql-external-tests.el
+++ b/tests/emacsql-external-tests.el
@@ -10,7 +10,7 @@
(require 'emacsql-sqlite)
(require 'emacsql-psql)
(require 'emacsql-mysql)
-(require 'emacsql-pg)
+(when (require 'pg nil t) (require 'emacsql-pg))
(defvar emacsql-tests-timeout 4
"Be aggressive about not waiting on subprocesses in unit tests.")
- [nongnu] elpa/emacsql 2fa32d2ab7 395/427: Create new log buffer if existing one isn't live anymore, (continued)
- [nongnu] elpa/emacsql 2fa32d2ab7 395/427: Create new log buffer if existing one isn't live anymore, ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 374726060d 385/427: Fix buffer struct allocation size (fixes #91), ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql d5c37d905d 379/427: Put emacs-version in path for out-of-package binary, ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 1ce92a6f4a 397/427: No longer require emacsql-psql in emacsql-pg, ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql d03c1a606f 392/427: Include optional .config.mk in Makefile, ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 6622516e15 393/427: Update library headers, ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql b405d99aed 408/427: make: Don't use LDFLAGS to set Emacs load-path, ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql b907279bab 418/427: Fix docstring of emacsql-sqlite-condition-alist, ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 9ee397b2be 413/427: Whitespace cosmetics, ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql d3d76ea72a 409/427: make: Use essentially same Makefile as for other packages I maintain, ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql b4d5ef41fe 410/427: make: Don't require pg.el to be available to build and test,
ELPA Syncer <=
- [nongnu] elpa/emacsql 5818000c7d 412/427: make: Update pg repository url, ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 0da3f06e89 416/427: Fix docstring typo, ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 20cdad6fe6 417/427: Include sqlite error code in error data, ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 1becb00945 419/427: Define a few constants as such, ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 40c41d0d97 421/427: Release version 3.1.0, ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql bfbd0c3a73 422/427: Resume development, ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 5c4aa1030b 415/427: Do not warn about missing pg functions, ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql be95788334 214/427: Use global timeout in tests., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 944de63e9d 298/427: Add functions to fix vector indentation., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql e061847083 302/427: Improve emacsql-fix-vector-indentation., ELPA Syncer, 2022/12/13