VPWwqgarrQwrOUNq method
Future<Database?>
VPWwqgarrQwrOUNq(
- _YIMTableName tableName
)
Implementation
Future<Database?> VPWwqgarrQwrOUNq(_YIMTableName tableName) async {
if (ZFLObPsphPxMTkby.wiyKdMNiWryRtbKu == null) {
ZFLObPsphPxMTkby.aGKqrIqLhjnzDFOq.PWrYGCYWdtzicinD("DB: Please init First!");
return null;
}
if (!PpWjInfcaubAfrsf.jCDyOuvykETrgvUF.aMsbEJZkqjhMlCZj()) {
ZFLObPsphPxMTkby.aGKqrIqLhjnzDFOq.PWrYGCYWdtzicinD("DB: Please login first!");
return null;
}
final dbName = tableName.name;
if (!sBcWPSwgfAGUHNyO.containsKey(dbName)) {
final path = "/yim/${ZFLObPsphPxMTkby.wiyKdMNiWryRtbKu!.appKey}/${ZFLObPsphPxMTkby.pXCwbjEEdyIuaOLd}/${dbName}.db";
sBcWPSwgfAGUHNyO[dbName] = kIsWeb ? await databaseFactoryWeb.openDatabase(path) : await databaseFactoryIo.openDatabase("${(await getApplicationDocumentsDirectory()).path}${path}");
}
return sBcWPSwgfAGUHNyO[dbName]!;
}