8000 Kotlin API · jasync-sql/jasync-sql Wiki · GitHub
[go: up one dir, main page]

Skip to content

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 and invoke, generic casting.
  • Configuration and PoolConfiguration are data classes, so copy 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

Clone this wiki locally
0