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§
Enums§
Constants§
- CONNECT_
TIMEOUT - Legacy
buildBaseOptionsparity, 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
(
bigNumberStringssemantics — lossless round-trip).