Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/EmptyTag/150.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google cloud platform 如何使用nodejs删除BigTable GCP中的单元格_Google Cloud Platform_Google Cloud Functions_Google Cloud Bigtable_Bigtable - Fatal编程技术网

Google cloud platform 如何使用nodejs删除BigTable GCP中的单元格

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 =>

我有一个键为“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 apiResponse = result[0];
  })
  .catch(err => {
    // Handle the error.
  });
有关其他类似问题,请查看。如果你想了解更多关于这个问题的信息,这里是答案