ctripcorp / SQLlin

A DSL ORM library for Kotlin Multiplatform.
Apache License 2.0
219 stars 10 forks source link

Support for WASM target #34

Open kdabir opened 11 months ago

kdabir commented 11 months ago

Is WASM as target platform on the roadmap? WASM along with OPFS using sqlite-wasm library should make it quite usable.

qiaoyuang commented 11 months ago

Hi, that's a good idea, I would consider and research it. But I am inexperienced in WASM area, So, maybe I need some time. If I have any progress, I will update it in this issue. I have checked out a new brunch dev-wasm, if you want to submit PRs, I am also very welcome.

qiaoyuang commented 10 months ago

Hi @kdabir . I have tried to support Kotlin/WASM target, but I found some problems. For example, I use this way: implementation(npm("sqlite-wasm", "3.41.2")) to import SQLite WASM NPM package to sqllin-driver, but it didn't work, and it is very hard to solve. So, maybe we can wait Kotlin/WASM be more mature, and make SQLlin support it at that time.