From a3bed10be618589678f609f56c8953541943f080 Mon Sep 17 00:00:00 2001 From: Neil Pankey Date: Thu, 2 Jul 2020 16:03:09 -0700 Subject: [PATCH] Stub things that should be documented about albums --- Photos-version-5-database.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Photos-version-5-database.md b/Photos-version-5-database.md index fec740c..42b2380 100644 --- a/Photos-version-5-database.md +++ b/Photos-version-5-database.md @@ -26,7 +26,16 @@ Under the hood, Photos.app uses [Core Data](https://developer.apple.com/library/ ![photos-z_primarykey](https://user-images.githubusercontent.com/42419/86415227-36866c80-bc7b-11ea-8cff-46830ced9bae.png) +## Albums +**TODO** Document the following + +* [ ] Joining assets +* [ ] Smart albums (e.g. 'FetchingAlbum') + - [`ZUSERQUERYDATA` looks like an `NSPredicate`](https://nshipster.com/nspredicate/#using-nspredicate-with-core-data) +* [ ] Import sessions +* [ ] Folder hierarchy +* [ ] Sorting --- 1: This is actually a dynamically named table of the form `Z_##ASSETS`. The ## is the `Z_ENT` value for the record with `Z_NAME = 'Album'` from the `Z_PRIMARYKEY` table. It always appears to be 26 for the macOS Photos library but in [this post](https://www.forensicmike1.com/2019/05/02/ios-photos-sqlite-forensics/) it is `Z_23ASSETS` for an iOS Photos library. \ No newline at end of file