Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-07-16 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-16 UTC."],[],[],null,["# androidx.sqlite.driver.bundled\n==============================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/androidx/sqlite/driver/bundled/package-summary \"View this page in Java\")\nCommon/AllAndroid/JVMNative/C/iOS\n\nClasses\n-------\n\n|---------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------|---------------|\n| [BundledSQLiteDriver](/reference/kotlin/androidx/sqlite/driver/bundled/BundledSQLiteDriver) | A [SQLiteDriver](/reference/kotlin/androidx/sqlite/SQLiteDriver) that uses a bundled version of SQLite included as a native component of this library. | Cmn android N |\n\nType aliases\n------------\n\n|-----------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [BundledSQLiteConnection](/reference/kotlin/androidx/sqlite/driver/bundled/BundledSQLiteConnection) | | N |\n| [BundledSQLiteDriver](/reference/kotlin/androidx/sqlite/driver/bundled/BundledSQLiteDriver) | A [SQLiteDriver](/reference/kotlin/androidx/sqlite/SQLiteDriver) that uses a bundled version of SQLite included as a native component of this library. | N |\n| [BundledSQLiteStatement](/reference/kotlin/androidx/sqlite/driver/bundled/BundledSQLiteStatement) | | N |\n| [OpenFlag](/reference/kotlin/androidx/sqlite/driver/bundled/OpenFlag) | | N |\n\nConstants summary\n-----------------\n\n|-------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----|\n| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [SQLITE_OPEN_CREATE](/reference/kotlin/androidx/sqlite/driver/bundled/package-summary#SQLITE_OPEN_CREATE())` = 4` Create the database if it does not already exist. | Cmn |\n| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [SQLITE_OPEN_EXRESCODE](/reference/kotlin/androidx/sqlite/driver/bundled/package-summary#SQLITE_OPEN_EXRESCODE())` = 33554432` The database connection will use extended result codes. | Cmn |\n| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [SQLITE_OPEN_FULLMUTEX](/reference/kotlin/androidx/sqlite/driver/bundled/package-summary#SQLITE_OPEN_FULLMUTEX())` = 65536` The database connection will use the \"serialized\" threading mode. | Cmn |\n| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [SQLITE_OPEN_MEMORY](/reference/kotlin/androidx/sqlite/driver/bundled/package-summary#SQLITE_OPEN_MEMORY())` = 128` Opens the database as a in-memory database. | Cmn |\n| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [SQLITE_OPEN_NOFOLLOW](/reference/kotlin/androidx/sqlite/driver/bundled/package-summary#SQLITE_OPEN_NOFOLLOW())` = 16777216` The filename is not allowed to contain a symbolic link. | Cmn |\n| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [SQLITE_OPEN_NOMUTEX](/reference/kotlin/androidx/sqlite/driver/bundled/package-summary#SQLITE_OPEN_NOMUTEX())` = 32768` The database connection will use the \"multi-thread\" threading mode. | Cmn |\n| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [SQLITE_OPEN_READONLY](/reference/kotlin/androidx/sqlite/driver/bundled/package-summary#SQLITE_OPEN_READONLY())` = 1` Opens the database in read-only mode. | Cmn |\n| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [SQLITE_OPEN_READWRITE](/reference/kotlin/androidx/sqlite/driver/bundled/package-summary#SQLITE_OPEN_READWRITE())` = 2` Opens the database for reading and writing. | Cmn |\n| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [SQLITE_OPEN_URI](/reference/kotlin/androidx/sqlite/driver/bundled/package-summary#SQLITE_OPEN_URI())` = 64` Interpret the filename as a URI. | Cmn |\n\nConstants\n---------\n\n### SQLITE_OPEN_CREATE\n\nCmn \nArtifact: [androidx.sqlite:sqlite-bundled](/jetpack/androidx/releases/sqlite) \n[View Source](https://cs.android.com/search?q=file:androidx/sqlite/driver/bundled/BundledSQLite.kt+symbol:SQLITE_OPEN_CREATE) \nAdded in [2.5.0](/jetpack/androidx/releases/sqlite#2.5.0) \n\n```\nconst val SQLITE_OPEN_CREATE = 4: Int\n```\n\nCreate the database if it does not already exist. \n\n### SQLITE_OPEN_EXRESCODE\n\nCmn \nArtifact: [androidx.sqlite:sqlite-bundled](/jetpack/androidx/releases/sqlite) \n[View Source](https://cs.android.com/search?q=file:androidx/sqlite/driver/bundled/BundledSQLite.kt+symbol:SQLITE_OPEN_EXRESCODE) \nAdded in [2.5.0](/jetpack/androidx/releases/sqlite#2.5.0) \n\n```\nconst val SQLITE_OPEN_EXRESCODE = 33554432: Int\n```\n\nThe database connection will use extended result codes. \n\n### SQLITE_OPEN_FULLMUTEX\n\nCmn \nArtifact: [androidx.sqlite:sqlite-bundled](/jetpack/androidx/releases/sqlite) \n[View Source](https://cs.android.com/search?q=file:androidx/sqlite/driver/bundled/BundledSQLite.kt+symbol:SQLITE_OPEN_FULLMUTEX) \nAdded in [2.5.0](/jetpack/androidx/releases/sqlite#2.5.0) \n\n```\nconst val SQLITE_OPEN_FULLMUTEX = 65536: Int\n```\n\nThe database connection will use the \"serialized\" threading mode.\n\nSee also [SQLite In Multi-Threaded Applications](https://www.sqlite.org/threadsafe.html) \n\n### SQLITE_OPEN_MEMORY\n\nCmn \nArtifact: [androidx.sqlite:sqlite-bundled](/jetpack/androidx/releases/sqlite) \n[View Source](https://cs.android.com/search?q=file:androidx/sqlite/driver/bundled/BundledSQLite.kt+symbol:SQLITE_OPEN_MEMORY) \nAdded in [2.5.0](/jetpack/androidx/releases/sqlite#2.5.0) \n\n```\nconst val SQLITE_OPEN_MEMORY = 128: Int\n```\n\nOpens the database as a in-memory database. \n\n### SQLITE_OPEN_NOFOLLOW\n\nCmn \nArtifact: [androidx.sqlite:sqlite-bundled](/jetpack/androidx/releases/sqlite) \n[View Source](https://cs.android.com/search?q=file:androidx/sqlite/driver/bundled/BundledSQLite.kt+symbol:SQLITE_OPEN_NOFOLLOW) \nAdded in [2.5.0](/jetpack/androidx/releases/sqlite#2.5.0) \n\n```\nconst val SQLITE_OPEN_NOFOLLOW = 16777216: Int\n```\n\nThe filename is not allowed to contain a symbolic link. \n\n### SQLITE_OPEN_NOMUTEX\n\nCmn \nArtifact: [androidx.sqlite:sqlite-bundled](/jetpack/androidx/releases/sqlite) \n[View Source](https://cs.android.com/search?q=file:androidx/sqlite/driver/bundled/BundledSQLite.kt+symbol:SQLITE_OPEN_NOMUTEX) \nAdded in [2.5.0](/jetpack/androidx/releases/sqlite#2.5.0) \n\n```\nconst val SQLITE_OPEN_NOMUTEX = 32768: Int\n```\n\nThe database connection will use the \"multi-thread\" threading mode.\n\nSee also [SQLite In Multi-Threaded Applications](https://www.sqlite.org/threadsafe.html) \n\n### SQLITE_OPEN_READONLY\n\nCmn \nArtifact: [androidx.sqlite:sqlite-bundled](/jetpack/androidx/releases/sqlite) \n[View Source](https://cs.android.com/search?q=file:androidx/sqlite/driver/bundled/BundledSQLite.kt+symbol:SQLITE_OPEN_READONLY) \nAdded in [2.5.0](/jetpack/androidx/releases/sqlite#2.5.0) \n\n```\nconst val SQLITE_OPEN_READONLY = 1: Int\n```\n\nOpens the database in read-only mode. \n\n### SQLITE_OPEN_READWRITE\n\nCmn \nArtifact: [androidx.sqlite:sqlite-bundled](/jetpack/androidx/releases/sqlite) \n[View Source](https://cs.android.com/search?q=file:androidx/sqlite/driver/bundled/BundledSQLite.kt+symbol:SQLITE_OPEN_READWRITE) \nAdded in [2.5.0](/jetpack/androidx/releases/sqlite#2.5.0) \n\n```\nconst val SQLITE_OPEN_READWRITE = 2: Int\n```\n\nOpens the database for reading and writing. \n\n### SQLITE_OPEN_URI\n\nCmn \nArtifact: [androidx.sqlite:sqlite-bundled](/jetpack/androidx/releases/sqlite) \n[View Source](https://cs.android.com/search?q=file:androidx/sqlite/driver/bundled/BundledSQLite.kt+symbol:SQLITE_OPEN_URI) \nAdded in [2.5.0](/jetpack/androidx/releases/sqlite#2.5.0) \n\n```\nconst val SQLITE_OPEN_URI = 64: Int\n```\n\nInterpret the filename as a URI."]]