MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / rememberArrowTableID

Function rememberArrowTableID

src/c_api/connection.cpp:24–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22static std::unordered_map<Connection*, std::unordered_map<std::string, std::string>> arrowTableIDs;
23
24static void rememberArrowTableID(Connection* connection, const char* tableName,
25 std::string arrowId) {
26 std::lock_guard<std::mutex> lock(arrowTableIDMutex);
27 arrowTableIDs[connection][tableName] = std::move(arrowId);
28}
29
30static std::string getRememberedArrowTableID(Connection* connection, const char* tableName) {
31 std::lock_guard<std::mutex> lock(arrowTableIDMutex);

Calls

no outgoing calls

Tested by

no test coverage detected