remove MotherDuck from result strings

This commit is contained in:
Jeff Raymakers
2025-02-20 15:30:24 -08:00
parent f2c44f9a84
commit c7a84307c2

View File

@@ -1,10 +1,10 @@
#define DUCKDB_EXTENSION_MAIN #define DUCKDB_EXTENSION_MAIN
#include "utils/env.hpp"
#include "utils/helpers.hpp"
#include "ui_extension.hpp" #include "ui_extension.hpp"
#include "http_server.hpp" #include "http_server.hpp"
#include "state.hpp" #include "state.hpp"
#include "utils/env.hpp"
#include "utils/helpers.hpp"
#include <duckdb.hpp> #include <duckdb.hpp>
#include <duckdb/common/string_util.hpp> #include <duckdb/common/string_util.hpp>
@@ -53,14 +53,14 @@ std::string StartUIFunction(ClientContext &context) {
return system(command.c_str()) return system(command.c_str())
? StringUtil::Format("Navigate browser to %s", ? StringUtil::Format("Navigate browser to %s",
local_url) // open command failed local_url) // open command failed
: StringUtil::Format("MotherDuck UI started at %s", local_url); : StringUtil::Format("UI started at %s", local_url);
} }
std::string StartUIServerFunction(ClientContext &context) { std::string StartUIServerFunction(ClientContext &context) {
bool was_started = false; bool was_started = false;
const auto &server = internal::StartHttpServer(context, &was_started); const auto &server = internal::StartHttpServer(context, &was_started);
const char *already = was_started ? "already " : ""; const char *already = was_started ? "already " : "";
return StringUtil::Format("MotherDuck UI server %sstarted at %s", already, return StringUtil::Format("UI server %sstarted at %s", already,
server.LocalUrl()); server.LocalUrl());
} }