-
Notifications
You must be signed in to change notification settings - Fork 1
/
expr.hpp
45 lines (33 loc) · 1.39 KB
/
expr.hpp
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef SQL_PARSER_FUSION_EXPR_HPP
#define SQL_PARSER_FUSION_EXPR_HPP
#include "sql/ast/expr.hpp"
#include <boost/fusion/include/adapt_struct.hpp>
BOOST_FUSION_ADAPT_STRUCT(sql::ast::bind_parameter)
BOOST_FUSION_ADAPT_STRUCT(sql::ast::schema_column_identifier,
(sql::ast::identifier, schema)
(sql::ast::identifier, table)
(sql::ast::identifier, column)
)
BOOST_FUSION_ADAPT_STRUCT(sql::ast::table_column_identifier,
(sql::ast::identifier, table)
(sql::ast::identifier, column)
)
BOOST_FUSION_ADAPT_STRUCT(sql::ast::simple_column_identifier,
(sql::ast::identifier, column)
)
BOOST_FUSION_ADAPT_STRUCT(sql::ast::binary_operation,
(sql::ast::expr, first)
(sql::ast::bop, op)
(sql::ast::expr, second)
)
BOOST_FUSION_ADAPT_STRUCT(sql::ast::function_params_expr_list,
(bool, distinct)
(sql::ast::expr_list, expressions)
)
BOOST_FUSION_ADAPT_STRUCT(sql::ast::function_params_none)
BOOST_FUSION_ADAPT_STRUCT(sql::ast::function_params_row)
BOOST_FUSION_ADAPT_STRUCT(sql::ast::function_call,
(sql::ast::identifier, name)
(sql::ast::function_params, parameters)
)
#endif //SQL_PARSER_FUSION_EXPR_HPP