getCurrentDatabase static method

Future<Database> getCurrentDatabase()

获取当前数据库对象

Implementation

static Future<Database> getCurrentDatabase() async {
  if (_database == null) {
    await init();
  }
  return _database!;
}