selectDatabase static method

Future<void> selectDatabase()

Implementation

static Future<void> selectDatabase() async {
if (HycopFactory.serverType == ServerType.supabase) {
    dataBase = SupabaseDatabase();
  } else {
    dataBase = FirebaseDatabase();
  }
  await dataBase!.initialize();
  return;
}