MCPcopy Create free account
hub / github.com/ByConity/ByConity / tryInsert

Method tryInsert

src/Access/IAccessStorage.cpp:275–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

273
274
275std::optional<UUID> IAccessStorage::tryInsert(const AccessEntityPtr & entity)
276{
277 UUID id;
278 auto func = [&] { id = insertImpl(entity, /* replace_if_exists = */ false); };
279 if (!tryCall(func))
280 return {};
281 return id;
282}
283
284
285std::vector<UUID> IAccessStorage::tryInsert(const std::vector<AccessEntityPtr> & multiple_entities)

Callers 5

executeMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80

Calls 2

tryCallFunction · 0.85
push_backMethod · 0.45

Tested by

no test coverage detected