openTaskStore function

Future<TaskStore> openTaskStore()

Implementation

Future<TaskStore> openTaskStore() async {
  final dir = await getApplicationSupportDirectory();
  await Directory(dir.path).create(recursive: true);
  final dbPath = p.join(dir.path, 'ffmpeg_remux_tasks.db');
  final db = sqlite3.open(dbPath);
  return TaskStoreSqlite(db);
}