Google cloud platform 如何使用nodejs删除BigTable GCP中的单元格
我有一个键为“XYZ”的行,其中有一个列族名称“PQR”,因此如何使用nodejs删除其中有列限定符“abc”的单元格,Google cloud platform 如何使用nodejs删除BigTable GCP中的单元格,google-cloud-platform,google-cloud-functions,google-cloud-bigtable,bigtable,Google Cloud Platform,Google Cloud Functions,Google Cloud Bigtable,Bigtable,我有一个键为“XYZ”的行,其中有一个列族名称“PQR”,因此如何使用nodejs删除其中有列限定符“abc”的单元格, 有人可以帮助我使用语法或文档来做到这一点吗?您应该可以使用以下代码来做到这一点: const row = table.row('XYZ'); // Delete specific column within a family. let cols = [ 'PQR:abc' ]; row .deleteCells(cols) .then(result =>
有人可以帮助我使用语法或文档来做到这一点吗?您应该可以使用以下代码来做到这一点:
const row = table.row('XYZ');
// Delete specific column within a family.
let cols = [
'PQR:abc'
];
row
.deleteCells(cols)
.then(result => {
const apiResponse = result[0];
})
.catch(err => {
// Handle the error.
});
有关其他类似问题,请查看。如果你想了解更多关于这个问题的信息,这里是答案