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.

Example

DataTypes.SMALLINT

Hierarchy (view full)

Constructors

Properties

#dialect: undefined | AbstractDialect<object, object>
usageContext: undefined | DataTypeUseContext

Where this DataType is being used.

Accessors

Methods