MCPcopy Create free account
hub / github.com/activeloopai/deeplake / getQueryName

Function getQueryName

cpp/3rd_party/sql-parser/benchmark/queries.cpp:12–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10namespace filesystem = std::filesystem;
11
12std::string getQueryName(unsigned i) {
13 if (sql_queries[i].first.empty()) {
14 std::string name = "#" + std::to_string(i + 1);
15 return name;
16 }
17 return std::string("") + sql_queries[i].first;
18}
19
20std::vector<SQLQuery> getQueriesFromDirectory(const std::string& dir_path) {
21 std::regex query_file_regex("\\.sql$");

Callers 1

mainFunction · 0.85

Calls 2

to_stringFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected