Skip to main content

Module compat

Module compat 

Source

Structsยง

CompatCommand
Run compatibility tests in bare distributed mode.
EtcdGuard ๐Ÿ”’
Guard that stops/removes Docker etcd on drop (panic or early exit). Disarm before normal cleanup to avoid double-cleanup.
ParsedStatement ๐Ÿ”’
A parsed SQL statement with sqlness comments and interceptors.

Enumsยง

CompatPhase ๐Ÿ”’
Phase of compat execution.

Constantsยง

COMMENT_PREFIX ๐Ÿ”’
COMPAT_TOPOLOGY ๐Ÿ”’
INTERCEPTOR_PREFIX ๐Ÿ”’
QUERY_DELIMITER ๐Ÿ”’

Functionsยง

create_interceptor_registry ๐Ÿ”’
Create an interceptor registry matching the ordinary sqlness runner.
default_compat_case_dir ๐Ÿ”’
Default case directory: tests/compatibility/cases relative to workspace root.
parse_sql_file ๐Ÿ”’
Parse a SQL file into statements using the same sqlness comment/interceptor conventions as the ordinary runner.
resolve_bins ๐Ÿ”’
Resolve binary directory: explicit path takes priority, then version (pulls if needed), otherwise default to current debug build.
run_compat_phase ๐Ÿ”’
Run a single compat phase (setup or verify) for one case.
run_namespace_prelude ๐Ÿ”’
Execute the namespace prelude (CREATE DATABASE IF NOT EXISTS + USE) for a case. This is NOT written into verify.result.
simple_diff ๐Ÿ”’
Generate a simple line-based diff between expected and actual.
trim_trailing_blank_lines ๐Ÿ”’
Keep generated snapshots compatible with git diff --check by avoiding a trailing blank line at EOF while preserving the final newline.