【发布时间】:2020-06-17 19:53:18
【问题描述】:
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
【问题讨论】:
标签: tarantool