clear method

  1. @override
Future clear(
  1. String? correlationId
)

Clears component state.

  • correlationId (optional) transaction id to trace execution through call chain.

Implementation

@override
Future clear(String? correlationId) async {
  // Return error if collection is not set
  if (this.tableName_ == null) {
    throw new Exception('Table name is not defined');
  }

  var query = "DELETE FROM " + this.quotedTableName_();

  await client_!.query(query);
}