emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/emacsql eb3283990e 077/427: Drop emacsql-create.


From: ELPA Syncer
Subject: [nongnu] elpa/emacsql eb3283990e 077/427: Drop emacsql-create.
Date: Tue, 13 Dec 2022 02:59:30 -0500 (EST)

branch: elpa/emacsql
commit eb3283990ebbc15bffa8da17f7e77fd67070ae69
Author: Christopher Wellons <wellons@nullprogram.com>
Commit: Christopher Wellons <wellons@nullprogram.com>

    Drop emacsql-create.
---
 emacsql.el | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/emacsql.el b/emacsql.el
index c0fa338734..cd75907f7b 100644
--- a/emacsql.el
+++ b/emacsql.el
@@ -255,18 +255,6 @@ buffer. This is for debugging purposes."
            else collect (emacsql--column-to-string column) into parts
            finally (cl-return (mapconcat #'identity parts ", "))))
 
-(defun emacsql-create (conn table schema &optional if-not-exists)
-  "Create TABLE in CONN with SCHEMA."
-  (when (= 0 (length schema))
-    (error "Schema must not be empty."))
-  (emacsql-with-errors conn
-    (emacsql--send
-     conn
-     (format "CREATE TABLE %s%s (%s);"
-             (if if-not-exists "IF NOT EXISTS " "")
-             (emacsql-escape table)
-             (emacsql--schema-to-string schema)))))
-
 (defun emacsql-escape-value (value)
   "Escape VALUE for sending to SQLite."
   (let ((print-escape-newlines t))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]