initialize static method
void
initialize()
Implementation
static void initialize() async {
//创建table
String path = await getDatabasesPath();
String dbPath = "$path/lesntec/lesntec_db.db";
File file = File(dbPath);
bool isExist = file.existsSync();
Database db = await openDatabase("$path/lesntec/lesntec_db.db");
database = db;
// final db = sqlite3.open(folderName);
if (!isExist) {
db.execute(
"CREATE TABLE lesntec_scans (id TEXT NOT NULL PRIMARY KEY,name TEXT NOT NULL,taskId TEXT NOT NULL,actualOrder TEXT NOT NULL,scan INTERGE NOT NULL,upload INTERGE NOT NULL,params TEXT NOT NULL,apiUrl TEXT NOT NULL,splitNum INTERGE NOT NULL);");
}
}