Function: org-babel-sql-dbstring-postgresql
org-babel-sql-dbstring-postgresql is a byte-compiled function defined
in ob-sql.el.gz.
Signature
(org-babel-sql-dbstring-postgresql HOST PORT USER DATABASE)
Documentation
Make PostgreSQL command line args for database connection.
Pass nil to omit that arg.
Source Code
;; Defined in /usr/src/emacs/lisp/org/ob-sql.el.gz
(defun org-babel-sql-dbstring-postgresql (host port user database)
"Make PostgreSQL command line args for database connection.
Pass nil to omit that arg."
(mapconcat
#'identity
(delq nil
(list (when host (concat "-h" (shell-quote-argument host)))
(when port (format "-p%d" port))
(when user (concat "-U" (shell-quote-argument user)))
(when database (concat "-d" (shell-quote-argument database)))))
" "))