在pyarango-arangodb中创建唯一索引

2024-10-03 19:26:16 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试为我的收藏添加一个唯一的索引。 我正在编写代码:

conn = Connection()
db = conn['textBook']
db['Users'].ensureHashIndex('word', unique = True);

有“现有的数据库”和“现有的”数据库

在pyArango.theExceptions.CreationError:参数错误。错误:{u'errorMessage':u'bad parameter',u'errorNum':10,u'code':400,u'error':True}

在函数\u create(raise CreationError(data['errorMessage',data))中创建索引时发生此错误

哪些参数不正确?在


Tags: 代码数据库truedbdata参数错误connection