Tarantool现在有一个内置类型UUID。
如何使用https://github.com/tarantool/go-tarantool插入记录并传递此字段
现在我有这样的想法:
Tuple field 1 type does not match one required by operation: expected uuid (0x17)尝试将UUID作为字符串插入时
"github.com/satori/go.uuid"
...
var (
Tarantool *tarantool.Connection
)
...
Tarantool.Insert("log", []interface{}{
uuid.NewV4().String(),
...索引:
index:
0: &0
unique: true
parts:
- type: uuid
is_nullable: false
fieldno: 1
id: 0
space_id: 513
type: HASH
name: primary
primary: *0发布于 2020-06-19 23:08:51
这是一个官方go驱动不支持的新功能。您可以跟踪实施进度并打开讨论here
https://stackoverflow.com/questions/62437296
复制相似问题