withPgType

Wraps a value in PgTyped to explicitly specify the target PostgreSQL type in a type-safe manner.


fun Any?.withPgType(name: String, schema: String = "", isArray: Boolean = false): PgTyped

Wraps a value in PgTyped with explicit schema and name.

Parameters

name

Type name (e.g. "my_type").

schema

Schema name (optional).

isArray

Whether it's an array type (optional).


Wraps a value in PgTyped using explicit QualifiedName class.