aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/public/fastcheck/fastcheck.h
blob: c2043026153130285245feffaf41b33e3507a637 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#pragma once
#include <yql/essentials/ast/yql_errors.h>
#include <util/generic/hash.h>
#include <yql/essentials/providers/common/provider/yql_provider_names.h>

namespace NYql {
namespace NFastCheck {

struct TOptions {
   bool IsSql = true;
   bool ParseOnly = false;
   THashMap<TString, TString> ClusterMapping;
   ui16 SyntaxVersion = 1;
   bool IsLibrary = false;
   THashMap<TString, TString> SqlLibs = {}; // mapping file name => SQL
};

bool CheckProgram(const TString& program, const TOptions& options, TIssues& errors);

}
}