https://kotlinlang.org logo
#exposed
Title
# exposed
d

Dragos Rachieru

10/21/2023, 7:36 PM
Hello, I created a backend JVM app using Exposed and Ktor. Can I create an android app that hosts the server using SQLite?
e

e5l

10/23/2023, 11:57 AM
Hey! I think it should be possible with exposed and ktor-server-netty.
d

Dragos Rachieru

10/23/2023, 1:10 PM
I tried with the xerial jdbc but it crashes, unsatisfied link exception
Guess this is no longer an exposed issue
e

e5l

10/23/2023, 1:30 PM
Could you tell me what version xerial is used?
d

Dragos Rachieru

10/23/2023, 1:33 PM
I just discovered that I have to manually extract the
so
files, will try again and update with the result
👍 1
Nope, it did not work:
Copy code
Caused by: org.jetbrains.exposed.exceptions.ExposedSQLException: java.sql.SQLFeatureNotSupportedException: not implemented by SQLite JDBC driver
SQL: [Failed on expanding args for INSERT: org.jetbrains.exposed.sql.statements.BatchInsertStatement@ff06b82]
Copy code
override fun find(enum: RoomStatus): RoomStatusEntity? {
    return RoomStatusEntity.find { RoomStatusTable.name eq enum.name }.singleOrNull()
  }
In the end it worked, I used the wrong version in gradle
2 Views