updates property

Stream<SqliteUpdate> get updates

An async stream of data changes happening on this database.

Listening to this stream will register an "update hook" on the native database. Each update 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, be aware that not every update to the database will be reported. In particular, updates to internal system tables like sqlite_sequence are not reported. Further, updates to WITHOUT ROWID tables or truncating deletes (without a WHERE clause) will not report updates either.

See also:

Implementation

Stream<SqliteUpdate> get updates;