【发布时间】:2019-01-15 07:53:36
【问题描述】:
我必须合并一个arry to couchbase key-value array,我已经阅读了document,只有这个:
from couchbase.cluster import Cluster,PasswordAuthenticator
import couchbase.subdocument as SD
#other thing
bucket.upsert("all_goods",[])
bucket.mutate_in("all_goods",SD.array_append("",["a","b","c"])
bucket.mutate_in("all_goods",SD.array_append("",["1","2","3"])
我希望得到那个
all_goods => [a,b,c,1,2,3]
但是,我明白了:
all_goods => [[a,b,c],[1,2,3]]
我希望将数组合并到文档中
【问题讨论】:
标签: python-3.x couchbase