{"repo":"ctripcorp/SQLlin","free":true,"listed":false,"github":"https://github.com/ctripcorp/SQLlin","clone":"git clone https://github.com/ctripcorp/SQLlin.git","description":"A DSL ORM library for Kotlin Multiplatform.","language":"C","stars":272,"topics":["android","ios","kotlin","sqlite","kotlin-jvm","kotlin-multiplaform","kotlin-multiplatform-library","kotlin-native-library","macos"],"license":"Apache-2.0","category":"mobile-apps","readme_excerpt":"SQLlin 中文版请见这里 SQLlin is an ORM library for Kotlin Multiplatform that is based on DSL and KSP. It uses SQLite under the hood. You can write SQL statements with your Kotlin code and these can be verified by Kotlin compiler. Sample just like be this: SQLlin is able to insert Kotlin objects into database directly, and could query Kotlin objects from database directly. The serialization and deserialization ability is based on kotlinx.serialization. SQLlin supports these platforms: - Multiplatform Common - Android (7.0+) - JVM (Java 11+, since 1.2.0 ) - iOS (arm64, simulatorArm64) - macOS (arm64) - watchOS (arm32, arm64, simulatorArm64, deviceArm64) - tvOS (arm64, simulatorArm64) - Linux (x64, arm64) - Windows (mingwX64) The architecture design of SQLlin is shown in the figure: SQLlin has 3 major parts: sqllin-dsl , sqllin-driver and sqllin-processor . The sqllin-driver is a set of common multiplatform SQLite low-level APIs, most of the time it is not recommended to use it directly. The sqllin-dsl is DSL implementations for SQL statements, it is based on sqllin-driver . The sqllin-processor uses KSP to process annotations and generate code for using with sqllin-dsl . You can learn how to use sqllin-dsl in these documentations: - Getting Start - Modify Database and Transaction - Query - Concurrency Safety - SQL Functions - Advanced Query I don't recommend using sqllin-driver directly, but if you want to learn more about it, you can read: - The sqllin-driver Basic Design and Usage R","default_branch":null,"files":null,"tree":[],"storefront":"/r/ctripcorp","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ctripcorp/SQLlin/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."}