Function: emacsql-thread
emacsql-thread is a macro defined in emacsql.el.
Signature
(emacsql-thread CONNECTION &rest STATEMENTS)
Documentation
Thread CONNECTION through STATEMENTS.
A statement can be a list, containing a statement with its arguments.
Source Code
;; Defined in ~/.emacs.d/elpa/emacsql-20261001.1544/emacsql.el
(defmacro emacsql-thread (connection &rest statements)
"Thread CONNECTION through STATEMENTS.
A statement can be a list, containing a statement with its arguments."
(declare (indent 1))
`(let ((emacsql--conn ,connection))
(emacsql-with-transaction emacsql--conn
,@(cl-loop for statement in statements
when (vectorp statement)
collect (list 'emacsql 'emacsql--conn statement)
else
collect (append (list 'emacsql 'emacsql--conn) statement)))))