Skip to content
This repository has been archived by the owner on Nov 24, 2021. It is now read-only.

Commit

Permalink
Add additional convenience initializer
Browse files Browse the repository at this point in the history
3lvis committed May 8, 2016
1 parent 0bbb142 commit 23d9079
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Source/DATAStack.swift
Original file line number Diff line number Diff line change
@@ -96,6 +96,17 @@ import CoreData
self.modelName = modelName
}

/**
Initializes a DATAStack using the provided model name, bundle and storeType.
- parameter modelName: The name of your Core Data model (xcdatamodeld).
- parameter storeType: The store type to be used, you have .InMemory and .SQLite, the first one is memory
based and doesn't save to disk, while the second one creates a .sqlite file and stores things there.
*/
public init(modelName: String, storeType: DATAStackStoreType) {
self.modelName = modelName
self.storeType = storeType
}

/**
Initializes a DATAStack using the provided model name, bundle and storeType.
- parameter modelName: The name of your Core Data model (xcdatamodeld).

0 comments on commit 23d9079

Please sign in to comment.