Commit graph

6 commits

Author SHA1 Message Date
57f06ec8c9 Remove db as a global variable
There's no need for it to be a global variable.
2012-12-28 01:46:15 +01:00
f71c70ca7b Define a main function
It looks somewhat cleaner.
2012-12-28 01:42:21 +01:00
59af3a13f9 Don't bail when a tag doesn't exist yet
Add the tag to the database if `first-result' returns nothing.
2012-12-28 01:39:16 +01:00
908bbc3cfb Use a transaction when adding new bookmarks
During testing it was discovered that the `first-result' procedure
throws an exception, which left the database in a somewhat
inconsistent state, the bookmark had been added, but (at least one of)
the tags weren't added.  This should make it all succeed or all fail.
2012-12-28 01:00:26 +01:00
10d453e5d7 Update linkwave
* Add parsing of command line arguments, if the first argument starts
  with "http://" assume it's a new bookmark and save it to the
  database.

* Add adding bookmarks to the database.

* linkwave.scm (string-no-null): Only try to remove the final null
  byte if the string is longer than 0 characters and only if the last
  character _is_ a null character.
2012-12-27 03:08:55 +01:00
77c7dbaa9a Initial commit 2012-12-24 01:27:14 +01:00