literal

fun <T : Any> literal(value: T): LiteralOp<T>

Returns the specified non-null scalar value as an SQL literal.

Supported values are booleans, signed and unsigned integer and floating-point numbers, BigDecimal, strings, characters, byte arrays, Uuid, and UUID. Values from optional modules, such as date and time types, should use their module's typed literal function instead.

This is a convenience function to replace direct usage of *type*Literal methods.

For example:

val status = literal("ready")

Throws

If value has no automatically resolved literal type.