SqlRaw¶
Escape hatch for SQL types this library doesn't natively map to a typed SqlValue. Carries the raw bytes the driver returned, the SQL type code it reported, and the indicator (byte length, or SQL_NULL_DATA if the cell was NULL but for some reason still surfaced as SqlRaw).
Read path: produced by _ColumnBindings for any column whose declared
SQL type isn't recognized.
Write path: binds the bytes back as SQL_C_BINARY with the original
sql_type_code. Faithful round-trip when the destination column accepts
binary input for that SQL type; behavior when it doesn't is driver-
specific.
Implements¶
- SqlValue val
Constructors¶
create¶
new val create(
sql_type_code': I16 val,
bytes': Array[U8 val] val,
indicator': I64 val)
: SqlRaw val^
Parameters¶
Returns¶
- SqlRaw val^
Public fields¶
let sql_type_code: I16 val¶
let bytes: Array[U8 val] val¶
let indicator: I64 val¶
Public Functions¶
string¶
Returns¶
- String iso^
c_data_type¶
Returns¶
- I16 val
sql_type¶
Returns¶
- I16 val
len_or_indptr¶
Returns¶
- I64 val
bind_to_odbc¶
fun box bind_to_odbc(
hstmt: Pointer[None val] tag,
param_num: U16 val,
ind_ptr: Pointer[I64 val] tag)
: I16 val
Parameters¶
Returns¶
- I16 val