Create a new user custom columnd

Param

column index

Param

column name

Param

data type

Param

max value

Param

not null

Param

default value or nil

Param

primary key

Param

autoincrement

Hierarchy

Constructors

Properties

AUTOINCREMENT_CONSTRAINT_ORDER: 4 = 4

Autoincrement Constraint Order

DEFAULT_VALUE_CONSTRAINT_ORDER: 2 = 2

Default Value Constraint Order

NOT_NULL_CONSTRAINT_ORDER: 1 = 1

Not Null Constraint Order

NO_INDEX: -1 = -1

User Column index value

PRIMARY_KEY_CONSTRAINT_ORDER: 3 = 3

Primary Key Constraint Order

UNIQUE_CONSTRAINT_ORDER: 5 = 5

Unique Constraint Order

Methods

  • Determine if this column is named the provided name

    Returns

    true if named the provided name

    Parameters

    • name: string

      column name

    Returns boolean

  • Create a new column with a specified column index

    Returns

    created column

    Parameters

    • index: number = UserCustomColumn.NO_INDEX

      column index

    • name: string

      column name

    • type: GeoPackageDataType

      data type

    • Optional notNull: boolean = false

      not null

    • Optional defaultValue: DBValue

      default value or nil

    • Optional max: number

      max value

    • Optional autoincrement: boolean

      autoincrement or nil

    Returns UserCustomColumn

  • Create a new primary key column with a specified column index

    Parameters

    • index: number = UserCustomColumn.NO_INDEX
    • name: string
    • autoincrement: boolean = UserTableDefaults.DEFAULT_AUTOINCREMENT

    Returns UserCustomColumn

Generated using TypeDoc