-
-
Notifications
You must be signed in to change notification settings - Fork 139
Kotlin API
Ohad Shai edited this page Oct 9, 2018
·
9 revisions
Although jasync-sql
is mostly written in Kotlin, most of the API's are written so it will be easily used from Java.
This page describes API's that are intended to use from Kotlin code.
- ResultSet - operator
invoke
. - RowData - operator
get
andinvoke
, generic casting. -
Configuration
andPoolConfiguration
are data classes, socopy
can be easily used.
Kotlin coroutines are not supported out of the box yet but can be used via extensions. Here is an example.
Once kotlinx.coroutines
will get to GA, we will add support for it.
An example Kotlin project can be found here: https://github.com/oshai/jasync-meets-ktor