tarantool / go-tarantool

Tarantool 1.10+ client for Go language
https://pkg.go.dev/github.com/tarantool/go-tarantool/v2
BSD 2-Clause "Simplified" License
180 stars 57 forks source link

Support IPROTO_TUPLE_FORMATS #362

Open oleg-jukovec opened 9 months ago

oleg-jukovec commented 9 months ago

Now tuples are decoded into structures according to the order of the fields in the structure. We need to support tuple format in IPROTO features to decode tuples into structures based on field names (or msgpack/v5 labels) in the structure.

This will allow users not to change the code when changing the space scheme (within reasonable limits).

See:

  1. https://github.com/tarantool/tarantool/blob/21112b066902338724f4f3671359f3e624b45938/src/box/iproto_features.h#L62-L79
  2. https://github.com/tarantool/roadmap-internal/issues/212