Skip to main content

Module compat

Module compat 

Source

Structsยง

CleanupOutcome ๐Ÿ”’
CompatCommand
Run compatibility tests in bare mode.
CompatProfiles ๐Ÿ”’
Deterministically ordered compatibility profiles.
EtcdGuard ๐Ÿ”’
Guard that stops/removes Docker etcd on drop (panic or early exit). Disarm before normal cleanup to avoid double-cleanup.
OverlayProfileGroup ๐Ÿ”’
ParsedStatement ๐Ÿ”’
A parsed SQL statement with sqlness comments and interceptors.
ProfileOutcome ๐Ÿ”’
ProfileProgress ๐Ÿ”’
Pure compatibility profile progress policy, independent of process ownership.
ProfileRunConfig ๐Ÿ”’
ProfileStateGuard ๐Ÿ”’
Owns one profile state directory until normal cleanup or unwind finalization.

Enumsยง

CompatPhase ๐Ÿ”’
Phase of compat execution.
CompatProfile ๐Ÿ”’
Cases sharing one old-stage datanode configuration lifecycle.
CompatTopology ๐Ÿ”’

Constantsยง

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

Functionsยง

cleanup_profile ๐Ÿ”’
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.
emit_protected_path_warnings ๐Ÿ”’
format_protected_path_warning ๐Ÿ”’
parse_sql_file ๐Ÿ”’
Parse a SQL file into statements using the same sqlness comment/interceptor conventions as the ordinary runner.
prepare_compat_profiles ๐Ÿ”’
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.
run_profile ๐Ÿ”’
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.