improved Firefox bookmark-parsing query

now gets bookmark title from moz_bookmarks table instead of moz_places
This commit is contained in:
Ioannis G 2014-07-03 21:10:48 +03:00
parent cfe1e7745f
commit 365ca9180f

View File

@ -8,12 +8,12 @@ namespace Wox.Plugin.BrowserBookmark
{ {
public class FirefoxBookmarks public class FirefoxBookmarks
{ {
private const string queryAllBookmarks = @"SELECT url, title private const string queryAllBookmarks = @"SELECT moz_places.url, moz_bookmarks.title
FROM moz_places FROM moz_places
WHERE id in ( INNER JOIN moz_bookmarks ON (
SELECT bm.fk FROM moz_bookmarks bm WHERE bm.fk NOT NULL moz_bookmarks.fk NOT NULL AND moz_bookmarks.fk = moz_places.id
) )
ORDER BY visit_count DESC ORDER BY moz_places.visit_count DESC
"; ";
private const string dbPathFormat = "Data Source ={0};Version=3;New=False;Compress=True;"; private const string dbPathFormat = "Data Source ={0};Version=3;New=False;Compress=True;";