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
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 columns dao
-
Get the Contents from the Data Columns
Declaration
Objective-C
- (GPKGContents *)contents:(GPKGDataColumns *)dataColumns;
Swift
func contents(_ dataColumns: GPKGDataColumns!) -> GPKGContents!
Parameters
dataColumns
data columns
Return Value
contents
-
Query by constraint name
Declaration
Objective-C
- (GPKGResultSet *)queryByConstraintName:(NSString *)constraintName;
Swift
func query(byConstraintName constraintName: String!) -> GPKGResultSet!
Parameters
constraintName
constraint 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
tableName
table name to query for
columnName
column 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
tableName
table name
Return Value
result set
-
Delete by table name
Declaration
Objective-C
- (int)deleteByTableName:(NSString *)tableName;
Swift
func delete(byTableName tableName: String!) -> Int32
Parameters
tableName
table 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!) -> Int32
Parameters
tableName
table name
columnName
column name
Return Value
rows deleted
-
Save the table schema
Declaration
Objective-C
- (void)saveSchemaWithTable:(GPKGUserTable *)table;
Swift
func saveSchema(with table: GPKGUserTable!)
Parameters
table
user table
-
Save the columns schema
Declaration
Objective-C
- (void)saveSchemaWithColumns:(GPKGUserColumns *)columns;
Swift
func saveSchema(with columns: GPKGUserColumns!)
Parameters
columns
user 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
table
table name
columns
user 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
table
table name
column
user column
-
Load the table schema
Declaration
Objective-C
- (void)loadSchemaWithTable:(GPKGUserTable *)table;
Swift
func loadSchema(with table: GPKGUserTable!)
Parameters
table
user table
-
Load the columns schema
Declaration
Objective-C
- (void)loadSchemaWithColumns:(GPKGUserColumns *)columns;
Swift
func loadSchema(with columns: GPKGUserColumns!)
Parameters
columns
user 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
table
table name
columns
user 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
table
table name
column
user 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
table
table name
column
column name
Return Value
column schema or null