Skip to content

Commit

Permalink
Added query for UUID from fingerprint, #1516
Browse files Browse the repository at this point in the history
  • Loading branch information
RhetTbull committed Apr 16, 2024
1 parent c617c44 commit 098c4b5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions osxphotos/queries/uuid_from_fingerprint.sql.mako
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
-- Get UUID from asset table given a master fingerprint
-- There may be more than one asset with the same master fingerprint
-- Takes a single parameter: the master fingerprint
SELECT ${asset_table}.ZUUID
FROM ${asset_table}
LEFT JOIN ZADDITIONALASSETATTRIBUTES ON ZADDITIONALASSETATTRIBUTES.ZASSET = ${asset_table}.Z_PK
WHERE ZADDITIONALASSETATTRIBUTES.ZMASTERFINGERPRINT = ?;

0 comments on commit 098c4b5

Please sign in to comment.