1 | #pragma once |
---|---|
2 | |
3 | #include <Core/Types.h> |
4 | #include <vector> |
5 | |
6 | namespace DB |
7 | { |
8 | |
9 | /// Result of CHECK TABLE query for single part of table |
10 | struct CheckResult |
11 | { |
12 | /// Part name for merge tree or file name for simplier tables |
13 | String fs_path; |
14 | /// Does check passed |
15 | bool success = false; |
16 | /// Failure message if any |
17 | String failure_message; |
18 | |
19 | CheckResult() = default; |
20 | CheckResult(const String & fs_path_, bool success_, String failure_message_) |
21 | : fs_path(fs_path_), success(success_), failure_message(failure_message_) |
22 | {} |
23 | }; |
24 | |
25 | using CheckResults = std::vector<CheckResult>; |
26 | |
27 | } |
28 |