1#include "duckdb/planner/binder.hpp"
2#include "duckdb/parser/statement/attach_statement.hpp"
3#include "duckdb/parser/tableref/table_function_ref.hpp"
4#include "duckdb/planner/tableref/bound_table_function.hpp"
5#include "duckdb/planner/operator/logical_simple.hpp"
6
7namespace duckdb {
8
9BoundStatement Binder::Bind(AttachStatement &stmt) {
10 BoundStatement result;
11 result.types = {LogicalType::BOOLEAN};
12 result.names = {"Success"};
13
14 result.plan = make_uniq<LogicalSimple>(args: LogicalOperatorType::LOGICAL_ATTACH, args: std::move(stmt.info));
15 properties.allow_stream_result = false;
16 properties.return_type = StatementReturnType::NOTHING;
17 return result;
18}
19
20} // namespace duckdb
21