Skip to content

Commit

Permalink
epkg--override-connection-class: New variable
Browse files Browse the repository at this point in the history
  • Loading branch information
tarsius committed Aug 28, 2024
1 parent 8f51609 commit 7f7553f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lisp/epkg.el
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ again."
(schemata :initform 'epkg--db-table-schemata)
(version :initform 11)))

(defvar epkg--override-connection-class nil)

(defun epkg-db (&optional livep)
"Return the Epkg database object.
Expand All @@ -89,7 +91,7 @@ the connection to the database is live already.
If the `epkg-repository', which contains the SQLite database
file, does not exist yet, then first ask the user to clone it."
(closql-db 'epkg-database livep))
(closql-db 'epkg-database livep epkg--override-connection-class))

(cl-defmethod closql--db-prepare-storage ((_class (subclass epkg-database)))
(unless (file-exists-p epkg-repository)
Expand Down

0 comments on commit 7f7553f

Please sign in to comment.