devtools library
DevTools inspector host for the Basalt Dart ORM.
A second entrypoint of package:basalt, kept separate from
package:basalt/basalt.dart so plain ORM users don't pull in the inspector
runtime. Register live connections with BasaltDevTools.register to browse,
filter, and edit their tables and run raw SQL from the DevTools "basalt" tab.
Dev-only: the underlying ext.basalt.* service extensions require the VM
service (debug / --observe) and are absent from release builds.
Client tooling (DevTools extension, MCP server) that calls these
extensions should import package:basalt/devtools_client.dart instead.
Classes
- BasaltDevTools
- Process-wide registry of live Connections exposed to the DevTools inspector.
- ColumnDto
- A table column in the transport model.
- ColumnFilter
-
One column predicate for
InspectorService.getTableData. - ForeignKeyDto
- A foreign-key target on a column.
- InspectorService
-
Backend-agnostic facade behind the
ext.basalt.*service extensions. - RegisteredInstance
- Public description of a registered connection.
- SchemaDto
- The schema of one instance.
- SqlResultDto
-
Result of
InspectorService.runSql: aread(columns+rows), awrite(executed, optional affected count), or anerror. - TableDto
- A table and its columns in the transport model.
- TablePageDto
- One page of table rows.
Enums
- BasaltExtension
-
The
ext.basalt.*VM service extensions that make up the inspector protocol.
Exceptions / Errors
- InspectorException
- Raised when the inspector is asked about an unknown instance/table/column.