This will only work with the Android Gradle Plugin for now. Fully Kotlin
support is coming.
Installing
Add libsql as a implementation dependency in Gradle:In-Memory Databases
libSQL supports connecting to in-memory databases for cases where you don’t require persistence:Local Development
You can work locally using an SQLite file:Embedded Replicas
You can work with embedded replicas that can sync from the remote URL and delegate writes to the remote primary database:Manual Sync
Thesync function allows you to sync manually the local database with the
remote counterpart:
Simple query
You can pass a string toquery() to invoke a SQL statement, as well as
optional arguments:
Placeholders
libSQL supports the use of positional and named placeholders within SQL statements:Positional
Named