tarantool - 如何使用 go-tarantool 在 Tarantool 中插入 UUID?
问题描述
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
解决方案
这是官方 Go 驱动程序不支持的新功能。您可以在此处跟踪实施进度并公开讨论
推荐阅读
- python - appJar 状态栏不会实时更新
- python - 在代码检查完每个选项后,是否可以让我的 else 语句出现?
- javascript - 我如何在角度/打字稿中传递回调
- c# - 如何保持 asp.net 传递到存储过程的字符串的一致性?
- java - JSON 响应中的重复字段
- c# - 提供一个期望 Action 作为回调的对象
- scala - Scala:如何将 ValidatedNel 的 HList 转换为 HList 的 ValidatedNel
- javascript - 将数组与字符串进行比较,并将在数组中找到的所有项目替换为字符串中的公共字符
- c# - 验证数据网格 C# 中的复选框
- reporting-services - 为表格报表中的单元格创建集合表达式