Introspection
Introspection is FeatureQL asking about itself: what type a feature has, which version of the language runs, what a persisted feature is made of, how a query will compile, and what its canonical form is. You use these tools while you write a query, not as a separate product. They need nothing beyond FeatureQL.
There are two kinds:
| Kind | What it is | Where it goes | What you get back |
|---|---|---|---|
| In the query | TYPEOF(), SQLTYPEOF(), DESCRIBE(), VERSION(), RETURN TRACE, warning acknowledgements | Inside a RETURN, next to your features | Columns of the result |
| Statements | DESCRIBE, SHOW CREATE, SHOW DOCS, SHOW TESTS, SHOW FUNCTIONS, temporary overlays | Run on their own, or as a prefix to a query | A report about the catalog or the query |
Explore features walks through SHOW FEATURES on a persisted catalog: finding definitions, filtering, and analyzing what depends on what.
Two statements get more room than the Statements page gives them:
- More on EXPLAIN :
EXPLAINcompiles a statement and returns its plan as JSON, without running it. - More on FORMAT :
FORMATrewrites a query into its canonical layout, andFIXmigrates it to strict syntax.
The same tools are reachable from Python (client.validate, client.diagnose, client.describe: see Python library ) and from the HTTP and MCP wrappers of the demos repo .
Related
- Language tour: FeatureQL for the Impatient
- Persisting features: Persistence
- Statement syntax: All statements
On this page