Module encode

Module encode 

Source
Expand description

TDS binary encoding for SQL values.

This module provides encoding of Rust values into TDS wire format for transmission to SQL Server.

Traits§

TdsEncode
Trait for encoding values to TDS binary format.

Functions§

encode_date
Encode a DATE value.
encode_datetime2
Encode a DATETIME2 value.
encode_datetimeoffset
Encode a DATETIMEOFFSET value.
encode_decimal
Encode a decimal value.
encode_time
Encode a TIME value.
encode_utf16_string
Encode a string as UTF-16LE with length prefix.
encode_utf16_string_no_len
Encode a string as UTF-16LE without length prefix (for fixed-length fields).
encode_uuid
Encode a UUID in SQL Server’s mixed-endian format.