[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org 733cb9614c 14/17: * lisp/ob-sqlite.el: Add support
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org 733cb9614c 14/17: * lisp/ob-sqlite.el: Add support for :prologue/:epilogue parameters |
Date: |
Thu, 19 Oct 2023 06:58:52 -0400 (EDT) |
branch: externals/org
commit 733cb9614cee1e4315e6ee035762f41797ab61bd
Author: Ihor Radchenko <yantar92@posteo.net>
Commit: Ihor Radchenko <yantar92@posteo.net>
* lisp/ob-sqlite.el: Add support for :prologue/:epilogue parameters
(org-babel-expand-body:sqlite):
---
lisp/ob-sqlite.el | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/lisp/ob-sqlite.el b/lisp/ob-sqlite.el
index 7510e5158c..07a4326a2a 100644
--- a/lisp/ob-sqlite.el
+++ b/lisp/ob-sqlite.el
@@ -57,8 +57,15 @@
(defun org-babel-expand-body:sqlite (body params)
"Expand BODY according to the values of PARAMS."
- (org-babel-sql-expand-vars
- body (org-babel--get-vars params) t))
+ (let ((prologue (cdr (assq :prologue params)))
+ (epilogue (cdr (assq :epilogue params))))
+ (mapconcat 'identity
+ (list
+ prologue
+ (org-babel-sql-expand-vars
+ body (org-babel--get-vars params) t)
+ epilogue)
+ "\n")))
(defvar org-babel-sqlite3-command "sqlite3")
- [elpa] externals/org updated (627097c7d3 -> 46a52a5708), ELPA Syncer, 2023/10/19
- [elpa] externals/org 3bffa96448 06/17: * lisp/ob-dot.el: Add support for :prologue/:epilogue parameters, ELPA Syncer, 2023/10/19
- [elpa] externals/org 936290fe18 07/17: * lisp/ob-emacs-lisp.el: Add support for :prologue/:epilogue parameters, ELPA Syncer, 2023/10/19
- [elpa] externals/org 312deaa13a 03/17: * lisp/ob-C.el: Add support for :prologue/:epilogue parameters, ELPA Syncer, 2023/10/19
- [elpa] externals/org f0a2531bb4 10/17: * lisp/ob-latex.el: Add support for :prologue/:epilogue parameters, ELPA Syncer, 2023/10/19
- [elpa] externals/org 6887851401 11/17: * lisp/ob-lilypond.el: Add support for :prologue/:epilogue parameters, ELPA Syncer, 2023/10/19
- [elpa] externals/org ab4ec726e5 13/17: * lisp/ob-org.el: Add support for :prologue/:epilogue parameters, ELPA Syncer, 2023/10/19
- [elpa] externals/org 13353f1fa3 16/17: org-fold-hide-drawer-all: Make interactive, ELPA Syncer, 2023/10/19
- [elpa] externals/org 733cb9614c 14/17: * lisp/ob-sqlite.el: Add support for :prologue/:epilogue parameters,
ELPA Syncer <=
- [elpa] externals/org b3c8a7c360 02/17: * lisp/org-element.el (org-element-entity-parser): Add comment, ELPA Syncer, 2023/10/19
- [elpa] externals/org e34d7781f0 01/17: org-element-entity-parser: Refactor entity regexp using `rx', ELPA Syncer, 2023/10/19
- [elpa] externals/org be59f11435 05/17: * lisp/ob-calc.el: Add support for :prologue/:epilogue parameters, ELPA Syncer, 2023/10/19
- [elpa] externals/org 67bd4b0a36 08/17: * lisp/ob-fortran.el: Add support for :prologue/:epilogue parameters, ELPA Syncer, 2023/10/19
- [elpa] externals/org 1f0eaefa52 04/17: * lisp/ob-awk.el: Add support for :prologue/:epilogue parameters, ELPA Syncer, 2023/10/19
- [elpa] externals/org 92b69d4331 09/17: * lisp/ob-java.el: Add support for :prologue/:epilogue parameters, ELPA Syncer, 2023/10/19
- [elpa] externals/org 320b0e5b1f 12/17: * lisp/ob-lisp.el: Add support for :prologue/:epilogue parameters, ELPA Syncer, 2023/10/19
- [elpa] externals/org c77e7f9c8a 15/17: * etc/ORG-NEWS (=UNNUMBERED= property ...): Add reference to the manual, ELPA Syncer, 2023/10/19
- [elpa] externals/org 46a52a5708 17/17: * lisp/ob-sqlite.el: Document all the function arguments, ELPA Syncer, 2023/10/19