mirror of https://github.com/tasks/tasks
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
594 B
Kotlin
20 lines
594 B
Kotlin
package com.todoroo.andlib.sql
|
|
|
|
class Operator private constructor(private val operator: String) {
|
|
override fun toString() = operator
|
|
|
|
companion object {
|
|
val eq = Operator("=")
|
|
val isNull = Operator("IS NULL")
|
|
val isNotNull = Operator("IS NOT NULL")
|
|
val and = Operator("AND")
|
|
val or = Operator("OR")
|
|
val not = Operator("NOT")
|
|
val like = Operator("LIKE")
|
|
val `in` = Operator("IN")
|
|
val exists = Operator("EXISTS")
|
|
val gt = Operator(">")
|
|
val lt = Operator("<")
|
|
val lte = Operator("<=")
|
|
}
|
|
} |