Skip to content

Commit

Permalink
dep v bump
Browse files Browse the repository at this point in the history
  • Loading branch information
mvysny committed Jan 25, 2024
1 parent 46034e6 commit 3ebf3de
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 17 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ tasks.withType<KotlinCompile> {

dependencies {
api(kotlin("stdlib-jdk8"))
api("com.gitlab.mvysny.jdbiorm:jdbi-orm:2.5")
api("com.gitlab.mvysny.jdbiorm:jdbi-orm:2.6")

// logging
implementation("org.slf4j:slf4j-api:$slf4jVersion")
Expand Down
3 changes: 2 additions & 1 deletion src/main/kotlin/com/github/vokorm/ConditionBuilder.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import com.gitlab.mvysny.jdbiorm.condition.Condition
import java.io.Serializable
import kotlin.reflect.KProperty1
import com.gitlab.mvysny.jdbiorm.condition.Expression
import com.gitlab.mvysny.jdbiorm.condition.NativeSQL

/**
* Creates a [Condition] programmatically: `buildCondition { Person::age lt 25 }`
Expand Down Expand Up @@ -100,7 +101,7 @@ public class ConditionBuilder<T : Any>(public val clazz: Class<T>) {
* Allows for a native SQL query: `"age < :age_p"("age_p" to 60)`
*/
public operator fun String.invoke(vararg params: Pair<String, Any?>): Condition =
NativeSQLCondition(this, mapOf(*params))
NativeSQL(this, mapOf(*params))
}

public infix fun Condition.and(other: Condition): Condition = and(other)
Expand Down
15 changes: 0 additions & 15 deletions src/main/kotlin/com/github/vokorm/NativeSQLCondition.kt

This file was deleted.

0 comments on commit 3ebf3de

Please sign in to comment.