startChangeNotification method
void
startChangeNotification([
- WiltChangeNotificationParameters? parameters,
- String? databaseName
Change notification start, see the WiltChangeNotification class for more details.
If a database name is not supplied the currently selected database is used.
If auth credentials are not set raise an exception.
Implementation
void startChangeNotification(
[WiltChangeNotificationParameters? parameters, String? databaseName]) {
if (_user == null) {
throw WiltException(WiltException.cnNoAuth);
}
String? name;
if (databaseName == null) {
name = db;
} else {
name = databaseName;
}
changeNotificationDbName = name;
_changeNotifier = _WiltChangeNotification(host, port, this,
useSSL: useSSL, dbName: name, parameters: parameters);
}