Skip to content

SqlText

[Source]

Wraps String val. Validated UTF-8 at the FFI boundary. Binds zero-copy: ODBC reads bytes directly out of the String's backing buffer.

class val SqlText is
  SqlValue val

Implements


Constructors

create

[Source]

new val create(
  v: String val)
: SqlText val^

Parameters

Returns


Public fields

let value: String val

[Source]


Public Functions

string

[Source]

fun box string()
: String iso^

Returns


c_data_type

[Source]

fun box c_data_type()
: I16 val

Returns


len_or_indptr

[Source]

fun box len_or_indptr()
: I64 val

Returns


bind_to_odbc

[Source]

fun box bind_to_odbc(
  hstmt: Pointer[None val] tag,
  param_num: U16 val,
  ind_ptr: Pointer[I64 val] tag)
: I16 val

Parameters

Returns


sql_type

[Source]

fun box sql_type()
: I16 val

Returns