17 lines
422 B
Dart
17 lines
422 B
Dart
import 'dart:io';
|
|
|
|
import 'package:sqflite_common_ffi/sqflite_ffi.dart';
|
|
|
|
import 'jmdict/parser.dart';
|
|
import 'kanjidic/parser.dart';
|
|
import 'radkfile/parser.dart';
|
|
|
|
Future<void> main(List<String> arguments) async {
|
|
final db = await databaseFactoryFfi
|
|
.openDatabase(Directory.current.uri.resolve('main.db').path);
|
|
await addDataFromJMdict(db);
|
|
await addDataFromRADKFILE(db);
|
|
await addDataFromKANJIDIC(db);
|
|
}
|
|
|