Skip to content

MaxColumnBytes

[Source]

Validated upper bound on bytes read per text/decimal column. Constructed once at the connection boundary; downstream code can trust the value is within [min(), max()].

class val MaxColumnBytes

Constructors

create

[Source]

new val create(
  n: USize val)
: MaxColumnBytes val^ ?

Parameters

Returns


Public Functions

apply

[Source]

fun box apply()
: USize val

Returns


min

[Source]

Floor: text column buffers must hold at least a small row's worth of data plus a null terminator. 4 KiB matches the pre-existing floor in _ColumnBindings.

fun tag min()
: USize val

Returns


max

[Source]

Ceiling: ODBC length indicators (SQLLEN) are signed 64-bit on the platforms we support, so no single value can exceed I64.max_value() bytes regardless of the driver.

fun tag max()
: USize val

Returns