InMemoryStore
public final class InMemoryStore : StorageInterface
extension InMemoryStore: CustomDebugStringConvertible, CoreStoreDebugStringConvertible
A storage interface that is backed only in memory.
-
Initializes an
InMemoryStore
for the specified configurationDeclaration
Swift
public init(configuration: ModelConfiguration)
Parameters
configuration
an optional configuration name from the model file. If not specified, defaults to
nil
, the “Default” configuration. -
Initializes an
InMemoryStore
with the “Default” configurationDeclaration
Swift
public init()
-
The string identifier for the
NSPersistentStore
‘stype
property. ForInMemoryStore
s, this is always set toNSInMemoryStoreType
.Declaration
Swift
public static let storeType: String
-
The configuration name in the model file
Declaration
Swift
public let configuration: ModelConfiguration
-
The options dictionary for the
NSPersistentStore
. ForInMemoryStore
s, this is always set tonil
.Declaration
Swift
public let storeOptions: [AnyHashable : Any]?
-
Declaration
Swift
public var debugDescription: String { get }