Foundationis not implicitly imported anymore (you may have to add Foundation imports after upgrading)
applyToDb()now puts new objects automatically; you do not have to put them individually anymore
resolveFromDb()to explicitly fetch the target objects allowing to catch errors before starting to interact with the target objects
getUncachedIdsFromDb()for getting plain arrays from the database
removeAll()is now supported
get()for given IDs and renamed
convertannotation on an enum has no explicit database type given, its
setup.rbnow asks which project to use if there is more than one, and creates a non-empty
*.generated.swiftfile to help with code completion.
put()with variable argument list,
put(inout)for mutable structs, and
putAndReturnIDs(). Upgrade note:
put()itself no longer returns IDs.
ContiguousArrayclass, which are faster than the methods using standard arrays.
enums and other user-defined types
[UInt8]are now supported as property types.
NSError-based errors, they're all
enum ObjectBoxErrorcases now
NSStringspreviously are now created as Swift
Strings, which should reduce the number of unnecessary UTF-16/UTF-8 roundtrip conversions when Swift 5.1 arrives
// objectbox:instead of