Join Slack
Powered by
one more thing, how can I connect to local databas...
# kotlin-native
g
Gronek
11/22/2017, 5:54 PM
one more thing, how can I connect to local database (postgresql/sqlite/mysql/mariadb) with kotlin native? I know, that I can do it with requery, but then i need to use JVM version. Do I have to use C-lang libraries?
o
olonho
11/22/2017, 6:41 PM
Yes, see for example sqlite access in Kotlinconf Spinner app:
https://github.com/JetBrains/kotlinconf-spinner/blob/master/kotlin-native/samples/fullstack/sql/src/main/kotlin/ksqlite/KSqlite.kt
olonho
11/22/2017, 6:43 PM
And similar for mysql, see this C example:
https://www.cyberciti.biz/files/mysql-c-api.c.txt
3
Views
Open in Slack
Previous
Next