prorm API Reference
    Preparing search index...

    Hierarchy

    • AbstractIntegerType
      • BIGINT
    Index
    • Create a BIGINT data type

      Parameters

      • options: { length?: number; unsigned?: boolean; zerofill?: boolean } = {}

        Optional options object

      Returns BIGINT

      // Simple BIGINT
      DataTypes.BIGINT()
      // BIGINT with options
      DataTypes.BIGINT({ unsigned: true })
      // Using chainable methods
      DataTypes.BIGINT().UNSIGNED()
      DataTypes.BIGINT().ZEROFILL()
    length?: number
    unsigned?: boolean
    zerofill?: boolean
    key: "BIGINT" = ...
    • Compare this DataType with another DataType for equality

      Parameters

      Returns boolean

      true if the types are equal, false otherwise

    • Serialize a value for storage based on this DataType

      Parameters

      • value: unknown

        The value to serialize

      Returns unknown

      The serialized value

    • Set as unsigned

      Returns this

      DataTypes.INTEGER.UNSIGNED()
      DataTypes.BIGINT.UNSIGNED()
    • Set as zerofill

      Returns this

      DataTypes.INTEGER.ZEROFILL()
      DataTypes.INTEGER.UNSIGNED().ZEROFILL()
    • Generate SQL string with unsigned and zerofill options

      Parameters

      • baseType: string

      Returns string