GPKGSchemaExtension
Objective-C
@interface GPKGSchemaExtension : GPKGBaseExtension
Swift
class GPKGSchemaExtension : GPKGBaseExtension
Schema extension
-
Extension name
Declaration
Objective-C
@property (nonatomic, strong) NSString *extensionName;
Swift
var extensionName: String! { get set }
-
Extension definition URL
Declaration
Objective-C
@property (nonatomic, strong) NSString *definition;
Swift
var definition: String! { get set }
-
Initialize
Declaration
Objective-C
- (instancetype)initWithGeoPackage:(GPKGGeoPackage *)geoPackage;
Swift
init!(geoPackage: GPKGGeoPackage!)
Parameters
geoPackage
GeoPackage
Return Value
new instance
-
Get or create the extensions
Declaration
Objective-C
- (NSArray<GPKGExtensions *> *)extensionCreate;
Swift
func extensionCreate() -> [GPKGExtensions]!
Return Value
extensions
-
Determine if the GeoPackage has the extension
Declaration
Objective-C
- (BOOL)has;
Swift
func has() -> Bool
Return Value
true if has extension
-
Remove all trace of the extension
Declaration
Objective-C
- (void)removeExtension;
Swift
func remove()
-
Get a Data Columns DAO
Declaration
Objective-C
- (GPKGDataColumnsDao *)dataColumnsDao;
Swift
func dataColumnsDao() -> GPKGDataColumnsDao!
Return Value
Data Columns DAO
-
Get a Data Columns DAO
Declaration
Objective-C
+ (GPKGDataColumnsDao *)dataColumnsDaoWithGeoPackage: (GPKGGeoPackage *)geoPackage;
Swift
class func dataColumnsDao(with geoPackage: GPKGGeoPackage!) -> GPKGDataColumnsDao!
Parameters
geoPackage
GeoPackage
Return Value
Data Columns DAO
-
Get a Data Columns DAO
Declaration
Objective-C
+ (GPKGDataColumnsDao *)dataColumnsDaoWithDatabase:(GPKGConnection *)database;
Swift
class func dataColumnsDao(withDatabase database: GPKGConnection!) -> GPKGDataColumnsDao!
Parameters
database
database connection
Return Value
Data Columns DAO
-
Create the Data Columns table if it does not already exist
Declaration
Objective-C
- (BOOL)createDataColumnsTable;
Swift
func createDataColumnsTable() -> Bool
Return Value
true if created
-
Create the Data Columns extension record if it does not already exist
Declaration
Objective-C
- (GPKGExtensions *)createDataColumnsRecord;
Swift
func createDataColumnsRecord() -> GPKGExtensions!
Return Value
extension
-
Get a Data Column Constraints DAO
Declaration
Objective-C
- (GPKGDataColumnConstraintsDao *)dataColumnConstraintsDao;
Swift
func dataColumnConstraintsDao() -> GPKGDataColumnConstraintsDao!
Return Value
Data Column Constraints DAO
-
Get a Data Column Constraints DAO
Declaration
Objective-C
+ (GPKGDataColumnConstraintsDao *)dataColumnConstraintsDaoWithGeoPackage: (GPKGGeoPackage *)geoPackage;
Swift
class func dataColumnConstraintsDao(with geoPackage: GPKGGeoPackage!) -> GPKGDataColumnConstraintsDao!
Parameters
geoPackage
GeoPackage
Return Value
Data Column Constraints DAO
-
Get a Data Column Constraints DAO
Declaration
Objective-C
+ (GPKGDataColumnConstraintsDao *)dataColumnConstraintsDaoWithDatabase: (GPKGConnection *)database;
Swift
class func dataColumnConstraintsDao(withDatabase database: GPKGConnection!) -> GPKGDataColumnConstraintsDao!
Parameters
database
database connection
Return Value
Data Column Constraints DAO
-
Create the Data Column Constraints table if it does not already exist
Declaration
Objective-C
- (BOOL)createDataColumnConstraintsTable;
Swift
func createDataColumnConstraintsTable() -> Bool
Return Value
true if created
-
Create the Data Column Constraints extension record if it does not already exist
Declaration
Objective-C
- (GPKGExtensions *)createDataColumnConstraintsRecord;
Swift
func createDataColumnConstraintsRecord() -> GPKGExtensions!
Return Value
extension