Function: org-babel-sql-dbstring-mysql

org-babel-sql-dbstring-mysql is a byte-compiled function defined in ob-sql.el.gz.

Signature

(org-babel-sql-dbstring-mysql HOST PORT USER PASSWORD DATABASE)

Documentation

Make MySQL cmd 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-mysql (host port user password database)
  "Make MySQL cmd 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 password (concat "-p" (shell-quote-argument password)))
	       (when database (concat "-D" (shell-quote-argument database)))))
   " "))