Skip to content

Bytea

[Source]

Wraps Array[U8] val for PostgreSQL bytea columns (OID 17). Use .data to access the raw bytes.

This type appears in result fields where previous versions returned Array[U8] val directly. The wrapper is needed because Array[U8] val does not implement Stringable, which FieldData requires.

class val Bytea is
  FieldData val,
  Equatable[Bytea val] ref

Implements


Constructors

create

[Source]

new val create(
  data': Array[U8 val] val)
: Bytea val^

Parameters

Returns


Public fields

let data: Array[U8 val] val

[Source]


Public Functions

eq

[Source]

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

Parameters

Returns


string

[Source]

Returns a hex representation of the bytes (e.g., \\xdeadbeef).

fun box string()
: String iso^

Returns


ne

[Source]

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

Parameters

Returns