weavori estimate
Pre-scan a database schema and report expected generation characteristics.
Usage
weavori estimate [dsn] [flags]
The estimate command connects to a PostgreSQL database, introspects its schema, and prints a summary of tables, columns, and foreign key relationships. Use this to preview a schema before running a full generation.
Flags
| Flag | Default | Description |
|---|---|---|
--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.
Found 3 schema(s).
"public": 8 table(s)
- users (6 cols, 0 FK(s))
PK: [id]
- orders (4 cols, 1 FK(s))
PK: [id]
...
"analytics": 2 table(s)
- events (4 cols, 0 FK(s))
- sessions (3 cols, 1 FK(s))
PK: [id]
Estimating...
The output includes per-table breakdowns of column count, primary keys, and foreign key references.
JSON output (for scripting)
weavori estimate "postgres://user:pass@localhost:5432/mydb" --output json
{"schemas": [...], "tables": [...], "estimated_rows": 150000, "duration": "2.3s"}