-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathparse_where.hpp
More file actions
30 lines (23 loc) · 1 KB
/
parse_where.hpp
File metadata and controls
30 lines (23 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#pragma once
#include "duckdb.hpp"
#include <string>
#include <vector>
namespace duckdb {
// Forward declarations
class ExtensionLoader;
struct WhereConditionResult {
std::string condition;
std::string table_name; // The table this condition applies to (if determinable)
std::string context; // The context where this condition appears (WHERE, HAVING, etc.)
};
struct DetailedWhereConditionResult {
std::string column_name; // The column being compared
std::string operator_type; // The comparison operator (>, <, =, etc.)
std::string value; // The value being compared against
std::string table_name; // The table this condition applies to (if determinable)
std::string context; // The context where this condition appears (WHERE, HAVING, etc.)
};
void RegisterParseWhereFunction(ExtensionLoader &loader);
void RegisterParseWhereScalarFunction(ExtensionLoader &loader);
void RegisterParseWhereDetailedFunction(ExtensionLoader &loader);
} // namespace duckdb