Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 12 additions & 14 deletions YapDatabase/Extensions/Relationships/YapDatabaseRelationshipEdge.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,19 @@
* https://github.com/yapstudios/YapDatabase/wiki/Relationships
**/

enum {
// notify only
YDB_NotifyIfSourceDeleted = 1 << 0,
YDB_NotifyIfDestinationDeleted = 1 << 1,
// one-to-one
YDB_DeleteSourceIfDestinationDeleted = 1 << 2,
YDB_DeleteDestinationIfSourceDeleted = 1 << 3,
// one-to-many & many-to-many
YDB_DeleteSourceIfAllDestinationsDeleted = 1 << 4,
YDB_DeleteDestinationIfAllSourcesDeleted = 1 << 5,
typedef NS_OPTIONS(uint16_t, YDB_NodeDeleteRules) {
// notify only
YDB_NotifyIfSourceDeleted = 1 << 0,
YDB_NotifyIfDestinationDeleted = 1 << 1,
// one-to-one
YDB_DeleteSourceIfDestinationDeleted = 1 << 2,
YDB_DeleteDestinationIfSourceDeleted = 1 << 3,
// one-to-many & many-to-many
YDB_DeleteSourceIfAllDestinationsDeleted = 1 << 4,
YDB_DeleteDestinationIfAllSourcesDeleted = 1 << 5,
};
typedef uint16_t YDB_NodeDeleteRules;


@interface YapDatabaseRelationshipEdge : NSObject <NSCoding, NSCopying>

Expand Down