GPKGDataColumnConstraintsDao
Objective-C
@interface GPKGDataColumnConstraintsDao : GPKGBaseDao
Swift
class GPKGDataColumnConstraintsDao : GPKGBaseDao
Data Column Constraints Data Access Object
-
Create the DAO
Declaration
Objective-C
+ (GPKGDataColumnConstraintsDao *)createWithDatabase:(GPKGConnection *)database;
Swift
class func create(withDatabase database: GPKGConnection!) -> GPKGDataColumnConstraintsDao!
Parameters
database
database connection
Return Value
dao
-
Initialize
Declaration
Objective-C
- (instancetype)initWithDatabase:(GPKGConnection *)database;
Swift
init!(database: GPKGConnection!)
Parameters
database
database connection
Return Value
new data column constraints dao
-
Delete the Data Columns Constraints, cascading
Declaration
Objective-C
- (int)deleteCascade:(GPKGDataColumnConstraints *)constraints;
Swift
func deleteCascade(_ constraints: GPKGDataColumnConstraints!) -> Int32
Parameters
constraints
data columns constraints
Return Value
rows deleted
-
Delete the collection of Data Column Constraints, cascading
Declaration
Objective-C
- (int)deleteCascadeWithCollection:(NSArray *)constraintsCollection;
Swift
func deleteCascade(withCollection constraintsCollection: [Any]!) -> Int32
Parameters
constraintsCollection
data columns constraints array
Return Value
rows deleted
-
Delete the Data Columns Constraints where, cascading
Declaration
Objective-C
- (int)deleteCascadeWhere:(NSString *)where andWhereArgs:(NSArray *)whereArgs;
Swift
func deleteCascadeWhere(_ where: String!, andWhereArgs whereArgs: [Any]!) -> Int32
Parameters
where
where clause
whereArgs
where arge
Return Value
rows deleted
-
Query by the constraint name
Declaration
Objective-C
- (GPKGResultSet *)queryByConstraintName:(NSString *)constraintName;
Swift
func query(byConstraintName constraintName: String!) -> GPKGResultSet!
Parameters
constraintName
constraint name
Return Value
result set
-
Query by the unique column values
Declaration
Objective-C
- (GPKGDataColumnConstraints *) queryByUniqueConstraintName:(NSString *)constraintName andConstraintType: (enum GPKGDataColumnConstraintType)constraintType andValue:(NSString *)value;
Swift
func query(byUniqueConstraintName constraintName: String!, andConstraintType constraintType: GPKGDataColumnConstraintType, andValue value: String!) -> GPKGDataColumnConstraints!
Parameters
constraintName
constraint name
constraintType
constraint type
value
value
Return Value
data column constraints