|
|
string | name |
| | The alias of the attached database.
|
|
OnEntryNotFound | if_not_found |
| | Whether to throw an exception if alias is not found.
|
|
ParseInfoType | info_type |
|
|
static constexpr const ParseInfoType | TYPE = ParseInfoType::DETACH_INFO |
◆ DetachInfo()
| duckdb::DetachInfo::DetachInfo |
( |
| ) |
|
340000 : ParseInfo(TYPE) {
340001}
◆ Copy()
| unique_ptr< DetachInfo > duckdb::DetachInfo::Copy |
( |
| ) |
const |
340003 {
340004 auto result = make_uniq<DetachInfo>();
340005 result->name =
name;
340007 return result;
340008}
OnEntryNotFound if_not_found
Whether to throw an exception if alias is not found.
Definition duckdb.cpp:200182
string name
The alias of the attached database.
Definition duckdb.cpp:200180
◆ ToString()
| string duckdb::DetachInfo::ToString |
( |
| ) |
const |
340010 {
340011 string result = "";
340012 result += "DETACH DATABASE";
340014 result += " IF EXISTS";
340015 }
340017 result += ";";
340018 return result;
340019}
static string WriteOptionallyQuoted(const string &text, char quote='"', bool allow_caps = true, KeywordCategory category = KeywordCategory::KEYWORD_NONE)
Writes a string that is optionally quoted + escaped so it can be used as an identifier.
Definition duckdb.cpp:338034
◆ Serialize()
| void duckdb::DetachInfo::Serialize |
( |
Serializer & | serializer | ) |
const |
|
overridevirtual |
Reimplemented from duckdb::ParseInfo.
418319 {
418320 ParseInfo::Serialize(serializer);
418321 serializer.WritePropertyWithDefault<
string>(200,
"name",
name);
418322 serializer.WriteProperty<OnEntryNotFound>(201,
"if_not_found",
if_not_found);
418323}
◆ Deserialize()
418325 {
418326 auto result = duckdb::unique_ptr<DetachInfo>(new DetachInfo());
418327 deserializer.ReadPropertyWithDefault<string>(200, "name", result->name);
418328 deserializer.ReadProperty<OnEntryNotFound>(201, "if_not_found", result->if_not_found);
418329 return std::move(result);
418330}
The documentation for this struct was generated from the following file: