Skip to content

Instantly share code, notes, and snippets.

import android.database.sqlite.SQLiteTransactionListener
import androidx.sqlite.db.SupportSQLiteDatabase
import androidx.sqlite.db.SupportSQLiteOpenHelper
import com.commonsware.cwac.saferoom.SafeHelperFactory
import java.util.concurrent.locks.ReentrantLock
class SupportSQLiteOpenHelperWrapped(val source: SupportSQLiteOpenHelper) : SupportSQLiteOpenHelper by source {
private val writableDatabaseLazy: SupportSQLiteDatabaseWrapped by lazy {
SupportSQLiteDatabaseWrapped(source.writableDatabase)