Releases: kevindelord/DKDBManager
Releases · kevindelord/DKDBManager
1.1.0
Official Release
- README Improvements
0.7.0
Cocoapods
- Fix
pod try
command.
DKDBManager
- Add Unit Test with test coverage superior than 98%.
- Add
setupCoreDataStackWithName
to improve dependency injection. - Improve Swift compatibility for
hasValidContext
,hasBeenDeleted
,doesExist
andisValidInCurrentContext
functions.
Enhancements
Add new crud
functions:
crudEntityWithDictionary:inContext:completion:
crudEntityWithDictionary:inContext:
crudEntityInContext:
crudEntitiesWithArray:inContext:
Deprecated
The following functions are now deprecated:
createEntityFromDictionary:inContext:completion:
createEntityFromDictionary:inContext:
createEntityInContext:
createEntitiesFromArray:inContext:
0.6.6
Carthage
- Add Carthage support.
DKDBManager
- Value DKDBManagerVersionNumber added.
- Value DKDBManagerVersionString added.
0.6.5
DKDBManager
- Improve log by removing useless extra log lines.
0.6.4
DKDBManager
- Now check on setup if all non-abstract model class are correctly configured as a custom class.
- Improve log on start: now display the model classes.
0.6.3
DKDBManager
- Add
entityInContext:
function. - Add
entityInDefaultContext
function.
NSManagedObjectContext
- By default,
primaryPredicateWithDictionary:
now returns a FALSEPREDICATE. Unless it is overridden, the library will always create a new entity instead of reusing old ones.
0.6.2
DKDBManager
- Add
removeAllStoredIdentifiers
function. - Add
removeDeprecatedEntitiesInContext:forClass:
function.
0.6.1
DKDBManager
- Add
removeAllStoredIdentifiersForClass:
function.
0.6.0
- Rewrite test project in Swift.
- Update Magical Record to 2.3.2 and integration as framework.
- Update global documentation.
- Improve Swift compatibility.
DKDBManager
- Add
dumpInContext:
function. - Add
dumpCountInContext:
function. - Add
cleanUp
function which also removes the stored identifiers. - Rename
entities
function intoentityClassNames
. - The
storedIdentifiers
can now be accessed as a property.
Simplify setup methods
- Add
setup
andsetupDatabaseWithName:
functions. - Change
setupDatabaseWithName:didResetDatabase:
function.
Save methods with context and block
- Remove
save
,saveToPersistentStoreAndWait
andsaveToPersistentStoreWithCompletion:
methods. - Add
saveWithBlock:
function. - Add
saveWithBlock:completion:
function. - Add
saveWithBlockAndWait:
function. - Rename
removeDeprecatedEntities
function intoremoveDeprecatedEntitiesInContext:
. - Rename
deleteAllEntities
function intodeleteAllEntitiesInContext:
. - Rename
deleteAllEntitiesForClass:
function intodeleteAllEntitiesForClass:inContext:
.
NSManagedObject Category
Create methods with context and block
CREATE
- Add
createEntityInContext:
function. - Update
createEntityFromDictionary:completion:
tocreateEntityFromDictionary:inContext:completion:
. - Update
createEntityFromDictionary:
tocreateEntityFromDictionary:inContext:
. - Update
createEntitiesFromArray:
tocreateEntitiesFromArray:inContext:
.
READ
- Add
allInContext:
andcountInContext:
functions.
UPDATE
- Update
shouldUpdateEntityWithDictionary:
toshouldUpdateEntityWithDictionary:inContext:
. - Update
updateWithDictionary:
toupdateWithDictionary:inContext:
.
DELETE
- Update
deleteIfInvalid
todeleteIfInvalidInContext:
. - Update
deleteAllEntities
todeleteAllEntitiesInContext:
. - Update
removeDeprecatedEntitiesFromArray:
toremoveDeprecatedEntitiesFromArray:inContext:
. - Remove
deleteChildEntities
function. UsedeleteEntityWithReason:inContext:
instead.