Simplify get-bookmarks

This commit is contained in:
Tom Willemsen 2013-03-23 17:57:35 +01:00
parent 2a37c88b34
commit 50bb0f58ea

View file

@ -71,14 +71,8 @@
(defun get-bookmarks () (defun get-bookmarks ()
"Get a list of all bookmarks. "Get a list of all bookmarks.
The result contains the url and the name of the bookmark." The result contains the url, name and the description of the bookmark."
(let ((statement (execute-to-list *db* "select url, name, description from bookmark"))
(prepare-statement *db* "select url, name from bookmark")))
(loop
while (step-statement statement)
collect (list (statement-column-value statement 0)
(statement-column-value statement 1))
finally (finalize-statement statement))))
(defun get-db-location () (defun get-db-location ()
"Get the location of the database." "Get the location of the database."