GPKGTableMetadataDao
Objective-C
@interface GPKGTableMetadataDao : GPKGBaseDao
Swift
class GPKGTableMetadataDao : GPKGBaseDao
Table Metadata Data Access Object
-
Initialize
Declaration
Objective-C
- (instancetype)initWithDatabase:(GPKGConnection *)database;
Swift
init!(database: GPKGConnection!)
Parameters
database
database conneciton
Return Value
new table metadata
-
Delete table metadata
Declaration
Objective-C
- (BOOL)deleteMetadata:(GPKGTableMetadata *)metadata;
Swift
func delete(_ metadata: GPKGTableMetadata!) -> Bool
Parameters
metadata
metadata
Return Value
true if deleted
-
Delete table metadata by GeoPackage name
Declaration
Objective-C
- (BOOL)deleteByGeoPackageName:(NSString *)name;
Swift
func delete(byGeoPackageName name: String!) -> Bool
Parameters
name
GeoPackage name
Return Value
true if deleted
-
Delete table metadata by GeoPackage id
Declaration
Objective-C
- (BOOL)deleteByGeoPackageId:(NSNumber *)geoPackageId;
Swift
func delete(byGeoPackageId geoPackageId: NSNumber!) -> Bool
Parameters
geoPackageId
GeoPackage id
Return Value
true if deleted
-
Delete table metadata by GeoPackage name and table name
Declaration
Objective-C
- (BOOL)deleteByGeoPackageName:(NSString *)name andTableName:(NSString *)tableName;
Swift
func delete(byGeoPackageName name: String!, andTableName tableName: String!) -> Bool
Parameters
name
GeoPackage name
tableName
table name
Return Value
true if deleted
-
Delete table metadata by GeoPackage id and table name
Declaration
Objective-C
- (BOOL)deleteByGeoPackageId:(NSNumber *)geoPackageId andTableName:(NSString *)tableName;
Swift
func delete(byGeoPackageId geoPackageId: NSNumber!, andTableName tableName: String!) -> Bool
Parameters
geoPackageId
GeoPackage id
tableName
table name
Return Value
true if deleted
-
Update last indexed date of table metadata
Declaration
Objective-C
- (BOOL)updateLastIndexed:(NSDate *)lastIndexed inMetadata:(GPKGTableMetadata *)metadata;
Swift
func updateLastIndexed(_ lastIndexed: Date!, in metadata: GPKGTableMetadata!) -> Bool
Parameters
lastIndexed
date
metadata
metadata
Return Value
true if updated
-
Update last indexed of table metadata
Declaration
Objective-C
- (BOOL)updateLastIndexed:(NSDate *)lastIndexed withGeoPackageName:(NSString *)name andTableName:(NSString *)tableName;
Swift
func updateLastIndexed(_ lastIndexed: Date!, withGeoPackageName name: String!, andTableName tableName: String!) -> Bool
Parameters
lastIndexed
date
name
GeoPackage name
tableName
table name
Return Value
true if updated
-
Update last indexed of table metadata
Declaration
Objective-C
- (BOOL)updateLastIndexed:(NSDate *)lastIndexed withGeoPackageId:(NSNumber *)geoPackageId andTableName:(NSString *)tableName;
Swift
func updateLastIndexed(_ lastIndexed: Date!, withGeoPackageId geoPackageId: NSNumber!, andTableName tableName: String!) -> Bool
Parameters
lastIndexed
date
geoPackageId
GeoPackage id
tableName
table name
Return Value
true if updated
-
Get table metadata by GeoPackage name and table name
Declaration
Objective-C
- (GPKGTableMetadata *)metadataByGeoPackageName:(NSString *)name andTableName:(NSString *)tableName;
Swift
func metadata(byGeoPackageName name: String!, andTableName tableName: String!) -> GPKGTableMetadata!
Parameters
name
GeoPackage name
tableName
table name
Return Value
table metadata
-
Get table metadata by GeoPackage id and table name
Declaration
Objective-C
- (GPKGTableMetadata *)metadataByGeoPackageId:(NSNumber *)geoPackageId andTableName:(NSString *)tableName;
Swift
func metadata(byGeoPackageId geoPackageId: NSNumber!, andTableName tableName: String!) -> GPKGTableMetadata!
Parameters
geoPackageId
GeoPackage id
tableName
table name
Return Value
table metadata
-
Get or create table metadata by GeoPackage table and table name
Declaration
Objective-C
- (GPKGTableMetadata *)metadataCreateByGeoPackageName:(NSString *)name andTableName:(NSString *)tableName;
Swift
func metadataCreate(byGeoPackageName name: String!, andTableName tableName: String!) -> GPKGTableMetadata!
Parameters
name
GeoPackage name
tableName
table name
Return Value
table metadata
-
Get GeoPackage Id for GeoPackage name
Declaration
Objective-C
- (NSNumber *)geoPackageIdForGeoPackageName:(NSString *)name;
Swift
func geoPackageId(forGeoPackageName name: String!) -> NSNumber!
Parameters
name
GeoPackage name
Return Value
GeoPackage id