GPKGColumnConstraints
Objective-C
@interface GPKGColumnConstraints : NSObject
Swift
class GPKGColumnConstraints : NSObject
Column Constraints
-
Column name
Declaration
Objective-C
@property (nonatomic, strong) NSString *name;
Swift
var name: String! { get set }
-
Column constraints
Declaration
Objective-C
@property (nonatomic, strong) GPKGConstraints *constraints;
Swift
var constraints: GPKGConstraints! { get set }
-
Initialize
Declaration
Objective-C
- (instancetype)initWithName:(NSString *)name;
Swift
init!(name: String!)
Parameters
name
column name
Return Value
new column constraints
-
Add a constraint
Declaration
Objective-C
- (void)addConstraint:(GPKGConstraint *)constraint;
Swift
func addConstraint(_ constraint: GPKGConstraint!)
Parameters
constraint
constraint
-
Add constraints
Declaration
Objective-C
- (void)addConstraintArray:(NSArray<GPKGConstraint *> *)constraints;
Swift
func addConstraintArray(_ constraints: [GPKGConstraint]!)
Parameters
constraints
constraints
-
Add constraints
Declaration
Objective-C
- (void)addConstraints:(GPKGConstraints *)constraints;
Swift
func addConstraints(_ constraints: GPKGConstraints!)
Parameters
constraints
constraints
-
Get the constraint at the index
Declaration
Objective-C
- (GPKGConstraint *)constraintAtIndex:(int)index;
Swift
func constraint(at index: Int32) -> GPKGConstraint!
Parameters
index
constraint index
Return Value
constraint
-
Get the number of constraints
Declaration
Objective-C
- (int)numConstraints;
Swift
func numConstraints() -> Int32
Return Value
constraints count
-
Add constraints
Declaration
Objective-C
- (void)addColumnConstraints:(GPKGColumnConstraints *)constraints;
Swift
func add(_ constraints: GPKGColumnConstraints!)
Parameters
constraints
constraints
-
Check if there are constraints
Declaration
Objective-C
- (BOOL)hasConstraints;
Swift
func hasConstraints() -> Bool
Return Value
true if has constraints