MCPcopy Create free account
hub / github.com/Query-farm/airport / StringPairIterableToMap

Function StringPairIterableToMap

src/airport_logging.cpp:14–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12
13 template <class ITERABLE>
14 static Value StringPairIterableToMap(const ITERABLE &iterable)
15 {
16 vector<Value> keys;
17 vector<Value> values;
18 for (const auto &kv : iterable)
19 {
20 keys.emplace_back(kv.first);
21 values.emplace_back(kv.second);
22 }
23 return Value::MAP(LogicalType::VARCHAR, LogicalType::VARCHAR, std::move(keys), std::move(values));
24 }
25
26 LogicalType AirportLogType::GetLogType()
27 {

Callers 1

ConstructLogMessageMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected