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.
Documentation | API Reference | Code Samples | Source Code
Maven coordinates
<dependency>
<groupId>com.couchbase.client</groupId>
<artifactId>kotlin-client</artifactId>
<version>1.0.0</version>
</dependency>
Changes since 1.0.0-dp.7
Improvements
-
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.)
-
KCBC-64 Added
Cluster.usersfor managing Couchbase users. -
KCBC-63 Added
Cluster.bucketsfor managing buckets. -
KCBC-26 Added
Cluster.queryIndexesfor managing N1QL query indexes. -
KCBC-66 Added
schedulerThreadCountclient setting for tuning the number of scheduler threads without having to supply your own scheduler.
Breaking changes
-
KCBC-76
SearchSort.byScore()order now defaults to descending instead of ascending. -
KCBC-74
GetResult.expiryis now non-null. An unknown expiry is now represented asExpiry.Unknown. -
KCBC-73 Removed
scope.defaultCollection(), because only the default scope has a default collection. If you were calling this method, you can replace it withscope.collection("_default"). -
KCBC-70 Minimum supported Kotlin version is 1.6.20.