Are there any Postgres drivers/connectors for kotl...
# server
s
Are there any Postgres drivers/connectors for kotlin native?
👍 1
h
I created a Kotlin Native wrapper over libpq: https://github.com/hfhbd/postgres-native-sqldelight
s
Ah great, thanks are there any known caveats?
h
Only the one I mentioned in the readme: Keep in mind, until now, this is only a single-threaded wrapper over libpq using 1 connection only. There is no connection pool nor multithread support (like JDBC or R2DBC).
y
Also recently I started this project. Fully supports coroutines. https://github.com/smyrgeorge/sqlx4k
a
@Yorgos S. could that also be used on the JVM by leveraging JNI to jump from kotlin to C to rust?
y
@Alessandro Salvatori Probably you can do it, but I think is not that necessary. I mean that you can already find many libs that work well with Java
a
I haven't personally tried them myself, but friends have tried everything they could and were having a lot of issues with those that offered async APIs, so they resorted to wrapping jdbi into thread pools, which can also have its own issues