Iskra API Reference
    Preparing search index...

    Interface Column<T>

    How a column's value becomes the field's.

    interface Column<T> {
        isNullable: boolean;
        kind: string;
        source?: string;
        zero: T;
        decode(value: unknown, column: string): T;
        from(column: string): Column<T>;
        nullable(): Column<T | null>;
    }

    Type Parameters

    • T
    Index
    isNullable: boolean
    kind: string
    source?: string

    The column's name when it is not the field's (ID_USUARIO for idUsuario is found on its own).

    zero: T

    The field's value when the column is missing and missing: 'zero'.

    • Parameters

      • value: unknown
      • column: string

      Returns T

    • Reads the field from another column.

      Parameters

      • column: string

      Returns Column<T>

    • Accepts NULL (the field is null) instead of failing.

      Returns Column<T | null>