Skip to main content

Module mysql

Module mysql 

Source
Expand description

MySQL/MariaDB execution: bounded pools, TLS with server-name override, hard-failing READ ONLY transactions, MAX_EXECUTION_TIME hints, streaming with caps, lossless numerics, LOCAL INFILE disabled.

Structs§

ExecuteResult
MySqlExecuteParams

Enums§

MySqlError

Constants§

CONNECT_TIMEOUT
Legacy buildBaseOptions parity, including the TLS server-name override and the injection guardrails (multi-statements off, no LOCAL INFILE handler, keepalive, 15 s connect timeout). Deadline for establishing (handshake + health probe) a pooled connection; blackhole endpoints fail with a typed error at this bound.

Functions§

binary_json
Structured representation for binary column values so they can never be mistaken for ordinary text: {"type":"binary","encoding":"base64", "data":…} (D5).
build_opts
capture_backup_mysql
MySQL pre-mutation backup capture with row/byte caps.
execute_mysql_statement
Execute one classified statement through the pool. Reads run inside START TRANSACTION READ ONLY — when that cannot be established the operation fails hard (legacy continued on a read-write session).
pool_manager
value_to_json
Lossless value mapping: text-protocol DECIMAL/BIGINT arrive as raw bytes and stay strings; binaries base64; dates formatted like the legacy dateStrings: true.
value_with_column_type
Legacy numeric parity for text-protocol results: INT-family and FLOAT/DOUBLE parse to JSON numbers; BIGINT and DECIMAL stay strings (bigNumberStrings semantics — lossless round-trip).