Documentation
    Preparing search index...

    A 16-bit integer.

    Fallback policy:

    • If this type or its unsigned option is unsupported by the dialect, it will be replaced by a MEDIUMINT or greater, with a CHECK constraint to ensure the value is withing the bounds of an 16-bit integer.
    • If the zerofill option is unsupported by the dialect, an error will be raised.
    • If the length option is unsupported by the dialect, it will be discarded.
    DataTypes.SMALLINT
    

    Hierarchy (View Summary)

    Index
    usageContext: DataTypeUseContext | undefined

    Where this DataType is being used.

    • Called when a value is retrieved from the Database, and its DataType is specified. Used to normalize values from the database.

      Note: It is also possible to do an initial parsing of a Database value using AbstractDialect#registerDataTypeParser. That normalization uses the type ID from the database instead of a Sequelize Data Type to determine which parser to use, and is called before this method.

      Parameters

      • value: unknown

        The value to parse.

      Returns unknown