withPgType
Wraps a value in PgTyped to explicitly specify the target PostgreSQL type in a type-safe manner.
Return
The wrapped value.
Parameters
pgType
One of the built-in types.
Wraps a value in PgTyped with explicit schema and name.
Return
The wrapped value.
Parameters
name
Type name (e.g. "my_type").
schema
Schema name (optional). Left empty, the type is resolved through the search path.
isArray
Whether it's an array type (optional).
Wraps a value in PgTyped using explicit QualifiedName class.
Return
The wrapped value.
Parameters
pgType
The qualified type name.