Persistent Store Types

Persist data through the available store types.

Topics

Constants

NSSQLiteStoreType

The SQLite database store type.

NSXMLStoreType

The XML store type.

NSBinaryStoreType

The binary store type.

NSInMemoryStoreType

The in-memory store type.

See Also

Configuring Persistent Stores

- addPersistentStoreWithType:configuration:URL:options:error:

Adds a new persistent store of a specified type at a given location, and returns the new store.

- addPersistentStoreWithDescription:completionHandler:

Adds a new persistent store of a specified description, and returns the new store.

- setURL:forPersistentStore:

Sets the URL for a given persistent store.

- removePersistentStore:error:

Removes a given persistent store.

- destroyPersistentStoreAtURL:withType:options:error:

Deletes (or truncates) the target persistent store in accordance with the store class' requirements.

- migratePersistentStore:toURL:options:withType:error:

Moves a persistent store to a new location, changing the storage type if necessary.

persistentStores

The persistent stores associated with the coordinator.

- persistentStoreForURL:

Returns the persistent store for the specified URL.

- URLForPersistentStore:

Returns the URL for a given persistent store.

name

Name of the coordinator.

Store Options

Use options dictionary keys to specify store behavior and characteristics.