GPKGRawConstraint
Objective-C
@interface GPKGRawConstraint : GPKGConstraint
Swift
class GPKGRawConstraint : GPKGConstraint
Table raw or unparsed constraint
-
SQL statement
Declaration
Objective-C
@property (nonatomic, strong) NSString *sql;
Swift
var sql: String! { get set }
-
Initialize
Declaration
Objective-C
- (instancetype)initWithSql:(NSString *)sql;
Swift
init!(sql: String!)
Parameters
sql
constraint SQL
-
Initialize
Declaration
Objective-C
- (instancetype)initWithType:(enum GPKGConstraintType)type andSql:(NSString *)sql;
Swift
init!(type: GPKGConstraintType, andSql sql: String!)
Parameters
type
constraint type
sql
constraint SQL
-
Initialize
Declaration
Objective-C
- (instancetype)initWithType:(enum GPKGConstraintType)type andName:(NSString *)name andSql:(NSString *)sql;
Swift
init!(type: GPKGConstraintType, andName name: String!, andSql sql: String!)
Parameters
type
constraint type
name
constraint name
sql
constraint SQL
-
Constructor
Declaration
Objective-C
- (instancetype)initWithOrder:(NSNumber *)order andSql:(NSString *)sql;
Swift
init!(order: NSNumber!, andSql sql: String!)
Parameters
order
constraint order
sql
constraint SQL
-
Constructor
Declaration
Objective-C
- (instancetype)initWithType:(enum GPKGConstraintType)type andOrder:(NSNumber *)order andSql:(NSString *)sql;
Swift
init!(type: GPKGConstraintType, andOrder order: NSNumber!, andSql sql: String!)
Parameters
type
constraint type
order
constraint order
sql
constraint SQL
-
Constructor
Declaration
Objective-C
- (instancetype)initWithType:(enum GPKGConstraintType)type andName:(NSString *)name andOrder:(NSNumber *)order andSql:(NSString *)sql;
Swift
init!(type: GPKGConstraintType, andName name: String!, andOrder order: NSNumber!, andSql sql: String!)
Parameters
type
constraint type
name
constraint name
order
constraint order
sql
constraint SQL
-
Set the type from the constraint SQL
Declaration
Objective-C
- (void)setTypeFromSql:(NSString *)sql;
Swift
func setTypeFromSql(_ sql: String!)
Parameters
sql
constraint SQL
-
Set the name from the constraint SQL
Declaration
Objective-C
- (void)setNameFromSql:(NSString *)sql;
Swift
func setNameFromSql(_ sql: String!)
Parameters
sql
constraint SQL