Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

TypeSizeDescription
Bitmask(n)n/8 bytesA fixed-length bitmask of n bits
Int81 byte1-byte signed integer
Uint81 byte1-byte unsigned integer
Int162 bytes2-byte signed integer
Uint162 bytes2-byte unsigned integer
Int324 bytes4-byte signed integer
Uint324 bytes4-byte unsigned integer
Int648 bytes8-byte signed integer
Uint648 bytes8-byte unsigned integer
Float4 bytes4-byte floating-point number
Double8 bytes8-byte floating-point number
Number([n])VariableVariable-length number (optionally bound by n bytes in size)
DecimalVariableVariable-length floating-point number
UUID16 bytesUUID
StringVariableA string encoded with a given Charset
Date3 bytesA timezone-free date encoded as a year (15 bits), month (4 bits), day (5 bits)
Time4 bytesA timezone-free time encoded as padding (5 bits), hour (5 bits), minute (6 bits), second (6 bits), millisecond (10 bits)
Datetime7 bytesA timezone-free datetime encoded as (date, time)
InstantTimestamp8 bytesNumber of milliseconds since Jan 1, 1970 00:00:00.000 (with no timezone)
BLOBVariableVariable-size byte array

...

FieldSize
Schema version2 bytes
Flags1 2 byte
Key columns hash4 bytes
Key columns:
Key columns full size2 (3?) 4 bytes
Key columns varsize columns offsets table size2 bytes
Key columns varsize columns offsets tableVariable (number of non-null non-default varsize columns * 2(3?)4)
Key columns null-defaults mapnumber of columns / 8
Key columns fixed size valuesVariable
Key columns variable size valuesVariable
Value columns:
Value columns full size2 (3?) 4 bytes
Value columns varsize columns offsets table size2 bytes
Value columns varsize columns offsets tableVariable (number of non-null non-default varsize columns * 2(3?)4)
Value columns null-defaults mapnumber of columns / 8
Value columns fixed size valuesVariable
Value columns variable size valuesVariable

...