Hello everyone!
I’m working on a tool that is dedicated to debugging SwiftData databases. It’s based on Core Data, but trying to mimic the style and match the information with SwiftData as much as possible.
Even filtering mimics the predicate syntax as much as possible. Currently, not all types are supported yet, but those that are supported behave as closely as possible to the real Predicate. It’s actually re-creating a real Predicate from the input string and then initializing NSPredicate from it. Also, SourceKitten is used for syntax highlighting and autocomplete.
Each feature is described in more detail here with information on how it is implemented.
I would be glad to hear your feedback or recommendations on improving it.
Thanks,
Oleksii