1//===----------------------------------------------------------------------===//
2// DuckDB
3//
4// duckdb/parser/expression/default_expression.hpp
5//
6//
7//===----------------------------------------------------------------------===//
8
9#pragma once
10
11#include "duckdb/parser/parsed_expression.hpp"
12
13namespace duckdb {
14//! Represents the default value of a column
15class DefaultExpression : public ParsedExpression {
16public:
17 static constexpr const ExpressionClass TYPE = ExpressionClass::DEFAULT;
18
19public:
20 DefaultExpression();
21
22public:
23 bool IsScalar() const override {
24 return false;
25 }
26
27 string ToString() const override;
28
29 unique_ptr<ParsedExpression> Copy() const override;
30
31 void Serialize(FieldWriter &writer) const override;
32 static unique_ptr<ParsedExpression> Deserialize(ExpressionType type, FieldReader &source);
33 void FormatSerialize(FormatSerializer &serializer) const override;
34};
35} // namespace duckdb
36