DataStore
public func cachedSnapshots(for persistentIdentifiers: [SwiftData.PersistentIdentifier], editingState: SwiftData.EditingState) throws -> [SwiftData.PersistentIdentifier : Self.Snapshot]
DataStore
public func erase() throws
DataStore
public func fetchCount<T>(_ request: SwiftData.DataStoreFetchRequest<T>) throws -> Swift.Int where T : SwiftData.PersistentModel
DataStore
public func fetchIdentifiers<T>(_ request: SwiftData.DataStoreFetchRequest<T>) throws -> [SwiftData.PersistentIdentifier] where T : SwiftData.PersistentModel
DataStore
public func initializeState(for editingState: SwiftData.EditingState)
DataStore
public func invalidateState(for editingState: SwiftData.EditingState)
DataStoreConfiguration
public func validate() throws
DefaultStore
final public func deleteHistory(_ descriptor: SwiftData.HistoryDescriptor<SwiftData.DefaultHistoryTransaction>) throws
DefaultStore
final public func fetchHistory(_ descriptor: SwiftData.HistoryDescriptor<SwiftData.DefaultHistoryTransaction>) throws -> [SwiftData.DefaultHistoryTransaction]
ModelConfiguration
public func validate() throws
ModelContainer
public func erase() throws
ModelContext
public func deleteHistory<T>(_ descriptor: SwiftData.HistoryDescriptor<T>) throws where T : SwiftData.HistoryTransaction
ModelContext
public func fetchHistory<T>(_ descriptor: SwiftData.HistoryDescriptor<T>) throws -> [T] where T : SwiftData.HistoryTransaction
PersistentIdentifier
public static func identifier<T>(for storeIdentifier: Swift.String, entityName: Swift.String, primaryKey: T) throws -> SwiftData.PersistentIdentifier where T : Swift.Comparable, T : Swift.CustomStringConvertible, T : Swift.Decodable, T : Swift.Encodable, T : Swift.Hashable
Schema
final public func entity<T>(for type: T.Type) -> SwiftData.Schema.Entity? where T : SwiftData.PersistentModel
Schema
public static func entityName<T>(for type: T.Type) -> Swift.String where T : SwiftData.PersistentModel
SwiftDataError
public static func ~= (lhs: SwiftData.SwiftDataError, rhs: any Swift.Error) -> Swift.Bool