Foundation
is not implicitly imported anymore (you may have to add Foundation imports after upgrading)sync
annotationapplyToDb()
now puts new objects automatically; you do not have to put them individually anymoreresolved
and canInteractWithDb
resolveFromDb()
to explicitly fetch the target objects allowing to catch errors before starting to interact with the target objectsgetUncachedFromDb()
and getUncachedIdsFromDb()
for getting plain arrays from the databaseremoveAll()
is now supportedget()
for given IDs and renamed dictionaryWithEntities()
to getAsDictionary()
convert
annotation on an enum has no explicit database type given, its RawType
is used.setup.rb
now asks which project to use if there is more than one, and creates a non-empty *.generated.swift
file 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.ContiguousArray
class, which are faster than the methods using standard arrays.findIds()
, visit()
/forEach()
. Added remove()
for queries. enum
s and other user-defined typesData
and [UInt8]
are now supported as property types.NSError
-based errors, they're all enum ObjectBoxError
cases nowNSStrings
previously are now created as Swift String
s, which should reduce the number of unnecessary UTF-16/UTF-8 roundtrip conversions when Swift 5.1 arrivessetup.rb
.// objectbox:
instead of // sourcery: