GPKGSQLiteMaster
Objective-C
@interface GPKGSQLiteMaster : NSObject
Swift
class GPKGSQLiteMaster : NSObject
SQLite Master table queries (sqlite_master)
-
Result count
Declaration
Objective-C
- (int)count;
Swift
func count() -> Int32
Return Value
count
-
Get the columns in the result
Declaration
Objective-C
- (NSArray<NSNumber *> *)columns;
Swift
func columns() -> [NSNumber]!
Return Value
columns
-
Get the type
Declaration
Objective-C
- (enum GPKGSQLiteMasterType)typeAtRow:(int)row;
Swift
func type(atRow row: Int32) -> GPKGSQLiteMasterType
Parameters
row
row index
Return Value
type
-
Get the type string
Declaration
Objective-C
- (NSString *)typeStringAtRow:(int)row;
Swift
func typeString(atRow row: Int32) -> String!
Parameters
row
row index
Return Value
type string
-
Get the name
Declaration
Objective-C
- (NSString *)nameAtRow:(int)row;
Swift
func name(atRow row: Int32) -> String!
Parameters
row
row index
Return Value
name
-
Get the table name
Declaration
Objective-C
- (NSString *)tableNameAtRow:(int)row;
Swift
func tableName(atRow row: Int32) -> String!
Parameters
row
row index
Return Value
name
-
Get the rootpage
Declaration
Objective-C
- (NSNumber *)rootpageAtRow:(int)row;
Swift
func rootpage(atRow row: Int32) -> NSNumber!
Parameters
row
row index
Return Value
name
-
Get the sql
Declaration
Objective-C
- (NSString *)sqlAtRow:(int)row;
Swift
func sql(atRow row: Int32) -> String!
Parameters
row
row index
Return Value
name
-
Get the value of the column at the row index
Declaration
Objective-C
- (NSObject *)valueAtRow:(int)row forColumn:(enum GPKGSQLiteMasterColumn)column;
Swift
func value(atRow row: Int32, for column: GPKGSQLiteMasterColumn) -> NSObject!
Parameters
row
row index
column
column type
Return Value
value
-
Get the row at the row index
Parameters
row
row index
Return Value
row column values
-
Get the value in the row at the column index
Declaration
Objective-C
- (NSObject *)valueInRow:(GPKGRow *)row forColumn:(enum GPKGSQLiteMasterColumn)column;
Swift
func value(in row: GPKGRow!, for column: GPKGSQLiteMasterColumn) -> NSObject!
Parameters
row
row
column
column type
Return Value
value
-
Get the column index of the column type
Declaration
Objective-C
- (int)columnIndex:(enum GPKGSQLiteMasterColumn)column;
Swift
func columnIndex(_ column: GPKGSQLiteMasterColumn) -> Int32
Parameters
column
column type
Return Value
column index
-
Get the constraints from table SQL
Declaration
Objective-C
- (GPKGTableConstraints *)constraintsAtRow:(int)row;
Swift
func constraints(atRow row: Int32) -> GPKGTableConstraints!
Parameters
row
row index
Return Value
constraints
-
Shortcut to build a column into an array
Declaration
Objective-C
+ (NSArray *)columnsFromColumn:(enum GPKGSQLiteMasterColumn)column;
Swift
class func columns(from column: GPKGSQLiteMasterColumn) -> [Any]!
Parameters
column
column
Return Value
columns
-
Shortcut to build a type into an array
Declaration
Objective-C
+ (NSArray *)typesFromType:(enum GPKGSQLiteMasterType)type;
Swift
class func types(from type: GPKGSQLiteMasterType) -> [Any]!
Parameters
type
type
Return Value
types
-
Count the sqlite_master table
Declaration
Objective-C
+ (int)countWithConnection:(GPKGConnection *)db;
Swift
class func count(with db: GPKGConnection!) -> Int32
Parameters
db
connection
Return Value
count
-
Query the sqlite_master table
Declaration
Objective-C
+ (GPKGSQLiteMaster *)queryWithConnection:(GPKGConnection *)db;
Swift
class func query(with db: GPKGConnection!) -> GPKGSQLiteMaster!
Parameters
db
connection
Return Value
SQLiteMaster result
-
Count the sqlite_master table
Declaration
Objective-C
+ (int)countWithConnection:(GPKGConnection *)db andTable:(NSString *)tableName;
Swift
class func count(with db: GPKGConnection!, andTable tableName: String!) -> Int32
Parameters
db
connection
tableName
table name
Return Value
count
-
Query the sqlite_master table
Declaration
Objective-C
+ (GPKGSQLiteMaster *)queryWithConnection:(GPKGConnection *)db andTable:(NSString *)tableName;
Swift
class func query(with db: GPKGConnection!, andTable tableName: String!) -> GPKGSQLiteMaster!
Parameters
db
connection
tableName
table name
Return Value
SQLiteMaster result
-
Query the sqlite_master table
Declaration
Objective-C
+ (GPKGSQLiteMaster *)queryWithConnection:(GPKGConnection *)db andColumns:(NSArray<NSNumber *> *)columns;
Swift
class func query(with db: GPKGConnection!, andColumns columns: [NSNumber]!) -> GPKGSQLiteMaster!
Parameters
db
connection
columns
result columns
Return Value
SQLiteMaster result
-
Query the sqlite_master table
Declaration
Objective-C
+ (GPKGSQLiteMaster *)queryWithConnection:(GPKGConnection *)db andColumns:(NSArray<NSNumber *> *)columns andTable:(NSString *)tableName;
Swift
class func query(with db: GPKGConnection!, andColumns columns: [NSNumber]!, andTable tableName: String!) -> GPKGSQLiteMaster!
Parameters
db
connection
columns
result columns
tableName
table name
Return Value
SQLiteMaster result
-
Query the sqlite_master table
Declaration
Objective-C
+ (GPKGSQLiteMaster *)queryWithConnection:(GPKGConnection *)db andType:(enum GPKGSQLiteMasterType)type;
Swift
class func query(with db: GPKGConnection!, andType type: GPKGSQLiteMasterType) -> GPKGSQLiteMaster!
Parameters
db
connection
type
result type
Return Value
SQLiteMaster result
-
Query the sqlite_master table
Declaration
Objective-C
+ (GPKGSQLiteMaster *)queryWithConnection:(GPKGConnection *)db andTypes:(NSArray<NSNumber *> *)types;
Swift
class func query(with db: GPKGConnection!, andTypes types: [NSNumber]!) -> GPKGSQLiteMaster!
Parameters
db
connection
types
result types
Return Value
SQLiteMaster result
-
Query the sqlite_master table
Declaration
Objective-C
+ (GPKGSQLiteMaster *)queryWithConnection:(GPKGConnection *)db andType:(enum GPKGSQLiteMasterType)type andTable:(NSString *)tableName;
Swift
class func query(with db: GPKGConnection!, andType type: GPKGSQLiteMasterType, andTable tableName: String!) -> GPKGSQLiteMaster!
Parameters
db
connection
type
result type
tableName
table name
Return Value
SQLiteMaster result
-
Query the sqlite_master table
Declaration
Objective-C
+ (GPKGSQLiteMaster *)queryWithConnection:(GPKGConnection *)db andTypes:(NSArray<NSNumber *> *)types andTable:(NSString *)tableName;
Swift
class func query(with db: GPKGConnection!, andTypes types: [NSNumber]!, andTable tableName: String!) -> GPKGSQLiteMaster!
Parameters
db
connection
types
result types
tableName
table name
Return Value
SQLiteMaster result
-
Count the sqlite_master table
Declaration
Objective-C
+ (int)countWithConnection:(GPKGConnection *)db andType:(enum GPKGSQLiteMasterType)type;
Swift
class func count(with db: GPKGConnection!, andType type: GPKGSQLiteMasterType) -> Int32
Parameters
db
connection
type
result type
Return Value
count
-
Query the sqlite_master table
Declaration
Objective-C
+ (GPKGSQLiteMaster *)queryWithConnection:(GPKGConnection *)db andColumns:(NSArray<NSNumber *> *)columns andType:(enum GPKGSQLiteMasterType)type;
Swift
class func query(with db: GPKGConnection!, andColumns columns: [NSNumber]!, andType type: GPKGSQLiteMasterType) -> GPKGSQLiteMaster!
Parameters
db
connection
columns
result columns
type
result type
Return Value
SQLiteMaster result
-
Count the sqlite_master table
Declaration
Objective-C
+ (int)countWithConnection:(GPKGConnection *)db andType:(enum GPKGSQLiteMasterType)type andTable:(NSString *)tableName;
Swift
class func count(with db: GPKGConnection!, andType type: GPKGSQLiteMasterType, andTable tableName: String!) -> Int32
Parameters
db
connection
type
result type
tableName
table name
Return Value
count
-
Query the sqlite_master table
Declaration
Objective-C
+ (GPKGSQLiteMaster *)queryWithConnection:(GPKGConnection *)db andColumns:(NSArray<NSNumber *> *)columns andType:(enum GPKGSQLiteMasterType)type andTable:(NSString *)tableName;
Swift
class func query(with db: GPKGConnection!, andColumns columns: [NSNumber]!, andType type: GPKGSQLiteMasterType, andTable tableName: String!) -> GPKGSQLiteMaster!
Parameters
db
connection
columns
result columns
type
result type
tableName
table name
Return Value
SQLiteMaster result
-
Count the sqlite_master table
Declaration
Objective-C
+ (int)countWithConnection:(GPKGConnection *)db andTypes:(NSArray<NSNumber *> *)types;
Swift
class func count(with db: GPKGConnection!, andTypes types: [NSNumber]!) -> Int32
Parameters
db
connection
types
result types
Return Value
count
-
Query the sqlite_master table
Declaration
Objective-C
+ (GPKGSQLiteMaster *)queryWithConnection:(GPKGConnection *)db andColumns:(NSArray<NSNumber *> *)columns andTypes:(NSArray<NSNumber *> *)types;
Swift
class func query(with db: GPKGConnection!, andColumns columns: [NSNumber]!, andTypes types: [NSNumber]!) -> GPKGSQLiteMaster!
Parameters
db
connection
columns
result columns
types
result types
Return Value
SQLiteMaster result
-
Count the sqlite_master table
Declaration
Objective-C
+ (int)countWithConnection:(GPKGConnection *)db andTypes:(NSArray<NSNumber *> *)types andTable:(NSString *)tableName;
Swift
class func count(with db: GPKGConnection!, andTypes types: [NSNumber]!, andTable tableName: String!) -> Int32
Parameters
db
connection
types
result types
tableName
table name
Return Value
count
-
Query the sqlite_master table
Declaration
Objective-C
+ (GPKGSQLiteMaster *)queryWithConnection:(GPKGConnection *)db andColumns:(NSArray<NSNumber *> *)columns andTypes:(NSArray<NSNumber *> *)types andTable:(NSString *)tableName;
Swift
class func query(with db: GPKGConnection!, andColumns columns: [NSNumber]!, andTypes types: [NSNumber]!, andTable tableName: String!) -> GPKGSQLiteMaster!
Parameters
db
connection
columns
result columns
types
result types
tableName
table name
Return Value
SQLiteMaster result
-
Query the sqlite_master table
Declaration
Objective-C
+ (GPKGSQLiteMaster *)queryWithConnection:(GPKGConnection *)db andQuery:(GPKGSQLiteMasterQuery *)query;
Swift
class func query(with db: GPKGConnection!, andQuery query: GPKGSQLiteMasterQuery!) -> GPKGSQLiteMaster!
Parameters
db
connection
query
query
Return Value
SQLiteMaster result
-
Count the sqlite_master table
Declaration
Objective-C
+ (int)countWithConnection:(GPKGConnection *)db andQuery:(GPKGSQLiteMasterQuery *)query;
Swift
class func count(with db: GPKGConnection!, andQuery query: GPKGSQLiteMasterQuery!) -> Int32
Parameters
db
connection
query
query
Return Value
count
-
Query the sqlite_master table
Declaration
Objective-C
+ (GPKGSQLiteMaster *)queryWithConnection:(GPKGConnection *)db andColumns:(NSArray<NSNumber *> *)columns andQuery:(GPKGSQLiteMasterQuery *)query;
Swift
class func query(with db: GPKGConnection!, andColumns columns: [NSNumber]!, andQuery query: GPKGSQLiteMasterQuery!) -> GPKGSQLiteMaster!
Parameters
db
connection
columns
result columns
query
query
Return Value
SQLiteMaster result
-
Query the sqlite_master table
Declaration
Objective-C
+ (GPKGSQLiteMaster *)queryWithConnection:(GPKGConnection *)db andType:(enum GPKGSQLiteMasterType)type andQuery:(GPKGSQLiteMasterQuery *)query;
Swift
class func query(with db: GPKGConnection!, andType type: GPKGSQLiteMasterType, andQuery query: GPKGSQLiteMasterQuery!) -> GPKGSQLiteMaster!
Parameters
db
connection
type
result type
query
query
Return Value
SQLiteMaster result
-
Count the sqlite_master table
Declaration
Objective-C
+ (int)countWithConnection:(GPKGConnection *)db andType:(enum GPKGSQLiteMasterType)type andQuery:(GPKGSQLiteMasterQuery *)query;
Swift
class func count(with db: GPKGConnection!, andType type: GPKGSQLiteMasterType, andQuery query: GPKGSQLiteMasterQuery!) -> Int32
Parameters
db
connection
type
result type
query
query
Return Value
count
-
Query the sqlite_master table
Declaration
Objective-C
+ (GPKGSQLiteMaster *)queryWithConnection:(GPKGConnection *)db andColumns:(NSArray<NSNumber *> *)columns andType:(enum GPKGSQLiteMasterType)type andQuery:(GPKGSQLiteMasterQuery *)query;
Swift
class func query(with db: GPKGConnection!, andColumns columns: [NSNumber]!, andType type: GPKGSQLiteMasterType, andQuery query: GPKGSQLiteMasterQuery!) -> GPKGSQLiteMaster!
Parameters
db
connection
columns
result columns
type
result type
query
query
Return Value
SQLiteMaster result
-
Count the sqlite_master table
Declaration
Objective-C
+ (int)countWithConnection:(GPKGConnection *)db andTypes:(NSArray<NSNumber *> *)types andQuery:(GPKGSQLiteMasterQuery *)query;
Swift
class func count(with db: GPKGConnection!, andTypes types: [NSNumber]!, andQuery query: GPKGSQLiteMasterQuery!) -> Int32
Parameters
db
connection
types
result types
query
query
Return Value
count
-
Query the sqlite_master table
Declaration
Objective-C
+ (GPKGSQLiteMaster *)queryWithConnection:(GPKGConnection *)db andColumns:(NSArray<NSNumber *> *)columns andTypes:(NSArray<NSNumber *> *)types andQuery:(GPKGSQLiteMasterQuery *)query;
Swift
class func query(with db: GPKGConnection!, andColumns columns: [NSNumber]!, andTypes types: [NSNumber]!, andQuery query: GPKGSQLiteMasterQuery!) -> GPKGSQLiteMaster!
Parameters
db
connection
columns
result columns
types
result types
query
query
Return Value
SQLiteMaster result
-
Query the sqlite_master views on the table
Declaration
Objective-C
+ (GPKGSQLiteMaster *)queryViewsWithConnection:(GPKGConnection *)db andTable:(NSString *)tableName;
Swift
class func queryViews(with db: GPKGConnection!, andTable tableName: String!) -> GPKGSQLiteMaster!
Parameters
db
connection
tableName
table name
Return Value
SQLiteMaster result
-
Query the sqlite_master views on the table
Declaration
Objective-C
+ (GPKGSQLiteMaster *)queryViewsWithConnection:(GPKGConnection *)db andColumns:(NSArray<NSNumber *> *)columns andTable:(NSString *)tableName;
Swift
class func queryViews(with db: GPKGConnection!, andColumns columns: [NSNumber]!, andTable tableName: String!) -> GPKGSQLiteMaster!
Parameters
db
connection
columns
result columns
tableName
table name
Return Value
SQLiteMaster result
-
Count the sqlite_master views on the table
Declaration
Objective-C
+ (int)countViewsWithConnection:(GPKGConnection *)db andTable:(NSString *)tableName;
Swift
class func countViews(with db: GPKGConnection!, andTable tableName: String!) -> Int32
Parameters
db
connection
tableName
table name
Return Value
count
-
Query for the table constraints
Declaration
Objective-C
+ (GPKGTableConstraints *)queryForConstraintsWithConnection:(GPKGConnection *)db andTable: (NSString *)tableName;
Swift
class func queryForConstraints(with db: GPKGConnection!, andTable tableName: String!) -> GPKGTableConstraints!
Parameters
db
connection
tableName
table name
Return Value
SQL constraints