Skip to content

Field

[Source]

A single column value within a Row. Contains the column name and the value decoded via the CodecRegistry into a FieldData type. Built-in types include Bool, I16, I32, I64, F32, F64, String, Bytea, PgArray, PgComposite, PgDate, PgTime, PgTimestamp, PgInterval, and None (for NULL). Custom codecs may produce additional types implementing FieldData.

class val Field is
  Equatable[Field val] ref

Implements


Constructors

create

[Source]

new val create(
  name': String val,
  value': FieldData val)
: Field val^

Parameters

Returns


Public fields

let name: String val

[Source]


let value: FieldData val

[Source]


Public Functions

eq

[Source]

Two fields are equal when they have the same name and the same value. Values must be the same type and compare equal using the type's own equality. Custom types that implement FieldDataEquatable participate in equality; custom types without it are never equal.

fun box eq(
  that: Field val)
: Bool val

Parameters

Returns


ne

[Source]

fun box ne(
  that: Field val)
: Bool val

Parameters

Returns