GPKGExtensionsDao

Objective-C

@interface GPKGExtensionsDao : GPKGBaseDao

Swift

class GPKGExtensionsDao : GPKGBaseDao

Extensions Data Access Object

  • Create the DAO

    Declaration

    Objective-C

    + (GPKGExtensionsDao *)createWithDatabase:(GPKGConnection *)database;

    Swift

    class func create(withDatabase database: GPKGConnection!) -> GPKGExtensionsDao!

    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 extensions dao

  • Delete by extension name

    Declaration

    Objective-C

    - (int)deleteByExtension:(NSString *)extensionName;

    Swift

    func delete(byExtension extensionName: String!) -> Int32

    Parameters

    extensionName

    extension name

    Return Value

    rows deleted

  • Delete by extension name and table name

    Declaration

    Objective-C

    - (int)deleteByExtension:(NSString *)extensionName
                    andTable:(NSString *)tableName;

    Swift

    func delete(byExtension extensionName: String!, andTable tableName: String!) -> Int32

    Parameters

    extensionName

    extension name

    tableName

    table name

    Return Value

    rows deleted

  • Delete by extension name, table name, and column name

    Declaration

    Objective-C

    - (int)deleteByExtension:(NSString *)extensionName
                    andTable:(NSString *)tableName
               andColumnName:(NSString *)columnName;

    Swift

    func delete(byExtension extensionName: String!, andTable tableName: String!, andColumnName columnName: String!) -> Int32

    Parameters

    extensionName

    extension name

    tableName

    table name

    columnName

    column name

    Return Value

    rows deleted

  • 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

  • Query by extension name

    Declaration

    Objective-C

    - (GPKGResultSet *)queryByExtension:(NSString *)extensionName;

    Swift

    func query(byExtension extensionName: String!) -> GPKGResultSet!

    Parameters

    extensionName

    extension name

    Return Value

    result set

  • Count by extension name

    Declaration

    Objective-C

    - (int)countByExtension:(NSString *)extensionName;

    Swift

    func count(byExtension extensionName: String!) -> Int32

    Parameters

    extensionName

    extension name

    Return Value

    count

  • Query by extension name and table name

    Declaration

    Objective-C

    - (GPKGResultSet *)queryByExtension:(NSString *)extensionName
                               andTable:(NSString *)tableName;

    Swift

    func query(byExtension extensionName: String!, andTable tableName: String!) -> GPKGResultSet!

    Parameters

    extensionName

    extension name

    tableName

    table name

    Return Value

    result set

  • Count by extension name and table name

    Declaration

    Objective-C

    - (int)countByExtension:(NSString *)extensionName
                   andTable:(NSString *)tableName;

    Swift

    func count(byExtension extensionName: String!, andTable tableName: String!) -> Int32

    Parameters

    extensionName

    extension name

    tableName

    table name

    Return Value

    count

  • Query by extension name, table name, and column name

    Declaration

    Objective-C

    - (GPKGExtensions *)queryByExtension:(NSString *)extensionName
                                andTable:(NSString *)tableName
                           andColumnName:(NSString *)columnName;

    Swift

    func query(byExtension extensionName: String!, andTable tableName: String!, andColumnName columnName: String!) -> GPKGExtensions!

    Parameters

    extensionName

    extension name

    tableName

    table name

    columnName

    column name

    Return Value

    result set