Stub things that should be documented about albums

Neil Pankey
2020-07-02 16:03:09 -07:00
parent 34a855e48a
commit a3bed10be6

@@ -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
---
<a name="assets-join-table">1</a>: 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.