Ext S: schema
Extension tag S (ASCII S) holds schema details that the base table definition lacks:
- column ids, which fix the slot order of the row format,
- fill values for columns added after rows were written (a missing trailing slot reads as the fill),
- hidden columns,
- index building state and JSON path,
- foreign key names.
The body is:
varint next_column ‖ varint ncols ‖ ncols × (varint column_id ‖ flag u8 ‖ [varint len ‖ fill as row-format])varint nidx ‖ nidx × (flag u8 ‖ [str json_path])[varint nfk ‖ nfk × str name]Column flag bit 0 means a fill follows and bit 1 means the column is hidden. Index flag bit 0 means the index is still building and bit 1 means a JSON path string follows; an index of kind JSON must have a path and no other kind may. Column ids must be below next_column and unique. The trailing foreign key names are optional.