Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions definitions/Firefox_Bookmarks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,22 +50,29 @@ Sources:
ORDER BY Bookmarks.id ASC

- name: Downloads
Preamble: |
LET DownloadTypes <= dict(`downloads/destinationFileURI`='FileURI', `downloads/destinationFileName`='Filename', `downloads/metaData`='Metadata')

VQL: |
SELECT PlaceID, Content,
SELECT PlaceID, URL, Content,
get(item= DownloadTypes, field=str(str=name), default="Unknown") AS Type,
timestamp(epoch=dateAdded) AS DateAdded,
timestamp(epoch=lastModified) AS LastModified,
OSPath
FROM Rows
WHERE LastModified > DateAfter AND LastModified < DateBefore
AND Content =~ FilterRegex
AND (URL, Content) =~ FilterRegex

SQL: |
SELECT
moz_annos.place_id AS PlaceID,
moz_places.url AS URL,
moz_annos.content AS Content,
moz_anno_attributes.name,
dateAdded,
lastModified
FROM moz_annos
INNER JOIN moz_anno_attributes ON moz_annos.anno_attribute_id = moz_anno_attributes.id
INNER JOIN moz_places ON moz_places.id = moz_annos.place_id
WHERE moz_anno_attributes.name IN ('downloads/destinationFileURI','downloads/destinationFileName','downloads/metaData')
ORDER BY moz_annos.dateAdded ASC
Loading