viciious / go-tarantool

Tarantool 1.6+ connector for Go language
MIT License
49 stars 14 forks source link

Support UUID and Decimal types #60

Open BokarevNik opened 2 years ago

BokarevNik commented 2 years ago

Hello! Now decimal and UUID values aren't decoded in packets. For example, if I have space with one field of type 'uuid', packets which I get from joining with snap like here: https://pkg.go.dev/github.com/viciious/go-tarantool#example-Slave.JoinWithSnap-Sync, look something like this - Request:&tarantool.Insert{Space:0x201, Tuple:[]interface {}{(msgp.RawExtension)(0xc00037a260)}} If I get tuple as packet.Request.(tarantool.Insert).Tuple, it looks like this - [{"Data":"YUKSdM85T7e5ndpKCK3GeQ==","Type":2}]. I want to insert this tuple in tarantool space as UUID, is there any way it's possible? I saw similar issues for other connector: https://github.com/tarantool/go-tarantool/issues/90, https://github.com/tarantool/go-tarantool/issues/96

hackallcode commented 2 years ago

Decimal format is now supported in https://github.com/tarantool/go-tarantool/issues/96