Function: emacsql-quote-scalar
emacsql-quote-scalar is a byte-compiled function defined in
emacsql-compiler.el.
Signature
(emacsql-quote-scalar STRING)
Documentation
Single-quote (scalar) STRING for use in a SQL expression.
Source Code
;; Defined in ~/.emacs.d/elpa/emacsql-20261001.1544/emacsql-compiler.el
(defun emacsql-quote-scalar (string)
"Single-quote (scalar) STRING for use in a SQL expression."
(with-temp-buffer
(insert string)
(goto-char (point-min))
(while (re-search-forward "'" nil t)
(replace-match "''"))
(goto-char (point-min))
(insert "'")
(goto-char (point-max))
(insert "'")
(buffer-string)))