MCPcopy Create free account
hub / github.com/bytedance/bolt / stringToCommitStrategy

Function stringToCommitStrategy

bolt/connectors/Connector.cpp:164–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162}
163
164CommitStrategy stringToCommitStrategy(const std::string& strategy) {
165 if (strategy == "NO_COMMIT") {
166 return CommitStrategy::kNoCommit;
167 } else if (strategy == "TASK_COMMIT") {
168 return CommitStrategy::kTaskCommit;
169 } else {
170 BOLT_UNREACHABLE("UNKNOWN COMMIT STRATEGY: {}", strategy);
171 }
172}
173
174folly::dynamic ColumnHandle::serializeBase(std::string_view name) {
175 folly::dynamic obj = folly::dynamic::object;

Callers 1

createMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected