Function: emacsql-show-last-sql
emacsql-show-last-sql is an autoloaded, interactive and byte-compiled
function defined in emacsql.el.
Signature
(emacsql-show-last-sql &optional PREFIX)
Documentation
Display the compiled SQL of the s-expression SQL expression before point.
A prefix argument causes the SQL to be printed into the current buffer.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/emacsql-20261001.1544/emacsql.el
;;;###autoload
(defun emacsql-show-last-sql (&optional prefix)
"Display the compiled SQL of the s-expression SQL expression before point.
A prefix argument causes the SQL to be printed into the current buffer."
(interactive "P")
(let ((sexp (if (fboundp 'elisp--preceding-sexp)
(elisp--preceding-sexp)
(with-no-warnings
(preceding-sexp)))))
(if (emacsql-sql-p sexp)
(let ((sql (emacsql-flatten-sql sexp)))
(if prefix
(insert sql)
(emacsql-show-sql sql)))
(user-error "Invalid SQL: %S" sexp))))