1 | //===----------------------------------------------------------------------===// |
---|---|
2 | // DuckDB |
3 | // |
4 | // duckdb/catalog/catalog_entry/aggregate_function_catalog_entry.hpp |
5 | // |
6 | // |
7 | //===----------------------------------------------------------------------===// |
8 | |
9 | #pragma once |
10 | |
11 | #include "duckdb/catalog/standard_entry.hpp" |
12 | #include "duckdb/catalog/catalog_set.hpp" |
13 | #include "duckdb/function/function.hpp" |
14 | #include "duckdb/parser/parsed_data/create_aggregate_function_info.hpp" |
15 | |
16 | namespace duckdb { |
17 | |
18 | //! An aggregate function in the catalog |
19 | class AggregateFunctionCatalogEntry : public StandardEntry { |
20 | public: |
21 | AggregateFunctionCatalogEntry(Catalog *catalog, SchemaCatalogEntry *schema, CreateAggregateFunctionInfo *info) |
22 | : StandardEntry(CatalogType::AGGREGATE_FUNCTION, schema, catalog, info->name), |
23 | functions(info->functions.functions) { |
24 | } |
25 | |
26 | //! The aggregate functions |
27 | vector<AggregateFunction> functions; |
28 | }; |
29 | } // namespace duckdb |
30 |