commits property

Stream<void> get commits

An async stream that fires after each commit.

Listening to this stream will register a "commit hook" on the native database. Each commit that sqlite3 reports through that hook will then be added to the stream.

Note that the stream reports updates asynchronously, e.g. one event loop iteration after sqlite reports them.

Also note this works in conjunction with commitFilter. If the filter function is not null and returns false, the commit will not occur and this stream will not fire.

See also:

Implementation

Stream<void> get commits;