We Kotlin, and we think you will too
We are pleased to announce the 1.0.0 GA release of the Couchbase Kotlin SDK.
The Couchbase Kotlin SDK runs on the JVM. It’s built on top of the same high performance I/O core as the Couchbase Java SDK. It provides idiomatic Kotlin features like default arguments, suspend functions, and tasteful DSLs.
Everything not annotated as “uncommitted” or “volatile” is now part of the stable public API.
A huge Thank You! goes out to everyone who provided feedback during the developer preview phase.
<dependency> <groupId>com.couchbase.client</groupId> <artifactId>kotlin-client</artifactId> <version>1.0.0</version> </dependency>
KCBC-69 The Capella Certificate Authority (CA) certificate is now bundled with the SDK, so you don’t need to configure a trust source when connecting to Capella. (The bundled Capella CA certificate is only trusted if you don’t specify an alternate trust source.)
Cluster.usersfor managing Couchbase users.
Cluster.bucketsfor managing buckets.
Cluster.queryIndexesfor managing N1QL query indexes.
schedulerThreadCountclient setting for tuning the number of scheduler threads without having to supply your own scheduler.
SearchSort.byScore()order now defaults to descending instead of ascending.
GetResult.expiryis now non-null. An unknown expiry is now represented as
scope.defaultCollection(), because only the default scope has a default collection. If you were calling this method, you can replace it with
KCBC-70 Minimum supported Kotlin version is 1.6.20.