mini\Table\Types\ColumnType final enum

Documentation

Column data type for comparison semantics

The primary purpose is determining whether string collation should be used for comparisons. Numeric and datetime types use simple binary comparison (<=>), while text columns need locale-aware collation.

Inheritance

Implements: UnitEnum

Cases (8)

Int = NULL
Float = NULL
Decimal = NULL
Text = NULL
Date = NULL
Time = NULL
DateTime = NULL
Binary = NULL

Properties (1)

public readonly string $name

Methods (5)

Whether this column type should use locale-aware collation for sorting

Whether this column type stores numeric values

Whether this column type requires custom comparison (not native PHP <=>)

Get the SQL column type name

Documentation missing

Source

src/Table/Types/ColumnType.php:12-81