weavori estimate

Pre-scan a database schema and report expected generation characteristics.

Last updated October 20, 2018

Usage

$weavori estimate [dsn] [flags]

The estimate command connects to a PostgreSQL database, introspects its schema, and reports the table count, approximate row counts (from PostgreSQL's built-in statistics), and an estimated generation time — without generating or writing any data. Use it to verify connectivity and size a generation run before starting it.

Flags

FlagDefaultDescription
--output"pretty"Output format: pretty, plain, or json
--api-key""API key for non-interactive authentication

Examples

Default output

$ weavori estimate "postgres://user:pass@localhost:5432/mydb"
Connecting to database...
Introspecting schema...
Connected.
Estimating...
Tables found: 10
Total rows (approx): 152340
Per-table estimates:
public.users: ~50000 rows
public.orders: ~82000 rows
public.order_items: ~20340 rows
...
Estimated generation time: 4 sec(s)