From 2008f4de7f624fc1fc21823afab072e7cb4c24d8 Mon Sep 17 00:00:00 2001 From: "Andrey.Tarashevskiy" Date: Wed, 22 Sep 2021 19:30:09 +0300 Subject: [PATCH] Exposed 0.35.1 release --- docs/ChangeLog.md | 25 +++++++++++++++++++++++++ exposed-bom/README.md | 4 ++-- exposed-spring-boot-starter/README.md | 4 ++-- gradle.properties | 2 +- 4 files changed, 30 insertions(+), 5 deletions(-) diff --git a/docs/ChangeLog.md b/docs/ChangeLog.md index 7f6f5783d9..f6eda859b9 100644 --- a/docs/ChangeLog.md +++ b/docs/ChangeLog.md @@ -1,3 +1,28 @@ +# 0.35.1 +Features: +* `kotlin-datetime` can be used for datetime mappings with new 'exposed-kotlin-datetime' module +* NULL FIRST/LAST sorting in queries with new SortOrder options ([#478](https://github.com/JetBrains/Exposed/issues/478), [#1343](https://github.com/JetBrains/Exposed/issues/1343)). Many thanks to [erwinw](https://github.com/erwinw) for a PR +* A new way to configure common settings for a database via `DatabaseConfig` (): +```kotlin +// An example with current available settings and their defaults +val dbConfig = DatabaseConfig { + sqlLogger = Slf4jSqlDebugLogger + useNestedTransactions = false + defaultFetchSize = -1 // unlimited + defaultIsolationLevel = -1 // DB specific + defaultRepetitionAttempts = 3 + warnLongQueriesDuration = null // no long query tracing + maxEntitiesToStoreInCachePerEntity = Int.MAX_VALUE // unlimited + keepLoadedReferencesOutOfTransaction = false +} +// databaseConfig available on each connect/connectPool functions +val database = Database.connect(datasource, databaseConfig = databaseConfig) +``` +* It's possible to limit the number of entities stored in EntityCache via `maxEntitiesToStoreInCachePerEntity` config parameter [#1302](https://github.com/JetBrains/Exposed/issues/1302) +* References can be stored within an Entity with enabled `keepLoadedReferencesOutOfTransaction` config parameter. It will allow getting referenced values outside the transaction block. +* `INSTERSECT` and `EXCEPT` set operators supported ([#402](https://github.com/JetBrains/Exposed/issues/402)) +* `SchemaUtils.statementsRequiredToActualizeScheme` function to get the list of statements required to actualize scheme by tables mappings + # 0.34.2 Features: * Supporting subqueries in insert and update statements. Added by [hfazai](https://github.com/hfazai) diff --git a/exposed-bom/README.md b/exposed-bom/README.md index 8844839c09..40e0d4aee5 100644 --- a/exposed-bom/README.md +++ b/exposed-bom/README.md @@ -17,7 +17,7 @@ Bill of Materials for all Exposed modules org.jetbrains.exposed exposed-bom - 0.34.2 + 0.35.1 pom import @@ -51,7 +51,7 @@ repositories { } dependencies { - implementation(platform("org.jetbrains.exposed:exposed-bom:0.34.2")) + implementation(platform("org.jetbrains.exposed:exposed-bom:0.35.1")) implementation("org.jetbrains.exposed", "exposed-core") implementation("org.jetbrains.exposed", "exposed-dao") implementation("org.jetbrains.exposed", "exposed-jdbc") diff --git a/exposed-spring-boot-starter/README.md b/exposed-spring-boot-starter/README.md index b8d592d75e..80d6313895 100644 --- a/exposed-spring-boot-starter/README.md +++ b/exposed-spring-boot-starter/README.md @@ -18,7 +18,7 @@ This starter will give you the latest version of [Exposed](https://github.com/Je org.jetbrains.exposed exposed-spring-boot-starter - 0.34.2 + 0.35.1 ``` @@ -28,7 +28,7 @@ repositories { mavenCentral() } dependencies { - implementation 'org.jetbrains.exposed:exposed-spring-boot-starter:0.34.2' + implementation 'org.jetbrains.exposed:exposed-spring-boot-starter:0.35.1' } ``` diff --git a/gradle.properties b/gradle.properties index 1694c09eee..ff1822f63a 100644 --- a/gradle.properties +++ b/gradle.properties @@ -2,5 +2,5 @@ org.gradle.parallel=false org.gradle.jvmargs=-Dfile.encoding=UTF-8 # group=org.jetbrains.exposed -version=0.34.2 +version=0.35.1 dialect=none