mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-23 16:22:15 +00:00
Serializes the value that is an instance of a type. The opposite of `deserialize` (previously known as `print`). All other actions operate on serialized values, yet up to now we were missing a way to go from human readable values to serialized ones. This prevented for example using `scylla types tokenof $pk` if one only had the human readable key value. Example: ``` $ scylla types serialize -t Int32Type -- -1286905132 b34b62d4 $ scylla types serialize --prefix-compound -t TimeUUIDType -t Int32Type -- d0081989-6f6b-11ea-0000-0000001c571b 16 0010d00819896f6b11ea00000000001c571b000400000010 $ scylla types serialize --prefix-compound -t TimeUUIDType -t Int32Type -- d0081989-6f6b-11ea-0000-0000001c571b 0010d00819896f6b11ea00000000001c571b ``` Closes #12029 * github.com:scylladb/scylladb: docs: scylla-types.rst: add mention of per-operation --help tools/scylla-types: add serialize operation tools/scylla-types: prepare for action handlers with string arguments tools/scylla-types: s/print/deserialize/ operation docs: scylla-types.rst: document tokenof and shardof docs: scylla-types.rst: fix typo in compare operation description