Skip to main contentModule compat
Source - 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.
- CompatPhase ๐
- Phase of compat execution.
- COMMENT_PREFIX ๐
- COMPAT_TOPOLOGY ๐
- INTERCEPTOR_PREFIX ๐
- QUERY_DELIMITER ๐
- 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.