GPKGTableColumn

Objective-C

@interface GPKGTableColumn : NSObject

Swift

class GPKGTableColumn : NSObject

Table Column from Table Info

  • Initialize

    Declaration

    Objective-C

    - (instancetype)initWithIndex:(int)index
                          andName:(NSString *)name
                          andType:(NSString *)type
                      andDataType:(enum GPKGDataType)dataType
                           andMax:(NSNumber *)max
                       andNotNull:(BOOL)notNull
            andDefaultValueString:(NSString *)defaultValueString
                  andDefaultValue:(NSObject *)defaultValue
                    andPrimaryKey:(BOOL)primaryKey;

    Swift

    init!(index: Int32, andName name: String!, andType type: String!, andDataType dataType: GPKGDataType, andMax max: NSNumber!, andNotNull notNull: Bool, andDefaultValueString defaultValueString: String!, andDefaultValue defaultValue: NSObject!, andPrimaryKey primaryKey: Bool)

    Parameters

    index

    column index

    name

    column name

    type

    column type

    dataType

    column data type

    max

    max value

    notNull

    not null flag

    defaultValueString

    default value as a string

    defaultValue

    default value

    primaryKey

    primary key flag

  • Get the column index

    Declaration

    Objective-C

    - (int)index;

    Swift

    func index() -> Int32

    Return Value

    column index

  • Get the column name

    Declaration

    Objective-C

    - (NSString *)name;

    Swift

    func name() -> String!

    Return Value

    column name

  • Get the column type

    Declaration

    Objective-C

    - (NSString *)type;

    Swift

    func type() -> String!

    Return Value

    column type

  • Get the column data type

    Declaration

    Objective-C

    - (enum GPKGDataType)dataType;

    Swift

    func dataType() -> GPKGDataType

    Return Value

    column data type, may be null

  • Is the column the data type

    Declaration

    Objective-C

    - (BOOL)isDataType:(enum GPKGDataType)dataType;

    Swift

    func isDataType(_ dataType: GPKGDataType) -> Bool

    Parameters

    dataType

    data type

    Return Value

    true if the data type

  • Get the column max value

    Declaration

    Objective-C

    - (NSNumber *)max;

    Swift

    func max() -> NSNumber!

    Return Value

    max value or null if no max

  • Is this a not null column?

    Declaration

    Objective-C

    - (BOOL)notNull;

    Swift

    func notNull() -> Bool

    Return Value

    true if not nullable

  • Get the default value as a string

    Declaration

    Objective-C

    - (NSString *)defaultValueString;

    Swift

    func defaultValueString() -> String!

    Return Value

    default value as a string

  • Get the default value

    Declaration

    Objective-C

    - (NSObject *)defaultValue;

    Swift

    func defaultValue() -> NSObject!

    Return Value

    default value

  • Is this a primary key column?

    Declaration

    Objective-C

    - (BOOL)primaryKey;

    Swift

    func primaryKey() -> Bool

    Return Value

    true if primary key column