1//===----------------------------------------------------------------------===//
2// DuckDB
3//
4// duckdb/parser/tableref/emptytableref.hpp
5//
6//
7//===----------------------------------------------------------------------===//
8
9#pragma once
10
11#include "duckdb/parser/tableref.hpp"
12
13namespace duckdb {
14
15class EmptyTableRef : public TableRef {
16public:
17 static constexpr const TableReferenceType TYPE = TableReferenceType::EMPTY;
18
19public:
20 EmptyTableRef() : TableRef(TableReferenceType::EMPTY) {
21 }
22
23public:
24 string ToString() const override;
25 bool Equals(const TableRef &other_p) const override;
26
27 unique_ptr<TableRef> Copy() override;
28
29 //! Serializes a blob into a DummyTableRef
30 void Serialize(FieldWriter &serializer) const override;
31 //! Deserializes a blob back into a DummyTableRef
32 static unique_ptr<TableRef> Deserialize(FieldReader &source);
33
34 static unique_ptr<TableRef> FormatDeserialize(FormatDeserializer &source);
35};
36} // namespace duckdb
37