Module sql_batch

Module sql_batch 

Source
Expand description

SQL batch request encoding.

This module provides encoding for SQL batch requests (packet type 0x01). Per MS-TDS spec, a SQL batch contains:

  • ALL_HEADERS section (required for TDS 7.2+)
  • SQL text encoded as UTF-16LE

Structs§

SqlBatch
SQL batch builder for more complex batches.

Functions§

encode_sql_batch
Encode a SQL batch request with auto-commit (no explicit transaction).
encode_sql_batch_with_transaction
Encode a SQL batch request with a transaction descriptor.