reset method

  1. @override
Future<void> reset(
  1. Map<String, Object?> options
)

Destroys the database described by options so database reset can rebuild it from scratch by re-running migrations.

Implementation

@override
Future<void> reset(Map<String, Object?> options) async {
  final path = _path(options);
  if (path == ':memory:') return;
  final file = File(path);
  if (file.existsSync()) file.deleteSync();
}