INNER CODE UNIT · C++
status
epsilla-cloud/vectordb · engine/db/db_server.cpp:248
auto status = db->SwapExecutors();
if (!status.ok()) {
logger_.Error("Swap executors for db of " + db->db_catalog_path_ + " failed.");
}
}
}
return Status::OK();
}
Status DBServer::ListTables(const std::string& db_name, std::vector<std::string>& table_names) {
auto db = GetDB(db_name);
if (db == nullptr) {
return Status(DB_UNEXPECTED_ERROR, "DB not found: " + db_name);
}
table_names = db->GetTables();
return Status::OK();
}