com.crobox.clickhouse.dsl.column.ScalaBooleanFunctions.scala Maven / Gradle / Ivy
package com.crobox.clickhouse.dsl.column
import com.crobox.clickhouse.dsl.{isEqual, Const, TableColumn}
import com.crobox.clickhouse.dsl.marshalling.QueryValueFormats._
trait ScalaBooleanFunctions {
self: Magnets with ComparisonFunctions =>
trait ScalaBooleanFunctionOps {
self: ConstOrColMagnet[_] =>
def isFalse: TableColumn[Boolean] = isEqual(self, Const(false))
def isTrue: TableColumn[Boolean] = isEqual(self, Const(true))
}
}