How to use the @google-cloud/bigtable.Bigtable function in @google-cloud/bigtable

To help you get started, we’ve selected a few @google-cloud/bigtable examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github googleapis / nodejs-bigtable / samples / filterSnippets.js View on Github external
// [START bigtable_filters_limit_cells_per_row_offset]
  // [START bigtable_filters_limit_col_family_regex]
  // [START bigtable_filters_limit_col_qualifier_regex]
  // [START bigtable_filters_limit_col_range]
  // [START bigtable_filters_limit_value_range]
  // [START bigtable_filters_limit_value_regex]
  // [START bigtable_filters_limit_timestamp_range]
  // [START bigtable_filters_limit_block_all]
  // [START bigtable_filters_limit_pass_all]
  // [START bigtable_filters_modify_strip_value]
  // [START bigtable_filters_modify_apply_label]
  // [START bigtable_filters_composing_chain]
  // [START bigtable_filters_composing_interleave]
  // [START bigtable_filters_composing_condition]
  const {Bigtable} = require('@google-cloud/bigtable');
  const bigtable = Bigtable();

  /**
   * TODO(developer): Uncomment these variables before running the sample.
   */
  // const instanceId = 'YOUR_INSTANCE_ID';
  // const tableId = 'YOUR_TABLE_ID';
  const instance = bigtable.instance(instanceId);
  const table = instance.table(tableId);

  // [END bigtable_filters_limit_row_sample]
  // [END bigtable_filters_limit_row_regex]
  // [END bigtable_filters_limit_cells_per_col]
  // [END bigtable_filters_limit_cells_per_row]
  // [END bigtable_filters_limit_cells_per_row_offset]
  // [END bigtable_filters_limit_col_family_regex]
  // [END bigtable_filters_limit_col_qualifier_regex]
github googleapis / nodejs-bigtable / samples / readSnippets.js View on Github external
async function main(
  instanceId = 'YOUR_INSTANCE_ID',
  tableId = 'YOUR_TABLE_ID',
  readType = 'readRow'
) {
  // [START bigtable_reads_row]
  // [START bigtable_reads_row_partial]
  // [START bigtable_reads_rows]
  // [START bigtable_reads_row_range]
  // [START bigtable_reads_row_ranges]
  // [START bigtable_reads_prefix]
  // [START bigtable_reads_filter]
  const {Bigtable} = require('@google-cloud/bigtable');
  const bigtable = Bigtable();

  /**
   * TODO(developer): Uncomment these variables before running the sample.
   */
  // const instanceId = 'YOUR_INSTANCE_ID';
  // const tableId = 'YOUR_TABLE_ID';
  const instance = bigtable.instance(instanceId);
  const table = instance.table(tableId);
  // [END bigtable_reads_row]
  // [END bigtable_reads_row_partial]
  // [END bigtable_reads_rows]
  // [END bigtable_reads_row_range]
  // [END bigtable_reads_row_ranges]
  // [END bigtable_reads_prefix]
  // [END bigtable_reads_filter]
  switch (readType) {
github googleapis / nodejs-bigtable / system-test / fixtures / sample / src / index.ts View on Github external
async function main() {
  const bigtable = new Bigtable();
  console.log(bigtable);
}
main();

@google-cloud/bigtable

Cloud Bigtable Client Library for Node.js

Apache-2.0
Latest version published 4 months ago

Package Health Score

83 / 100
Full package analysis

Popular @google-cloud/bigtable functions