diff options
| author | Daniel Kraus <daniel@kraus.my> | 2022-10-31 07:52:09 +0100 |
|---|---|---|
| committer | Ihor Radchenko <yantar92@posteo.net> | 2022-11-01 09:55:35 +0800 |
| commit | fbbc8b55cf3a39c85f8576321ec560baf4d2331a (patch) | |
| tree | d718e95bb8f20d2fd7dc85388291fdd785eeb9ba /etc/ORG-NEWS | |
| parent | 5dc8ea0abee10a787160456f74672da6ff3c3b40 (diff) | |
| download | org-mode-fbbc8b55cf3a39c85f8576321ec560baf4d2331a.tar.gz | |
ob-sql.el: Respect all params when using dbconnection
* etc/ORG-NEWS (Miscellaneous): Document the change.
* lisp/ob-sql.el (org-babel-find-db-connection-param): Make it
possible to overwrite parameters that are set from :dbconnection.
Diffstat (limited to 'etc/ORG-NEWS')
| -rw-r--r-- | etc/ORG-NEWS | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/etc/ORG-NEWS b/etc/ORG-NEWS index 6e875de..b542da3 100644 --- a/etc/ORG-NEWS +++ b/etc/ORG-NEWS @@ -457,6 +457,20 @@ The new variable name is =org-plantuml-args=. It now applies to both jar PlantUML file and executable. ** Miscellaneous +*** SQL Babel ~:dbconnection~ parameter can be mixed with other SQL Babel parameters + +Before you could either specify SQL parameters like ~:dbhost~, +~:dbuser~, ~:database~, etc or a ~:dbconnection~ parameter which looks +up all other parameters from the ~sql-connection-alist~ variable. Now +it's possible to specify a ~:dbconnection~ and additionally other +parameters that will add or overwrite the parameters coming from +~sql-connection-alist~. + +E.g. if you have a connection in your ~sql-connection-alist~ to a +server that has many databases, you don't need an entry for every +database but instead can just specify ~:database~ next to your +~:dbconnection~ parameter. + *** Post-processing code blocks can return an empty list When the result of a regular code block is nil, then that was already |
