1//===----------------------------------------------------------------------===//
2// DuckDB
3//
4// duckdb/parser/parsed_data/attach_info.hpp
5//
6//
7//===----------------------------------------------------------------------===//
8
9#pragma once
10
11#include "duckdb/parser/parsed_data/parse_info.hpp"
12#include "duckdb/common/vector.hpp"
13#include "duckdb/common/unordered_map.hpp"
14#include "duckdb/common/types/value.hpp"
15
16namespace duckdb {
17
18struct AttachInfo : public ParseInfo {
19 AttachInfo() {
20 }
21
22 //! The alias of the attached database
23 string name;
24 //! The path to the attached database
25 string path;
26 //! Set of (key, value) options
27 unordered_map<string, Value> options;
28
29public:
30 unique_ptr<AttachInfo> Copy() const;
31
32 void Serialize(Serializer &serializer) const;
33 static unique_ptr<ParseInfo> Deserialize(Deserializer &deserializer);
34};
35
36} // namespace duckdb
37