1 | //===----------------------------------------------------------------------===// |
---|---|
2 | // DuckDB |
3 | // |
4 | // duckdb/parser/parsed_data/detach_info.hpp |
5 | // |
6 | // |
7 | //===----------------------------------------------------------------------===// |
8 | |
9 | #pragma once |
10 | |
11 | #include "duckdb/parser/parsed_data/parse_info.hpp" |
12 | #include "duckdb/common/enums/on_entry_not_found.hpp" |
13 | |
14 | namespace duckdb { |
15 | |
16 | struct DetachInfo : public ParseInfo { |
17 | DetachInfo(); |
18 | |
19 | //! The alias of the attached database |
20 | string name; |
21 | //! Whether to throw an exception if alias is not found |
22 | OnEntryNotFound if_not_found; |
23 | |
24 | public: |
25 | unique_ptr<DetachInfo> Copy() const; |
26 | void Serialize(Serializer &serializer) const; |
27 | static unique_ptr<ParseInfo> Deserialize(Deserializer &deserializer); |
28 | }; |
29 | } // namespace duckdb |
30 |