JetBrains / Exposed

Kotlin SQL Framework
http://jetbrains.github.io/Exposed/
Apache License 2.0
8.2k stars 683 forks source link

Can Exposed be used with Android SQLite implementation? #774

Open CommanderTvis opened 4 years ago

CommanderTvis commented 4 years ago

I want to access Android SQLite database with a fully-featured ORM (Android Jetpack Room is a too weak one), but as I know, Exposed can be used only with JDBC. What can I do?

kortov commented 4 years ago

I heard about https://github.com/codersgarage/BelleORM and https://github.com/vincentlauvlwj/Ktorm but I didn't use it.

Tapac commented 4 years ago

@CommanderTvis , why not to use jdbc driver for SQLite? Or it won't work with Android SQLite implementation?

CommanderTvis commented 4 years ago

@CommanderTvis , why not to use jdbc driver for SQLite? Or it won't work with Android SQLite implementation?

Xenial SQLite is not same as Android SQLite. Android SQLite doesn't provide any JDBC and javax.sql. DataSource support. There is an unofficial solution - SQLDroid, but it is pretty unstable.

Currently, I have to use H2, because it works on Android, and it is compatible with Exposed.

Это очень печально.

Tapac commented 4 years ago

It's planned in a near (I hope) future. #578