FieldId

Type Alias FieldId 

Source
pub type FieldId = u32;
Expand description

Unique identifier for a column within a table.

Field IDs are 32-bit unsigned integers, allowing up to ~4.3 billion columns per table. This type is stored in LogicalFieldId::field_id and must match that bitfield width.

ยงSpecial Values

  • Field ID 0 (ROW_ID_FIELD_ID) is reserved for row ID columns
  • Field ID u32::MAX is reserved for MVCC created_by columns
  • Field ID u32::MAX - 1 is reserved for MVCC deleted_by columns
  • User columns receive IDs starting from 1