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

Function getRememberedArrowTableID

src/c_api/connection.cpp:30–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30static std::string getRememberedArrowTableID(Connection* connection, const char* tableName) {
31 std::lock_guard<std::mutex> lock(arrowTableIDMutex);
32 if (!arrowTableIDs.contains(connection) || !arrowTableIDs.at(connection).contains(tableName)) {
33 return "";
34 }
35 return arrowTableIDs.at(connection).at(tableName);
36}
37
38static void forgetArrowTableID(Connection* connection, const char* tableName) {
39 std::lock_guard<std::mutex> lock(arrowTableIDMutex);

Callers 1

Calls 1

containsMethod · 0.45

Tested by

no test coverage detected