Granary_encoding.Index_keySourceOrder-preserving encoding of SQL values for use as B+-tree index keys. Encoded bytes compare correctly under Bytes.compare for all supported types. NULL sorts before all non-null values. Type ordering: NULL < INTEGER < REAL < TEXT < BLOB
Encode a single value. Result is order-preserving under Bytes.compare.
Encode a multi-column key with a rowid suffix. Result: concat of encode_value for each column + rowid suffix (8 bytes).