Closed devendra2486 closed 3 years ago
SQLiteOpenHelper class has a constructor
public SQLiteOpenHelper(Context context, String name, CursorFactory factory, int version, DatabaseErrorHandler errorHandler)
@param errorHandler the {@link DatabaseErrorHandler} to be used when sqlite reports database
using this we can supply our custom DatabaseErrorHandler to get the callback of void onCorruption(SQLiteDatabase dbObj); and handle the DB corruption
OrmLiteSqliteOpenHelper class does not have any constructor which accepts DatabaseErrorHandler
SQLiteOpenHelper class has a constructor
public SQLiteOpenHelper(Context context, String name, CursorFactory factory, int version, DatabaseErrorHandler errorHandler)
@param errorHandler the {@link DatabaseErrorHandler} to be used when sqlite reports database
using this we can supply our custom DatabaseErrorHandler to get the callback of void onCorruption(SQLiteDatabase dbObj); and handle the DB corruption
OrmLiteSqliteOpenHelper class does not have any constructor which accepts DatabaseErrorHandler