Created
January 18, 2018 18:16
-
-
Save jmercouris/966a983aa8f0ff6dd5fe0064750504d9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defcommand bookmark-url (input) | |
"Bookmark a URL" | |
(let ((db (sqlite:connect | |
(truename (probe-file *bookmark-db-path*))))) | |
(sqlite:execute-non-query | |
db "insert into bookmarks (url) values (?)" input) | |
(sqlite:disconnect db))) | |
(defun bookmark-url (input) | |
"Bookmark a URL" | |
(let ((db (sqlite:connect | |
(truename (probe-file *bookmark-db-path*))))) | |
(sqlite:execute-non-query | |
db "insert into bookmarks (url) values (?)" input) | |
(sqlite:disconnect db))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment