Skip to content

Commit

Permalink
Rename Projection.Column extensions for LIKE operator
Browse files Browse the repository at this point in the history
Replaces the `*contains` naming convention to `*like` as not to be confused with the built in Kotlin `contains` extension on `String`
  • Loading branch information
wax911 committed Mar 9, 2021
1 parent 7baa9a2 commit ead9614
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ infix fun Projection.Column.notEndsWith(value: String): Criteria {
return Criteria.Operator(this, NOT_LIKE, "%$value")
}

infix fun Projection.Column.contains(value: String): Criteria {
infix fun Projection.Column.like(value: String): Criteria {
return Criteria.Operator(this, LIKE, "%$value%")
}

infix fun Projection.Column.notContains(value: String): Criteria {
infix fun Projection.Column.notLike(value: String): Criteria {
return Criteria.Operator(this, NOT_LIKE, "%$value%")
}

Expand Down

0 comments on commit ead9614

Please sign in to comment.