INNER CODE UNIT · C++
table
epsilla-cloud/vectordb · engine/db/db_server.cpp:275
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);
}
Status DBServer::InsertPrepare(const std::string& db_name,
const std::string& table_name,
vectordb::Json& pks,
vectordb::Json& result) {
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);