StoreType

public enum StoreType : Equatable
extension StoreType: CustomStringConvertible

Describes a Core Data persistent store type.

  • The SQLite database store type. The associated file URL specifies the directory for the store.

    Declaration

    Swift

    case sqlite(URL)
  • The binary store type. The associated file URL specifies the directory for the store.

    Declaration

    Swift

    case binary(URL)
  • The in-memory store type.

    Declaration

    Swift

    case inMemory

Properties

  • Returns the type string description for the store type.

    Declaration

    Swift

    public var type: String { get }

Methods

  • Note

    If the store is in-memory, then this value will be nil.

    Declaration

    Swift

    public func storeDirectory() -> URL?

    Return Value

    The file URL specifying the directory in which the store is located.