GPKGTableIndexDao

Objective-C

@interface GPKGTableIndexDao : GPKGBaseDao

Swift

class GPKGTableIndexDao : GPKGBaseDao

Table Index Data Access Object

  • Create the DAO

    Declaration

    Objective-C

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

    Swift

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

    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 table index dao

  • Delete the Table Index, cascading

    Declaration

    Objective-C

    - (int)deleteCascade:(GPKGTableIndex *)tableIndex;

    Swift

    func deleteCascade(_ tableIndex: GPKGTableIndex!) -> Int32

    Parameters

    tableIndex

    table index

    Return Value

    rows deleted

  • Delete the collection of Table Indices, cascading

    Declaration

    Objective-C

    - (int)deleteCascadeWithCollection:(NSArray *)tableIndexCollection;

    Swift

    func deleteCascade(withCollection tableIndexCollection: [Any]!) -> Int32

    Parameters

    tableIndexCollection

    table index array

    Return Value

    rows deleted

  • Delete the Table Index 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 args

    Return Value

    rows deleted

  • Delete the Table Index by id, cascading

    Declaration

    Objective-C

    - (int)deleteByIdCascade:(NSString *)id;

    Swift

    func delete(byIdCascade id: String!) -> Int32

    Parameters

    id

    id

    Return Value

    rows deleted

  • Delete the Table Indices by ids, cascading

    Declaration

    Objective-C

    - (int)deleteIdsCascade:(NSArray *)idCollection;

    Swift

    func deleteIdsCascade(_ idCollection: [Any]!) -> Int32

    Parameters

    idCollection

    id array

    Return Value

    rows deleted

  • Delete the table

    Declaration

    Objective-C

    - (void)deleteTable:(NSString *)table;

    Swift

    func deleteTable(_ table: String!)

    Parameters

    table

    table name

  • Get the Geometry Index results

    Declaration

    Objective-C

    - (GPKGResultSet *)geometryIndices:(GPKGTableIndex *)tableIndex;

    Swift

    func geometryIndices(_ tableIndex: GPKGTableIndex!) -> GPKGResultSet!

    Parameters

    tableIndex

    table index

    Return Value

    result set

  • Get the count of Geometry Index results

    Declaration

    Objective-C

    - (int)geometryIndexCount:(GPKGTableIndex *)tableIndex;

    Swift

    func geometryIndexCount(_ tableIndex: GPKGTableIndex!) -> Int32

    Parameters

    tableIndex

    table index

    Return Value

    count

  • Delete all table indices, cascading to geometry indices

    Declaration

    Objective-C

    - (int)deleteAllCascade;

    Swift

    func deleteAllCascade() -> Int32

    Return Value

    rows deleted