PgTyped

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

Wraps a value to explicitly specify the target PostgreSQL type.

Useful for handling type ambiguities, e.g., with arrays.

Throws

INVALID_ARGUMENT if value is itself a PgTyped.

Constructors

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

Properties

Link copied to clipboard

PostgreSQL type name to which the value should be cast.

Link copied to clipboard
val value: Any?

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