count: Counting records
This command mostly works like the cp
command, except that it prints out a number of rows. Check your driver to see if it supports count
.
Command-line help
Usage: dbcrossbar count [OPTIONS] <LOCATOR>
Arguments:
<LOCATOR> The locator specifying the records to count
Options:
--schema <SCHEMA> The schema to use (defaults to input table schema)
--temporary <TEMPORARIES> Temporary directories, cloud storage buckets, datasets to use
during transfer (can be repeated)
--from-arg <FROM_ARGS> Pass an extra argument of the form `key=value` to the source
driver
--from-format <FROM_FORMAT> For directory- and file-like data sources, the format to assume.
If not specified, `dbcrossbar` will use the file extension to
guess the format
--where <WHERE_CLAUSE> SQL where clause specifying rows to use
-h, --help Print help
EXAMPLE LOCATORS:
postgres://localhost:5432/db#table
bigquery:project:dataset.table