TinyBase logoTinyBase β

DatabaseChangeListener

The DatabaseChangeListener type describes a function that is used to listen for changes to the data in a database.

(tableName: string): void
TypeDescription
tableNamestring

The name of the table that has changed.

returnsvoid

This has no return value.

This is only used when developing custom database-oriented Persisters, and most TinyBase users will not need to be particularly aware of it.

This function should be called with the name of a relevant table that has changed, possible through the use of events, triggers, or notifications, dependent on the specific database implementation.

Since

v5.2.0