bitOr

abstract infix fun Field<T, Long>.bitOr(mask: Long)(source)
open infix fun KProperty1<T, Long>.bitOr(mask: Long)(source)
abstract infix fun Field<T, Int>.bitOr(mask: Int)(source)
open infix fun KProperty1<T, Int>.bitOr(mask: Int)(source)

Performs a bitwise OR operation on a field.

This operator should always be used with a field of type Int or Long.

Example

class Switch(
val _id: Int,
val expdata: Int,
)

switches.filter {
Switch::_id eq 1
}.updateOne {
Switch::expdata bitOr 10
}

External resources