exposed-jdbc/src/main/kotlin/org/jetbrains/exposed/v1/jdbc/Query.kt [342:371]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - fun Query.andHaving(andPart: () -> Op) = adjustHaving { val expr = andPart() if (this == null) expr else this and expr } /** * Mutate Query instance and add `orPart` to having condition with `or` operator. * @return same Query instance which was provided as a receiver. */ fun Query.orHaving(orPart: () -> Op) = adjustHaving { val expr = orPart() if (this == null) expr else this or expr } /** * Mutate Query instance and add `andPart` to where condition with `and` operator. * @return same Query instance which was provided as a receiver. */ fun Query.andWhere(andPart: () -> Op) = adjustWhere { val expr = andPart() if (this == null) expr else this and expr } /** * Mutate Query instance and add `orPart` to where condition with `or` operator. * @return same Query instance which was provided as a receiver. */ fun Query.orWhere(orPart: () -> Op) = adjustWhere { val expr = orPart() if (this == null) expr else this or expr - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - exposed-r2dbc/src/main/kotlin/org/jetbrains/exposed/v1/r2dbc/Query.kt [347:376]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - fun Query.andHaving(andPart: () -> Op) = adjustHaving { val expr = andPart() if (this == null) expr else this and expr } /** * Mutate Query instance and add `orPart` to having condition with `or` operator. * @return same Query instance which was provided as a receiver. */ fun Query.orHaving(orPart: () -> Op) = adjustHaving { val expr = orPart() if (this == null) expr else this or expr } /** * Mutate Query instance and add `andPart` to where condition with `and` operator. * @return same Query instance which was provided as a receiver. */ fun Query.andWhere(andPart: () -> Op) = adjustWhere { val expr = andPart() if (this == null) expr else this and expr } /** * Mutate Query instance and add `orPart` to where condition with `or` operator. * @return same Query instance which was provided as a receiver. */ fun Query.orWhere(orPart: () -> Op) = adjustWhere { val expr = orPart() if (this == null) expr else this or expr - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -