我知道我可以用
GET _all_dbs
以及数据库的最后一次更改
GET /{db}/_changes?descending=true&limit=1
结果如下:
{
"results":[
{
"seq":112,
"id":"20e3480f5db4802d94a8193ac2246ae7",
"changes":[
{
"rev":"2-fb8204608047ce016282acbf3239cd01"
}
],
"deleted":true
}
],
"last_seq":112
}
现在是否可以将这些语句组合起来,得到如下结果:
{
"results":[
{
"db1":"1-fb8204608047ce016282acbf3239cd01"
},
{
"db2":"2-fb8204608047ce016282acbf3239cd02"
},
{
"db3":"2-fb8204608047ce016282acbf3239cd03"
},
{
"db4":"2-fb8204608047ce016282acbf3239cd04"
}
]
}
其中“db1”是数据库名称,“2-fb8204608047ce016282acbf3239cd04”是数据库的最后一个_rev。