Skip to content

Commit

Permalink
closql--table-columns: Remove PREFIXED argument
Browse files Browse the repository at this point in the history
  • Loading branch information
tarsius committed Jun 1, 2024
1 parent 6ba79b5 commit 27b6d2b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions closql.el
Original file line number Diff line number Diff line change
Expand Up @@ -436,12 +436,8 @@
(and pred (closql-where-class-in pred db))
(oref-default class closql-primary-key)))

(defun closql--table-columns (db table &optional prefixed)
(mapcar (if prefixed
(let ((prefix (if (stringp prefixed) prefixed table)))
(lambda (col) (intern (format "%s:%s" prefix (cadr col)))))
#'cadr)
(emacsql db [:pragma (funcall table-info $i1)] table)))
(defun closql--table-columns (db table)
(mapcar #'cadr (emacsql db [:pragma (funcall table-info $i1)] table)))

(defun closql--db-get-version (db)
(caar (emacsql db [:pragma user-version])))
Expand Down

0 comments on commit 27b6d2b

Please sign in to comment.