INNER CODE UNIT · C++
table_names
epsilla-cloud/vectordb · engine/db/db_server.cpp:262
table_names = db->GetTables();
return Status::OK();
}
Status DBServer::Insert(const std::string& db_name,
const std::string& table_name,
vectordb::Json& records,
std::unordered_map<std::string, std::string> &headers,
bool upsert) {
auto db = GetDB(db_name);
if (db == nullptr) {
return Status(DB_UNEXPECTED_ERROR, "DB not found: " + db_name);
}
auto table = db->GetTable(table_name);
if (table == nullptr) {
return Status(DB_UNEXPECTED_ERROR, "Table not found: " + table_name);
}
return table->Insert(records, headers, upsert);