PgTyped

data class PgTyped(val value: Any?, val pgType: QualifiedName)

Wraps a value to explicitly specify the target PostgreSQL type.

Causes addition of a type cast (::pgType) to the generated SQL fragment. Useful for handling type ambiguities, e.g., with arrays.

Parameters

value

Value to embed in the query (avoid using with data classes where this is added automatically!).

pgType

PostgreSQL type name to which the value should be cast.

Constructors

Link copied to clipboard
constructor(value: Any?, pgType: QualifiedName)

Properties

Link copied to clipboard
Link copied to clipboard
val value: Any?