Skip to content

Commit

Permalink
chore(model): Remove the unused transactionAsync() function
Browse files Browse the repository at this point in the history
This is a follow-up to f7dd719.

Signed-off-by: Sebastian Schuberth <sebastian@doubleopen.org>
  • Loading branch information
sschuberth committed Mar 22, 2024
1 parent ed75108 commit bb28def
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions model/src/main/kotlin/utils/DatabaseUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,10 @@ import java.util.concurrent.ConcurrentHashMap

import javax.sql.DataSource

import kotlinx.coroutines.Deferred

import org.apache.logging.log4j.kotlin.logger

import org.jetbrains.exposed.sql.Database
import org.jetbrains.exposed.sql.Transaction
import org.jetbrains.exposed.sql.transactions.experimental.suspendedTransactionAsync
import org.jetbrains.exposed.sql.transactions.transaction

import org.ossreviewtoolkit.model.config.PostgresConnection
Expand Down Expand Up @@ -118,12 +115,6 @@ object DatabaseUtils {
*/
fun <T> Database.transaction(statement: Transaction.() -> T): T = transaction(this, statement)

/**
* Start a new asynchronous transaction to execute the given [statement] on this [Database].
*/
suspend fun <T> Database.transactionAsync(statement: suspend Transaction.() -> T): Deferred<T> =
suspendedTransactionAsync(db = this, statement = statement)

/**
* Add a property with the given [key] and [value] to the [HikariConfig]. If the [value] is *null*, this
* function has no effect. (It is not specified how the database driver deals with *null* values in its
Expand Down

0 comments on commit bb28def

Please sign in to comment.