1//===----------------------------------------------------------------------===//
2// DuckDB
3//
4// duckdb/catalog/standard_entry.hpp
5//
6//
7//===----------------------------------------------------------------------===//
8
9#pragma once
10
11#include "duckdb/catalog/catalog_entry.hpp"
12
13namespace duckdb {
14class SchemaCatalogEntry;
15
16//! A StandardEntry is a catalog entry that is a member of a schema
17class StandardEntry : public InCatalogEntry {
18public:
19 StandardEntry(CatalogType type, SchemaCatalogEntry &schema, Catalog &catalog, string name)
20 : InCatalogEntry(type, catalog, name), schema(schema) {
21 }
22 ~StandardEntry() override {
23 }
24
25 //! The schema the entry belongs to
26 SchemaCatalogEntry &schema;
27
28public:
29 SchemaCatalogEntry &ParentSchema() override {
30 return schema;
31 }
32};
33
34} // namespace duckdb
35