Skip to content

SqlBool

[Source]

SQL boolean value. value is the public Bool; _byte is the 1-byte form whose address we hand to SQLBindParameter (Pony's Bool layout isn't a documented 1-byte guarantee, so we keep an explicit U8).

class val SqlBool is
  SqlValue val

Implements


Constructors

create

[Source]

new val create(
  v: Bool val)
: SqlBool val^

Parameters

Returns


Public fields

let value: Bool val

[Source]


Public Functions

string

[Source]

fun box string()
: String iso^

Returns


c_data_type

[Source]

fun box c_data_type()
: I16 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


len_or_indptr

[Source]

fun box len_or_indptr()
: I64 val

Returns