Android – sqlitefullexception: the database or disk is full (code 13) greendao

How do I resolve the sqlitefulexception in greendao when I delete a record from a table?

This is my stack trace:

android.database.sqlite.sqliteFullException: database or disk is full (code 13)
at android.database.sqlite.sqliteConnection.nativeExecute(Native Method)
at android.database.sqlite.sqliteConnection.execute(sqliteConnection.java:555)
at android.database.sqlite.sqliteSession.endTransactionUnchecked(sqliteSession.java:437)
at android.database.sqlite.sqliteSession.endTransaction(sqliteSession.java:401)
at android.database.sqlite.sqliteDatabase.endTransaction(sqliteDatabase.java:522)
at de.greenrobot.dao.AbstractDao.deleteInTxInternal(AbstractDao.java:613)
at de.greenrobot.dao.AbstractDao.deleteInTx(AbstractDao.java:623)

This is my code for deleting records from the database:

QueryBuilder<TaskD> qb = getTaskDDao(context).queryBuilder();
qb.where(TaskDDao.Properties.Uuid_task_h.eq(keyTaskH));
qb.build();
getTaskDDao(context).deleteInTx(qb.list());
getDaoSession(context).clear();

resolvent:

This has nothing to do with greendao. If the disk is full, it means it is full. You are out of disk space. According to your operation, running vacuum SQLite occasionally may defragment the database

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>