InspectorService class final
Backend-agnostic facade behind the ext.basalt.* service extensions.
Resolves an instance id to its live Connection and delegates each
operation to a focused collaborator (SchemaReader, TableReader,
RowUpdater, SqlRunner). Because it works purely through the Connection
interface and the BasaltDevTools registry, it is directly unit-testable
without a VM service round-trip.
Constructors
- InspectorService()
-
Creates the shared inspector facade.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getSchema(
String id) → Future< SchemaDto> -
Introspects
id's schema into a transport-friendly model. -
getTableData(
String id, {required String table, int limit = 50, int offset = 0, String? orderBy, bool desc = false, List< ColumnFilter> filters = const []}) → Future<TablePageDto> -
Reads one page of rows from
tableon instanceid. -
listInstances(
) → Future< List< RegisteredInstance> > - The instances currently registered for inspection.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
runSql(
String id, String sql, [List< Object?> params = const []]) → Future<SqlResultDto> -
Runs an arbitrary SQL statement (dev-only; reads and writes) on
id. -
toString(
) → String -
A string representation of this object.
inherited
-
updateRow(
String id, {required String table, required Map< String, Object?> key, required Map<String, Object?> changes}) → Future<void> -
Updates a single row of
tableon instanceid:changeswherekey.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited