schema
Prints the live schema of an index database: schemaversion, every table and column, and row counts.
Read this when you need to know exactly what an index database contains before you query it: schema prints the schema version, every table and column, and row counts, read-only.
How to run it
Full flag list: schema in the CLI reference.
Flags
| Flag | Argument | Meaning | Default |
|---|---|---|---|
--db | <file.sqlite> | ||
--format | |||
--output | <file> |
Needs: index
Details
Prints the live schema of an index database: schema_version, every table and column, and row counts. Reach for it when you need to know exactly what an index DB contains before querying it, or to check its schema_version.
Running it from the CLI
drag-lint schema --db <file.sqlite> [--format text|json] [--output <file>]
Read-only.
Reaching it in the IDE
No IDE surface -- this is a CLI-only feature.
What it needs
An index IS required. The project's DB lives at
<project folder>\_D-RAG\<project file>.sqlite; run
drag-lint resolve-dbs --project <X.dproj> if unsure.
Example
Illustrative only:
drag-lint schema --db C:\Projects\MyApp\_D-RAG\MyApp.sqlite --format json
This would print MyApp's index schema -- version, tables, columns, and row
counts -- as JSON.