{"repo":"eygraber/sqldelight-androidx-driver","free":true,"listed":false,"github":"https://github.com/eygraber/sqldelight-androidx-driver","clone":"git clone https://github.com/eygraber/sqldelight-androidx-driver.git","description":"A SQLDelight Driver that wraps AndroidX Kotlin Multiplatform SQLite","language":"Kotlin","stars":94,"topics":["androidx","kotlin","kotlin-multiplatform","sqldelight","sqlite","androidx-sqlite"],"license":"MIT","category":"databases-storage","readme_excerpt":"SQLDelight AndroidX Driver The SQLDelight AndroidX Driver provides a [SQLDelight] driver that wraps [AndroidX Kotlin Multiplatform SQLite] libraries. It works with any of the available implementations of AndroidX SQLite. [SQLDelight docs] [Set up SQLite for KMP] [!TIP] Interested in trying out web ( wasmJs / js ) support? An alpha is in progress on the web branch — feedback welcome. Migrating from the pre-async version of the driver [!NOTE] If you are migrating from version 0.0.17 or earlier, check out the migration guide Getting Started 1. Add Sqlite Dependencies First setup SQLite dependencies following [Set up SQLite for KMP]. 2. Add AndroidX Driver Dependency Next add the dependency to your project. See [Consuming Via Gradle] for how to add a -SNAPSHOT release. 3. Configure Database Next configure the database. [!IMPORTANT] generateAsync must equal true since AndroidxSqliteDriver is a suspending driver. [!IMPORTANT] If you're producing a dynamic framework for a Kotlin/Native target (typically iOS) and using BundledSQLiteDriver() , set linkSqlite = false . SQLDelight defaults to passing -lsqlite3 to the linker so the framework links against the system SQLite, but androidx.sqlite:sqlite-bundled already statically bundles its own SQLite — leaving linkSqlite = true makes lld fail with library not found for -lsqlite3 . Usage [!TIP] AndroidX team recommends BundledSQLiteDriver but you can use whichever one suits your needs. See SQLite Driver Implementations for more info. Creat","default_branch":null,"files":null,"tree":[],"storefront":"/r/eygraber","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/eygraber/sqldelight-androidx-driver/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}