geopackage-ts
    Preparing search index...

    Interface UserColumn

    Represents a column definition within a GeoPackage user table.

    Each column has metadata describing its position, data type, constraints, and other properties as defined by the GeoPackage specification.

    const column: UserColumn = {
    index: 0,
    name: 'id',
    dataType: GeoPackageDataType.INTEGER,
    notNull: true,
    defaultValue: null,
    primaryKey: true,
    autoincrement: true,
    unique: false,
    };
    interface UserColumn {
        autoincrement: boolean;
        dataType: GeoPackageDataType;
        defaultValue: string | number | null;
        index: number;
        max?: number;
        name: string;
        notNull: boolean;
        primaryKey: boolean;
        unique: boolean;
    }
    Index

    Properties

    autoincrement: boolean

    Whether the column uses AUTOINCREMENT (only meaningful for primary keys).

    The GeoPackage data type of the column (e.g., INTEGER, TEXT, BLOB).

    defaultValue: string | number | null

    The default value for the column, or null if no default is set.

    index: number

    The zero-based positional index of the column within the table.

    max?: number

    The optional maximum size or length constraint for the column. Applicable to types like TEXT or BLOB where a max length may be specified.

    name: string

    The name of the column.

    notNull: boolean

    Whether the column has a NOT NULL constraint.

    primaryKey: boolean

    Whether the column is the primary key of the table.

    unique: boolean

    Whether the column has a UNIQUE constraint.