LogQueriesPlugin class
A plugin for the Devbar which adds a tab listing the statements the app itself issued.
The other half of DatabasePlugin. That one is a browser: it runs
the SQL you type and watches the tables you name, through the four
functions of a DatabaseAdapter. It never sees a statement the app ran on
its own. This one is the log, and it is fed the same way every other
reported channel is — the app calls recordAppEvent once and a scenario's
Events pane gets it too:
recordAppEvent(AppEvent.query(sql: sql, args: args, rows: rows.length));
So the wrapper a project writes around its database is written against one call, and both surfaces fill.
- Implemented types
Constructors
- LogQueriesPlugin(DevbarState devbar)
Properties
- devbar → DevbarState
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
queries
→ ValueStream<
List< LoggedQuery> > -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clear(
) → void -
dispose(
) → void -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reported(
AppEvent event) → void - Records one statement, as AppEvent.query composed it.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
init(
) → LogQueriesPlugin Function(DevbarState)