Skip to main content

Module compat_case

Module compat_case 

Source

StructsΒ§

CaseMetadata
Metadata for a compatibility test case, parsed from case.toml.
CompatCase
A loaded compatibility case (metadata + file paths).
Version πŸ”’
A simple 3-component version: major.minor.patch.

EnumsΒ§

VersionConstraint πŸ”’
A version constraint used in from_range / to_range.

FunctionsΒ§

discover_cases
Discover all compat cases under case_root. Each case is a directory containing case.toml, setup.sql, and verify.sql. verify.result is optional at discovery β€” if missing, the verify phase generates it from actual output and fails so the author must review/commit.
is_valid_namespace πŸ”’
Check whether a string is a valid namespace: starts with lowercase letter, contains only lowercase alphanumeric + underscores.
parse_version_constraint πŸ”’
Parse a single range entry (e.g. *, <=v1.1.0, >=v1.1.1, v1.0.0).
sanitize_namespace πŸ”’
Sanitize a name into a valid GreptimeDB namespace: lowercase alphanumeric + underscores.
try_infer_version πŸ”’
Try to infer a version string by running <bins_dir>/greptime --version. Returns None if the binary cannot be executed or the output isn’t parseable.
validate_case_namespaces
Check for duplicate namespaces.
validate_cases_metadata
Validate per-case metadata for all discovered cases.
validate_version_constraints πŸ”’
version_matches_range πŸ”’
Check whether a version matches a list of OR-ed constraints.