From bc2a4f0e2baf376bfee8775ff4e17dd0db3050a9 Mon Sep 17 00:00:00 2001 From: Remy Lagrois <89809497+rem-lag@users.noreply.github.com> Date: Tue, 29 Nov 2022 00:02:09 -0500 Subject: [PATCH] cbt: add page (#9563) * add cbt command page and examples * add colons * linter edits * couple more edits * fam1,qual1,etc * Update pages/common/cbt.md * Update pages/common/cbt.md * Update pages/common/cbt.md * Update pages/common/cbt.md * Update pages/common/cbt.md * Update pages/common/cbt.md * Update pages/common/cbt.md * Update pages/common/cbt.md * Update pages/common/cbt.md * Update pages/common/cbt.md * Update pages/common/cbt.md * Update pages/common/cbt.md * Update pages/common/cbt.md * Update pages/common/cbt.md --- pages/common/cbt.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 pages/common/cbt.md diff --git a/pages/common/cbt.md b/pages/common/cbt.md new file mode 100644 index 000000000..2ddd2efec --- /dev/null +++ b/pages/common/cbt.md @@ -0,0 +1,28 @@ +# cbt + +> Utility for reading data from Google Cloud's Bigtable. +> More information: . + +- List tables in the current project: + +`cbt ls` + +- Print count of rows in a specific table in the current project: + +`cbt count "{{table_name}}"` + +- Display a single row from a specific table with only 1 (most recent) cell revision per column in the current project: + +`cbt lookup "{{table_name}}" "{{row_key}}" cells-per-column={{1}}` + +- Display a single row with only specific column(s) (omit qualifier to return entire family) in the current project: + +`cbt lookup "{{table_name}}" "{{row_key}}" columns="{{family1:qualifier1,family2:qualifier2,...}}"` + +- Search up to 5 rows in the current project by a specific regex pattern and print them: + +`cbt read "{{table_name}}" regex="{{row_key_pattern}}" count={{5}}` + +- Read a specific range of rows and print only returned row keys in the current project: + +`cbt read {{table_name}} start={{start_row_key}} end={{end_row_key}} keys-only=true`