Function: org-babel-sql-dbstring-saphana
org-babel-sql-dbstring-saphana is a byte-compiled function defined in
ob-sql.el.gz.
Signature
(org-babel-sql-dbstring-saphana HOST PORT INSTANCE USER PASSWORD DATABASE)
Documentation
Make SAP HANA 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-saphana (host port instance user password database)
"Make SAP HANA command line args for database connection.
Pass nil to omit that arg."
(mapconcat #'identity
(delq nil
(list (and host port (format "-n %s:%s"
(shell-quote-argument host)
port))
(and host (not port) (format "-n %s" (shell-quote-argument host)))
(and instance (format "-i %d" instance))
(and user (format "-u %s" (shell-quote-argument user)))
(and password (format "-p %s"
(shell-quote-argument password)))
(and database (format "-d %s" (shell-quote-argument database)))))
" "))