Bot releases are visible (Hide)
Published by 3lvis over 4 years ago
Published by 3lvis over 4 years ago
Published by 3lvis over 5 years ago
Published by 3lvis over 5 years ago
public class func changes...
(@petkrein)Published by 3lvis about 6 years ago
Published by 3lvis about 6 years ago
Published by 3lvis about 6 years ago
Before you could set insert
, update
and delete
operations and that worked for both parents and children, now you have more control and can also decide if children follow these rules using insertRelationships
, updateRelationships
and deleteRelationships
.
If you were using the .insert
, .update
, or .delete
options now you'll also need to set .insertRelationships
, .updateRelationships
or . deleteRelationships
based on what are your needs.
.all
It's a feature that allows you to have more control over what happens when using Sync, you can then tell sync to only do inserts and updates, or only do inserts and deletes and so on.
Looks like this:
dataStack.sync(updated, inEntityNamed: "User", operations: [.insert, .update, .delete, .deleteRelationships], completion: nil)
Published by 3lvis about 6 years ago
Extended operations was a breaking change, it didn't break the compilation but it broke functionality, this release aims for fix that, I'll reintroduce the feature in a separate major release: https://github.com/3lvis/Sync/issues/497
Published by 3lvis about 6 years ago
Fixes an issue with forcing all requests to work in "isTesting" mode, meaning synchronously. https://github.com/3lvis/Sync/pull/522
Introduced an extension to FileManager
to get the directory URL where the sqlite file is stored. Since it can be different when running on device or in unit tests (because of sandboxing reasons we switch between caches folder and directory when needed). https://github.com/3lvis/Sync/commit/d970043d47b92b8be01d38b499ba7df7e1e2368c
FileManager.sqliteDirectoryURL
Published by 3lvis about 6 years ago
Published by 3lvis over 6 years ago
Published by 3lvis over 6 years ago
Published by 3lvis over 6 years ago
Annotates the background context with a name to avoid calling it when other contexts are saved https://github.com/3lvis/Sync/pull/473 https://github.com/3lvis/DATAStack/issues/111
Adds support for the new UUID (both insertion and export) https://github.com/3lvis/Sync/pull/472
Published by 3lvis over 6 years ago
Fixes a crash in to-many relationships #467
Fixes an issue with duplicated primary keys #471 (@batjo)
Before the following JSON would create 6 body entries, now is only 3.
[{
"id":0,
"title":"story 1",
"comments":[{
"body":"comment 1"
},{
"body":"comment 2"
},{
"body":"comment 3"
}]
},
{
"id":1,
"title":"story 2",
"comments":[{
"body":"comment 1"
},{
"body":"comment 2"
},{
"body":"comment 3"
}]
}]
Fixes an issue where sending empty or null wouldn't remove the element #459
Added a code of conduct #468
Added support for extended operation options #433
Before you could set insert
, update
and delete
operations and that worked for both parents and children, now you have more control and can also decide if children follow these rules using insertRelationships
, updateRelationships
and deleteRelationships
.
Published by 3lvis almost 7 years ago
Published by 3lvis almost 7 years ago
Published by 3lvis about 7 years ago
Published by 3lvis about 7 years ago
Xcode 9 and Swift 4 support.
Published by 3lvis about 7 years ago