GPKGDataColumnsDao
Objective-C
@interface GPKGDataColumnsDao : GPKGBaseDao
Swift
class GPKGDataColumnsDao : GPKGBaseDao
Data Columns Data Access Object
-
Create the DAO
Declaration
Objective-C
+ (GPKGDataColumnsDao *)createWithDatabase:(GPKGConnection *)database;Swift
class func create(withDatabase database: GPKGConnection!) -> GPKGDataColumnsDao!Parameters
databasedatabase connection
Return Value
dao
-
Initialize
Declaration
Objective-C
- (instancetype)initWithDatabase:(GPKGConnection *)database;Swift
init!(database: GPKGConnection!)Parameters
databasedatabase connection
Return Value
new data columns dao
-
Get the Contents from the Data Columns
Declaration
Objective-C
- (GPKGContents *)contents:(GPKGDataColumns *)dataColumns;Swift
func contents(_ dataColumns: GPKGDataColumns!) -> GPKGContents!Parameters
dataColumnsdata columns
Return Value
contents
-
Query by constraint name
Declaration
Objective-C
- (GPKGResultSet *)queryByConstraintName:(NSString *)constraintName;Swift
func query(byConstraintName constraintName: String!) -> GPKGResultSet!Parameters
constraintNameconstraint name
Return Value
result set
-
Get DataColumn by column name and table name
Declaration
Objective-C
- (GPKGDataColumns *)dataColumnByTableName:(id)tableName andColumnName:(id)columnName;Swift
func dataColumn(byTableName tableName: Any!, andColumnName columnName: Any!) -> GPKGDataColumns!Parameters
tableNametable name to query for
columnNamecolumn name to query for
Return Value
GPKGDataColumns
-
Query by table name
Declaration
Objective-C
- (GPKGResultSet *)queryByTable:(NSString *)tableName;Swift
func query(byTable tableName: String!) -> GPKGResultSet!Parameters
tableNametable name
Return Value
result set
-
Delete by table name
Declaration
Objective-C
- (int)deleteByTableName:(NSString *)tableName;Swift
func delete(byTableName tableName: String!) -> Int32Parameters
tableNametable name
Return Value
rows deleted
-
Delete by table name
Declaration
Objective-C
- (int)deleteByTableName:(NSString *)tableName andColumnName:(NSString *)columnName;Swift
func delete(byTableName tableName: String!, andColumnName columnName: String!) -> Int32Parameters
tableNametable name
columnNamecolumn name
Return Value
rows deleted
-
Save the table schema
Declaration
Objective-C
- (void)saveSchemaWithTable:(GPKGUserTable *)table;Swift
func saveSchema(with table: GPKGUserTable!)Parameters
tableuser table
-
Save the columns schema
Declaration
Objective-C
- (void)saveSchemaWithColumns:(GPKGUserColumns *)columns;Swift
func saveSchema(with columns: GPKGUserColumns!)Parameters
columnsuser columns
-
Save the columns schema
Declaration
Objective-C
- (void)saveSchemaWithTable:(NSString *)table andColumns:(NSArray<GPKGUserColumn *> *)columns;Swift
func saveSchema(withTable table: String!, andColumns columns: [GPKGUserColumn]!)Parameters
tabletable name
columnsuser columns
-
Save the column schema
Declaration
Objective-C
- (void)saveSchemaWithTable:(NSString *)table andColumn:(GPKGUserColumn *)column;Swift
func saveSchema(withTable table: String!, andColumn column: GPKGUserColumn!)Parameters
tabletable name
columnuser column
-
Load the table schema
Declaration
Objective-C
- (void)loadSchemaWithTable:(GPKGUserTable *)table;Swift
func loadSchema(with table: GPKGUserTable!)Parameters
tableuser table
-
Load the columns schema
Declaration
Objective-C
- (void)loadSchemaWithColumns:(GPKGUserColumns *)columns;Swift
func loadSchema(with columns: GPKGUserColumns!)Parameters
columnsuser columns
-
Load the columns schema
Declaration
Objective-C
- (void)loadSchemaWithTable:(NSString *)table andColumns:(NSArray<GPKGUserColumn *> *)columns;Swift
func loadSchema(withTable table: String!, andColumns columns: [GPKGUserColumn]!)Parameters
tabletable name
columnsuser columns
-
Load the column schema
Declaration
Objective-C
- (void)loadSchemaWithTable:(NSString *)table andColumn:(GPKGUserColumn *)column;Swift
func loadSchema(withTable table: String!, andColumn column: GPKGUserColumn!)Parameters
tabletable name
columnuser column
-
Get the column schema
Declaration
Objective-C
- (GPKGDataColumns *)schemaByTable:(id)table andColumn:(id)column;Swift
func schema(byTable table: Any!, andColumn column: Any!) -> GPKGDataColumns!Parameters
tabletable name
columncolumn name
Return Value
column schema or null
View on GitHub
GPKGDataColumnsDao Class Reference