0

我在我的 android 应用程序中使用 Ormlite 和 SQLite。该应用程序有多个线程访问数据库。如何在 ormlite 中启用 SQLITE_CONFIG_SERIALIZED?

4

1 回答 1

0

You may be able to use the raw methods in the Daos to send commands to the underlying Sqlite database:

http://ormlite.com/docs/raw-update

Maybe something like:

fooDao.executeRaw("SQLITE_CONFIG_SERIALIZED;");

But it seems for this to work the Android Sqlite needs to be built a certain way:

http://sqlite.org/c3ref/c_config_getmalloc.html
于 2013-01-18T21:30:28.387 回答