Skip to content

Releases: kevindelord/DKDBManager

1.1.0

28 Jun 16:13
Compare
Choose a tag to compare
  • Migrate to Swift 3.
  • Thread safe access to stored identifiers.
  • Minimum Deployment Target set to iOS 8.0.

Official Release

06 Jul 08:50
Compare
Choose a tag to compare
  • README Improvements

0.7.0

28 Jun 13:09
Compare
Choose a tag to compare

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 and isValidInCurrentContext 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

16 Jun 11:15
Compare
Choose a tag to compare

Carthage

  • Add Carthage support.

DKDBManager

  • Value DKDBManagerVersionNumber added.
  • Value DKDBManagerVersionString added.

0.6.5

28 Jun 13:25
Compare
Choose a tag to compare

DKDBManager

  • Improve log by removing useless extra log lines.

0.6.4

28 Jun 13:26
Compare
Choose a tag to compare

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

28 Jun 13:26
Compare
Choose a tag to compare

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

28 Jun 13:26
Compare
Choose a tag to compare

DKDBManager

  • Add removeAllStoredIdentifiers function.
  • Add removeDeprecatedEntitiesInContext:forClass: function.

0.6.1

28 Jun 13:26
Compare
Choose a tag to compare

DKDBManager

  • Add removeAllStoredIdentifiersForClass: function.

0.6.0

28 Jun 13:27
Compare
Choose a tag to compare
  • 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 into entityClassNames.
  • The storedIdentifiers can now be accessed as a property.

Simplify setup methods

  • Add setup and setupDatabaseWithName: functions.
  • Change setupDatabaseWithName:didResetDatabase: function.

Save methods with context and block

  • Remove save, saveToPersistentStoreAndWait and saveToPersistentStoreWithCompletion: methods.
  • Add saveWithBlock: function.
  • Add saveWithBlock:completion: function.
  • Add saveWithBlockAndWait: function.
  • Rename removeDeprecatedEntities function into removeDeprecatedEntitiesInContext:.
  • Rename deleteAllEntities function into deleteAllEntitiesInContext:.
  • Rename deleteAllEntitiesForClass: function into deleteAllEntitiesForClass:inContext:.

NSManagedObject Category

Create methods with context and block

CREATE
  • Add createEntityInContext:function.
  • Update createEntityFromDictionary:completion: to createEntityFromDictionary:inContext:completion:.
  • Update createEntityFromDictionary: to createEntityFromDictionary:inContext:.
  • Update createEntitiesFromArray: to createEntitiesFromArray:inContext:.
READ
  • Add allInContext: and countInContext: functions.
UPDATE
  • Update shouldUpdateEntityWithDictionary: to shouldUpdateEntityWithDictionary:inContext:.
  • Update updateWithDictionary: to updateWithDictionary:inContext:.
DELETE
  • Update deleteIfInvalid to deleteIfInvalidInContext:.
  • Update deleteAllEntities to deleteAllEntitiesInContext:.
  • Update removeDeprecatedEntitiesFromArray: to removeDeprecatedEntitiesFromArray:inContext:.
  • Remove deleteChildEntities function. Use deleteEntityWithReason:inContext: instead.

External links