:blobfoxowo: #Kotlin
public fun getDigest(group: String, file: String): String? { return executePreparedStatement(SQL_QUERIES.q("get-digest")) { statement -> statement.setString(1, group) statement.setString(2, file) statement.executeQuery().use { resultSet -> if (!resultSet.next()) throw NoSuchElementException("No digest for group=${group}, file=${file}") resultSet.getString("digest") } } }