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

namespace NYql {
namespace NFastCheck {

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

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

}
}