GPKGUniqueConstraint
Objective-C
@interface GPKGUniqueConstraint : GPKGConstraint
Swift
class GPKGUniqueConstraint : GPKGConstraint
Table unique constraint for one or more columns
-
Columns included in the unique constraint
Declaration
Objective-C
@property (nonatomic, strong) NSMutableArray<GPKGUserColumn *> *columns;
Swift
var columns: NSMutableArray! { get set }
-
Initialize
Declaration
Objective-C
- (instancetype)init;
Swift
init!()
-
Initialize
Declaration
Objective-C
- (instancetype)initWithName:(NSString *)name;
Swift
init!(name: String!)
Parameters
name
constraint name
-
Initialize
Declaration
Objective-C
- (instancetype)initWithOrder:(NSNumber *)order;
Swift
init!(order: NSNumber!)
Parameters
order
constraint order
-
Initialize
Declaration
Objective-C
- (instancetype)initWithName:(NSString *)name andOrder:(NSNumber *)order;
Swift
init!(name: String!, andOrder order: NSNumber!)
Parameters
name
constraint name
order
constraint order
-
Initialize
Declaration
Objective-C
- (instancetype)initWithColumn:(GPKGUserColumn *)column;
Swift
init!(column: GPKGUserColumn!)
Parameters
column
column
-
Initialize
Declaration
Objective-C
- (instancetype)initWithColumns:(NSArray<GPKGUserColumn *> *)columns;
Swift
init!(columns: [GPKGUserColumn]!)
Parameters
columns
columns
-
Initialize
Declaration
Objective-C
- (instancetype)initWithName:(NSString *)name andColumn:(GPKGUserColumn *)column;
Swift
init!(name: String!, andColumn column: GPKGUserColumn!)
Parameters
name
constraint name
column
column
-
Initialize
Declaration
Objective-C
- (instancetype)initWithName:(NSString *)name andColumns:(NSArray<GPKGUserColumn *> *)columns;
Swift
init!(name: String!, andColumns columns: [GPKGUserColumn]!)
Parameters
name
constraint name
columns
columns
-
Add column
Declaration
Objective-C
- (void)addColumn:(GPKGUserColumn *)column;
Swift
func addColumn(_ column: GPKGUserColumn!)
Parameters
column
column
-
Add columns
Declaration
Objective-C
- (void)addColumns:(NSArray<GPKGUserColumn *> *)columns;
Swift
func addColumns(_ columns: [GPKGUserColumn]!)
Parameters
columns
columns