Support for lookaside configuration params
Modified SQLiteDatabase to allow passing lookaside configuration to its static initializer. Encapsulated config in OpenParams and added an overloaded version of openDatabase with the new parameter. Configuration is changed in SQLiteConnection::nativeOpen, immediately after opening the database since lookaside memory configuration can only be changed when no connection is using it. Added SQLiteOpenHelper.setLookasideConfig method that is called from the constructor of the subclass. Test: bit FrameworksCoreTests:android.database.DatabaseGeneralTest Test: bit FrameworksCoreTests:android.database.SQLiteOpenHelperTest Bug: 38499845 Change-Id: Ifb761229b43c89c090939030fc25b8c480b9b9e2
Loading
Please register or sign in to comment