Skip to content

Releases: Data-swift/ManagedModels

Importing

01 Oct 19:51
Compare
Choose a tag to compare

This now works with a more complex schema.

It fixes issue #9, another great report by @radianttap 👍

When toOne's are set, this now inserts objects into the peers context, if it doesn't have one itself yet.

Configurable

30 Sep 15:33
b4991dc
Compare
Choose a tag to compare

Doesn't require a configuration anymore. Will create a default one if the array is empty.

Also expose the store descriptions under the configurations property. Though that might change.

Stored

30 Sep 12:09
82846f7
Compare
Choose a tag to compare
  • do not generate class func fetchRequest in the macro, but just add it as an extension function
    • also provide a nicer one that takes a sort, Address.fetchRequest(sortBy: \.street)
  • fixes a bug in ModelConfiguration that overrode provided pathes

Details

30 Sep 01:38
Compare
Choose a tag to compare

Fixes w/ comments in the macro source, properly deal w/ forced unwrapped toOne's, and better SwiftData compat.

Codable Keys and Values

29 Sep 16:39
a4165f3
Compare
Choose a tag to compare

Thanks to @radianttap hints, the use of @NSManaged could be dropped. The way property storage works is now more similar to SwiftData and supports Codable Swift types (untested), RawRepresentables and a lot more Swift base types (like Int? and such.)

Also the initial value can now be provided inline.

Initially

25 Sep 16:31
064d17c
Compare
Choose a tag to compare
Initially Pre-release
Pre-release

First drop, have fun!