Skip to content

FieldData

[Source]

Open result type for decoded column values. All built-in types (Bool, I16, I32, I64, F32, F64, String, PgArray, PgComposite, PgDate, PgTime, PgTimestamp, PgInterval, Bytea) conform structurally via Stringable. Custom codecs return their own types implementing this interface.

The encode path (FieldDataTypes) remains a closed union because parameters must map to known PostgreSQL OIDs for the wire protocol. The decode path is open because result values just need to be readable.

interface val FieldData

Public Functions

string

[Source]

fun box string()
: String iso^

Returns