forked from hotdata-dev/duckdb_extension_parser_tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathparse_columns.hpp
More file actions
25 lines (19 loc) · 878 Bytes
/
parse_columns.hpp
File metadata and controls
25 lines (19 loc) · 878 Bytes
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
#pragma once
#include "duckdb.hpp"
#include <string>
#include <vector>
namespace duckdb {
// Forward declarations
class DatabaseInstance;
struct ColumnResult {
vector<vector<string>> expression_identifiers; // All identifiers in expression
string table_schema; // NULL for aliases, schema name for table columns
string table_name; // NULL for aliases, table name for table columns
string column_name; // Column name (for single column refs), NULL for complex expressions
string context; // Context where column appears (select, where, function_arg, etc.)
string expression; // Full expression text
string selected_name; // NULL for input columns, output column name for SELECT items
};
void RegisterParseColumnsFunction(DatabaseInstance &db);
void RegisterParseColumnScalarFunction(DatabaseInstance &db);
} // namespace duckdb