1#include "duckdb/parser/transformer.hpp"
2#include "duckdb/parser/statement/detach_statement.hpp"
3#include "duckdb/parser/expression/constant_expression.hpp"
4#include "duckdb/common/string_util.hpp"
5
6namespace duckdb {
7
8unique_ptr<DetachStatement> Transformer::TransformDetach(duckdb_libpgquery::PGDetachStmt &stmt) {
9 auto result = make_uniq<DetachStatement>();
10 auto info = make_uniq<DetachInfo>();
11 info->name = stmt.db_name;
12 info->if_not_found = TransformOnEntryNotFound(missing_ok: stmt.missing_ok);
13
14 result->info = std::move(info);
15 return result;
16}
17
18} // namespace duckdb
19