Hello all! Some days ago I released the new versi...
# server
y
Hello all! Some days ago I released the new version of sqlx4k. A high-performance, non-blocking database driver for PostgreSQL, MySQL, and SQLite, written for Kotlin Native. The new version includes several fixes and optimizations. Is still in early stage though. I would like to here your opinions 🙂 https://github.com/smyrgeorge/sqlx4k
🙌 2
c
hey yorgos! I have a problem building:
Copy code
* What went wrong:
Execution failed for task ':sqlx4k-codegen:compileKotlinJvm'.
> Inconsistent JVM-target compatibility detected for tasks 'compileJava' (18) and 'compileKotlinJvm' (17).
  
  Consider using JVM Toolchain: <https://kotl.in/gradle/jvm/toolchain>
  Learn more about JVM-target validation: <https://kotl.in/gradle/jvm/target-validation>
i can see that you set the java jvm version to 17 here: https://github.com/smyrgeorge/sqlx4k/blob/549bf357fe32d56580318295fbe61eb55dd0e947[…]/smyrgeorge/sqlx4k/multiplatform/MultiplatformJvmConventions.kt but for the kotlin jvm target it uses the version of the jvm that runs gradle. so it currently only works when running with jdk 17
y
If you change it to Java 18 it works?
c
i ran it with jdk 17 and then it worked 🙂
🙂 1
y
Ok, perhaps I should change it to 18 anyway
c
why not 21? its the current LTS version
y
Yeah maybe 21
c
just set it for kotlin and java then it should be fine
y
In general this only affects the code generation module
In which project you will use this library? I would like to here your comments. I’m currently using it in production, but in a small project, with ktor. Maybe some features are still missing or aren’t 100% right, so I any information would be beneficial to keep expanding the project 🙂
c
I have an orm lib that is currently jvm only and I am thinking of making it multi platform. (its closed source currently)
y
Ok. The integration with an orm would be a nice exercise to see if for example the APIs are complete. So, if you find anything that could be changed feel free to send a message at the discussion page of the project. 🙂
c
I will. if I ever get to the point. need to make all my source multiplatform first 🙂
y
If also you need a logger, take a look here: https://github.com/smyrgeorge/log4k
✅ 1
c
thanks!